Figured we needed a thread for questions that didn't need to take up valuable room from talented mod'rs.
Thanks. Very helpful link. Since the thread started over a year ago, me thinks this isn't something on the soon-to-be-fixed radar.
It's under the category of Modders beware and deal with the system. Surprise they may change it at any moment like the most recent tech change, we can now add things to techs.
N/A
Is it possible to mod population consumption based on number of troops in a produced stack? For example I want to produce a unit that consists of three men, so I want that 3 population should be taken from the city where I produce this unit. I tried to insert some colculated values based on number of troops but it didn't work. May be I made something wrong or may be this isn't possible?
You could add this to every unit in the coreUnits.xml
<ProductionRequirement> <Type>Resource</Type> <Attribute>Population</Attribute> <Value>1</Value> </ProductionRequirement>
There are other ways of going about this that would probably limit the number of changes you need to make. For example, you can attach this to each of the blood traits and thus to train a unit (since you have to have that trait) it will cost you 1 per unit.
Thank you very much! It works interestingly. If I paste this code to any unit, it works like for pionners 1 for each pack of figures in the unit. But when I place this code into anybody's blood (!) this works for each figure in the pack. If I have both codes in blood and in unit, they multiply and summ. So to give pioneers 30 population, I set 9 in the unit code and set 1 for blood code. As result 3 figures x 9 plus 3 x 1 from blood code = 27 + 3 = 30.
Is there any way to change the traits available on the champion trait tree depending on race? So different races have different traits available. Not just greyed out but actually not taking up space.
I answered my own question. It works if you set blood traits as prerequisites, although I'm surprised it does.
So you mean
<Prereq>
<Type>AbilityBonusOption</Type> <Target>Unit</Target> <Attribute>Blood_Wraith</Attribute>
</Prereq>
Will not leave a grayed out option.
Yep. It was like the 5th thing I tried. Directly using the race or the model didn't work. I was wondering of I could give every race a different general tree but that seemed impossible, and then after looking at how paths worked I decided to try blood traits and amazingly enough it worked. I would have bet against it.
Are you sure it's working as intended... I'm failing to reproduce your results.
Works for me, I have multiple traits that occupy the same space on the General trait tree but only show up for different races. The below ability won't show up on other races trait trees at all.
<AbilityBonus InternalName="Enshadowed2Ability"> <AbilityBonusType>Unit_Level</AbilityBonusType> <AbilityBonusOption InternalName="Enshadowed2"> <DisplayName>Enshadowed</DisplayName> <Description>+7 to Dodge, and Spell Resistance</Description> <Icon>Ability_Enshadowed_Icon.png</Icon> <PerkTreePosX>1</PerkTreePosX> <PerkTreePosY>0</PerkTreePosY> <GameModifier> <ModType>Unit</ModType> <Attribute>AdjustUnitStat</Attribute> <StrVal>UnitStat_Dodge</StrVal> <Value>7</Value> </GameModifier> <GameModifier> <ModType>Unit</ModType> <Attribute>AdjustUnitStat</Attribute> <StrVal>UnitStat_MagicResist</StrVal> <Value>7</Value> </GameModifier> <Type>Defensive</Type> <UpgradePathID>Wraith</UpgradePathID> <Prereq> <Type>AbilityBonusOption</Type> <Target>Unit</Target> <Attribute>Blood_Wraith</Attribute> </Prereq> <AIData AIPersonality="AI_General"> <AIPriority>5</AIPriority> </AIData> </AbilityBonusOption> </AbilityBonus>
What are you seeing?
I experimented with this ability...
<AbilityBonus InternalName="Necromancy2Ability"> <AbilityBonusType>Unit_Level</AbilityBonusType> <AbilityBonusType>Unit_Spell_Rank</AbilityBonusType> <AbilityBonusOption InternalName="Necromancy2"> <DisplayName>Greater Necromancy</DisplayName> <Description>Allows the unit to raise skeletal hordes in battle</Description> <Icon>Ability_GreaterNecromancy_Icon.png</Icon> <PerkTreePosX>2</PerkTreePosX> <PerkTreePosY>4</PerkTreePosY> <GameModifier> <Provides>Allows the unit to cast Raise Skeletal Horde in battle</Provides> </GameModifier> <Type>Spell</Type> <UpgradePathID>Necromancy</UpgradePathID> <Prereq> <Type>Allegiance</Type> <Attribute>Empire</Attribute> </Prereq> <Prereq> <Type>AbilityBonusOption</Type> <Target>Unit</Target> <Attribute>Necromancy1</Attribute> </Prereq> <AIData AIPersonality="AI_General"> <AIPriority>5</AIPriority> </AIData> </AbilityBonusOption> </AbilityBonus>
I just edited this and added the prereq as I wrote above. It doesn't display the trait no matter the blood ability. Not sure what quirk is arising here. I am editing core files to ensure there is no other types of oddities.
Not sure what is happening there but it's probably a weird result from having so many prerequisites and/or editing an existing trait. I am just using the mod folder and adding completely new traits and it works fine.
I tried this a while back, I didn't find a workable solution unfortunately. A long work-around was to put the bloodline itself in the trait tree, then have stuff depend only on that and a unitstat given by another trait.
Well it works for me.
Both these pics are taken from the same game.
Ah, sorry, I thought you meant having dual prerequisites (one normal, one bloodline).
First of all, merry Xmas everyone ^^
So, in keeping with the spirit of the day, I'm playing around with the undead faction and it's traits.
I was trying to modify the 3 unique buildings that set the pop cap for the undead, and make the first or second one give 1 growth to the city if built, or something along the lines.
Thing is, I'm unable to find where in the xml files are those buildings defined.. I'm sure I checked the dlc04 files more than 10 times each, what am I missing?
EDIT: Of course, figures. As soon as I give up and make this post, I find out that not all dlc04 xmls are in the same folder. Gah. Sorry ^^;
So,am I correct that adding this to the building will make it give +1 growth? (still called prestige, wow)
Oh, and I should state that this is the first time I do anything like this, so I'm very unfamiliar with LH data structure, so apologies in advance if I'm being obnoxious. :]
You made everything right. Prestige means growth. In the original FE growth was determined by prestige value. I've also made such changes in my mod and tested this. It works.
Hmm, something is wrong here. I added the above lines to the Mausoleum right under the graves gamemodifier, but it did not give +1 growth to the city when I tested this.. Any ideas as to what might have gone wrong?
Here is the full Mausoleum code
(This is in DLC04_improvements.xml)
The GameModifier node looks correct to me.
Just a couple quick observations, in case you've not done modding for this game before
Also - if you're modifying the base game files instead of creating a mod (not sure why you'd want to do this) you want to make sure that Steam didn't overwrite your file - double check to make sure that your changes are still there.
With the most recent version, we are allowed to modify techs, adding techs is not possible (without overwriting core files).
These are game item types, which overwrite and do not take modifications. (Do not redo the artdefs, otherwise you will have the double mount problem)
There are many great features available to you once you register, including:
Sign in or Create Account