Modding questions/help thread

By on June 1, 2013 9:05:52 PM from Elemental Forums Elemental Forums

cohka

Join Date 07/2007
0

Figured we needed a thread for questions that didn't need to take up valuable room from talented mod'rs.

843 Replies
Search this post
Subscription Options


Reason for Karma (Optional)
Successfully updated karma reason!
March 26, 2014 3:00:32 PM from Elemental Forums Elemental Forums

N/A

Reason for Karma (Optional)
Successfully updated karma reason!
March 26, 2014 3:53:30 PM from Elemental Forums Elemental Forums

Careful when using the combined attack as it ignores special damages. Say you had a fire sword that gives piercing damage like a sword but fire damage as well. The CombindedAttack will take the values of both the physical and fire and by the code above make all the damage physical. Hence, any creature immune to physical damage would not get damaged. Problem arises when using special abilities with spears and such against banshees.

I had a fix for the impale, crush, and cleave last April,

https://dl.dropboxusercontent.com/u/75549875/Fallen%20Enchantress/Abilities/impalecrushingcleavefix.zip

Your application above needs only remove the

<AttackStat>UnitStat_Attack_Pierce</AttackStat>

and it should create the appropriate damage types correctly. I've not noticed anything different from my fix, but it's hard to say given the random nature of things.

The work around could be to set up an ability called "Can Crit" or something... 

The ability would need this game modifier

<GameModifier>
    <ModType>Unit</ModType>
    </Attribute>MeleeAppliesSpell</Attribute>
    <StrVal>CRITSPELL</StrVal>
    <Provides>A 10% chance to have a critical attack</Provides>
</GameModifier>

 The spell would then utilize

<AppliesRandomModifier>1</AppliesRandomModifier>

Set up 9 different different random modifiers of normal damage. (you can even set it to severely critical something)

Apply the game modifier suggested by Primal (but recall this would be only physical damage, and you would lose the weapons fire, lightning, cold damage, etc.)

**This would be a set-up very close to the gamblers strike.**

Reason for Karma (Optional)
Successfully updated karma reason!
March 27, 2014 8:37:38 AM from Elemental Forums Elemental Forums

Thanks for the ideas pm/Primal.

Reason for Karma (Optional)
Successfully updated karma reason!
March 28, 2014 4:40:54 PM from Elemental Forums Elemental Forums

N/A

Reason for Karma (Optional)
Successfully updated karma reason!
June 8, 2014 8:13:29 PM from Elemental Forums Elemental Forums

Is there a way to give all technologies to all players at the start of the game?

Reason for Karma (Optional)
Successfully updated karma reason!
June 8, 2014 11:03:51 PM from Elemental Forums Elemental Forums

N/A

Reason for Karma (Optional)
Successfully updated karma reason!
June 8, 2014 11:41:47 PM from Elemental Forums Elemental Forums

Okay - will give this a shot.

 

By the way, thanks a lot for all the questions you've answered from me so far.

Reason for Karma (Optional)
Successfully updated karma reason!
June 9, 2014 7:12:34 AM from Elemental Forums Elemental Forums

N/A

Reason for Karma (Optional)
Successfully updated karma reason!
June 9, 2014 5:18:32 PM from Elemental Forums Elemental Forums

Question:

Has anyone figured out how to detect squad/unit size?  Tarth, etc. have abilities based on Army Size, but I'm thinking about an ability that is based on how many individuals are in the unit (i.e. 3 individuals or less, 4 or more individuals, etc.).

I'm not looking to upgrade the squad/unit size, I just want to apply a modifer/spell effect if the squad/unit is above/below a certain size.

Reason for Karma (Optional)
Successfully updated karma reason!
June 9, 2014 5:47:52 PM from Elemental Forums Elemental Forums

N/A

Reason for Karma (Optional)
Successfully updated karma reason!
June 9, 2014 6:12:16 PM from Elemental Forums Elemental Forums

Thanks! Much appreciated Primal!

Reason for Karma (Optional)
Successfully updated karma reason!
June 10, 2014 2:19:05 PM from Elemental Forums Elemental Forums

Making my own mod. Making great progress, but I do have a question:

 

Is there a limited number of build slots in a town? Can I add a new unique building that doesn't replace anything? Or must it replace something?

 

Reason for Karma (Optional)
Successfully updated karma reason!
June 10, 2014 2:32:49 PM from Galactic Civilizations III Forums Galactic Civilizations III Forums

You can add several buildings. At the moment, I do not know of a limit to the number of buildings on a town.

Reason for Karma (Optional)
Successfully updated karma reason!
June 11, 2014 2:07:16 AM from Elemental Forums Elemental Forums

Second question:

I made several new weapons for my faction. to be used by troops. Greatswords. Problem is, I fear they will frak up the regular upgrade if they are classified as blades.

Can I make a new weapon category to make swords and two-handed swords destinct?

 

EDIt:

Forgot to ask - can a building be a prequisite for training units? Like for example, I add a new building "Proving Grounds" (1 per empire) and you can only build Royal Knights IF you have it built

Reason for Karma (Optional)
Successfully updated karma reason!
June 11, 2014 8:49:29 AM from Elemental Forums Elemental Forums

Quoting Soronarr,
Can I make a new weapon category to make swords and two-handed swords destinct?

Yep, you want something like this...

 

<GameItemType InternalName="GreatSword">
  <DisplayName>Greatsword</DisplayName>
  <Description>A massive blade that can slice through limbs.</Description>
  <Type>Weapon</Type>
  <Type>Defense</Type>
  <WeaponType>TwoHanded</WeaponType>
  <WeaponUpgradeType>GreatBlades</WeaponUpgradeType>
  <CanBeEquipped>1</CanBeEquipped>
  <AdditionalTrainingTurns>24</AdditionalTrainingTurns>
  <ShopValue>75</ShopValue>
  <ProductionRequirement>
    <Type>Resource</Type>
    <Attribute>Metal</Attribute>
    <Value>3</Value>
  </ProductionRequirement>
  <GameModifier>
    <ModType>Unit</ModType>
    <Attribute>AdjustUnitStat</Attribute>
    <StrVal>UnitStat_Attack_Pierce</StrVal>
    <Value>22</Value>
  </GameModifier>
etc

Reason for Karma (Optional)
Successfully updated karma reason!
June 11, 2014 8:57:24 AM from Elemental Forums Elemental Forums

Quoting Soronarr,
Forgot to ask - can a building be a prequisite for training units? Like for example, I add a new building "Proving Grounds" (1 per empire) and you can only build Royal Knights IF you have it built

It's not directly supported but you can use resources as a workaround, or other things depending on exactly what you're after.

 

Do you want it to be a local or global thing... i.e. does building the Proving Grounds let you build Royal Knights in any city or only the city where the Proving Grounds was built?

 

Reason for Karma (Optional)
Successfully updated karma reason!
June 11, 2014 10:28:28 AM from Elemental Forums Elemental Forums

Any city I guess....

 

Theretically, how would I go about either?

 

EDIT:

So jsut adding:

        <WeaponUpgradeType>Greatsword</WeaponUpgradeType>

Will be enough? Teh game will add a new category in the inventory? Sweet!

Reason for Karma (Optional)
Successfully updated karma reason!
June 11, 2014 10:44:13 AM from Elemental Forums Elemental Forums

One more - how/where do you set up a faction color?

And I mean the interface color - the one where the city name is dispalyed and the town borders.

I can't find where it is defined. My old custom faction was blue.

Now that I modded a new faction (Kingdom) in, it's red.

Reason for Karma (Optional)
Successfully updated karma reason!
June 11, 2014 10:57:23 AM from Elemental Forums Elemental Forums

N/A

Reason for Karma (Optional)
Successfully updated karma reason!
June 12, 2014 3:56:18 AM from Elemental Forums Elemental Forums

No, I'm not talking about a custom faction made in the game menu - I'm taking about a kingdom made as a mod. With custom abilities and stuff. You know, in the MOD folder.

 

So far, no luck with the color.

Reason for Karma (Optional)
Successfully updated karma reason!
June 12, 2014 4:46:30 AM from Elemental Forums Elemental Forums

Hm... can the number of troops in a unit be edited? Minimums and maximums be fixed to otehr values?

 

I'm thinking of changing mage units to make them more powerful, but also fewer in number.

Reason for Karma (Optional)
Successfully updated karma reason!
June 12, 2014 8:45:59 AM from Elemental Forums Elemental Forums

So, to make a special unit via resource would be to add a new resource (let's call it Faith), have a building that produces it (Cathedral) exclusive to my kingdom, and have the unit cost that resource?

Hm...might work.

 

More questions:

- Is it possible to make certain champions more likely to spawn for a specific sovereign/kingdom? Or make them exclusive so they want spawn for another?

- can one make a unit upgradeable, but still give it special abilities that aren't standard for designed units (like maul)? Can one give a unit more than 4 (3, given that blood is fixed) abilitites?

- any way to remove custom factions? (made in the Editor) I removed the early sovereigns I made, but the old faction is still popping up in the list

Reason for Karma (Optional)
Successfully updated karma reason!
June 12, 2014 9:27:23 AM from Elemental Forums Elemental Forums

Quoting Soronarr,
So, to make a special unit via resource would be to add a new resource (let's call it Faith), have a building that produces it (Cathedral) exclusive to my kingdom, and have the unit cost that resource?

Hm...might work.

Yes that's the way to do it.  You can make it a global resource (like gold) or a local resource (like food) depending on what you want.

 

Quoting Soronarr,
No, I'm not talking about a custom faction made in the game menu - I'm taking about a kingdom made as a mod.

If you want to create a whole new faction and/or race via modding, do a search for Primal Savage's race template, I can't find the link right now but it should be around. 

 

Quoting Soronarr,
any way to remove custom factions? (made in the Editor) I removed the early sovereigns I made, but the old faction is still popping up in the list

Check the Race folder... under My Games\LegendaryHeroes\Race

 

Quoting Soronarr,
can one make a unit upgradeable, but still give it special abilities that aren't standard for designed units (like maul)?

If I understand what you're asking yes, that's basically what a blood ability is.

 

Quoting Soronarr,
Can one give a unit more than 4 (3, given that blood is fixed) abilitites?

Not trained units, they have 4.  You can modify it globally but it applies to all units.  You can have 1 ability that has multiple effects though.... so you could create 1 ability that grants the unit Maul, Cleave, +5 dodge and whatever else if that helps.

 

 

 

 

 

Reason for Karma (Optional)
Successfully updated karma reason!
June 12, 2014 9:31:00 AM from Elemental Forums Elemental Forums

Quoting Soronarr,
Is it possible to make certain champions more likely to spawn for a specific sovereign/kingdom? Or make them exclusive so they want spawn for another?

To the best of my knowledge, the "simple" answer to this is no.  

There are some similar things that are possible though, it just depends on the sort of thing you're trying to do.

Reason for Karma (Optional)
Successfully updated karma reason!
June 12, 2014 10:32:34 AM from Galactic Civilizations III Forums Galactic Civilizations III Forums

There is a way around this, but it consists of spawning a quest. The quest is a simple choice dialogue and if you have a particular resource unique to your kingdom / empire. You recruit that particular hero as that cost. As abob101 stated, the "simple" answer is no. I can probably think of other ways to do it, but that is the only one that comes to mind at the moment.

Reason for Karma (Optional)
Successfully updated karma reason!
Stardock Forums v1.0.0.0    #101114  walnut1   Server Load Time: 00:00:00.0000219   Page Render Time: