daylightend
Chieftain
- Joined
- Oct 11, 2014
- Messages
- 16
Hey modders !
I just started my very first mod, a new civ.
I want the trait of my new civ to be something like "+15% production towards military unit construction while at war". I got this idea from the swords into swords into plowshares belief (+x% growth when not at war). When i looked up this belief in CIV5Beliefs.xml I found the following
I wonder if anyone can tell me where I can find the logic behind "<RequiresPeace>true</RequiresPeace>". And how I can create a state check like that one.
I hope some experienced modders can help me. Thx in advance !
I just started my very first mod, a new civ.
I want the trait of my new civ to be something like "+15% production towards military unit construction while at war". I got this idea from the swords into swords into plowshares belief (+x% growth when not at war). When i looked up this belief in CIV5Beliefs.xml I found the following
Spoiler :
<Row>
<Type>BELIEF_SWORD_PLOWSHARES</Type>
<Description>TXT_KEY_BELIEF_SWORD_PLOWSHARES</Description>
<ShortDescription>TXT_KEY_BELIEF_SWORD_PLOWSHARES_SHORT</ShortDescription>
<Follower>true</Follower>
<CityGrowthModifier>15</CityGrowthModifier>
<RequiresPeace>true</RequiresPeace>
</Row>
<Type>BELIEF_SWORD_PLOWSHARES</Type>
<Description>TXT_KEY_BELIEF_SWORD_PLOWSHARES</Description>
<ShortDescription>TXT_KEY_BELIEF_SWORD_PLOWSHARES_SHORT</ShortDescription>
<Follower>true</Follower>
<CityGrowthModifier>15</CityGrowthModifier>
<RequiresPeace>true</RequiresPeace>
</Row>
I wonder if anyone can tell me where I can find the logic behind "<RequiresPeace>true</RequiresPeace>". And how I can create a state check like that one.
I hope some experienced modders can help me. Thx in advance !