I am trying for some time to run few simple XML changes, but they don't want to work.
1. I want to change the amount of defense generated by fortified unit. I did:
But i wasn't sure it's right, so i have second script with:
Both set to "Import to VFS" and are on Action ( OnModActivated > UpdateDatabase ). And i've tried to change <Where Type...> to <Where Name...>, don't help.
So the problem is in script itself. What i did wrong?
Also, i want to allow EVERY policy to lower unhappiness. For example, I've tried:
But that doesn't work. I also tried using <Update>.
That's not all. I also need to improve the amount unit deals if he attack first. So that the first unit who attacks receive attack bonus. I can add promotion that grants attack bonus, to every unit, but it will be some work. Maybe there is simplier way?
1. I want to change the amount of defense generated by fortified unit. I did:
Code:
<GameData>
<Define>
<Row Name="FORTIFY_MODIFIER_PER_TURN">
<Value>3</Value>
</Row>
<Row Name="MAX_FORTIFY_TURNS">
<Value>10</Value>
</Row>
</Define>
</GameData>
But i wasn't sure it's right, so i have second script with:
Code:
<GameData>
<Define>
<Update>
<Set Value="3"/>
<Where Type="FORTIFY_MODIFIER_PER_TURN"/>
</Update>
<Update>
<Set Value="10"/>
<Where Type="MAX_FORTIFY_TURNS"/>
</Update>
</Define>
</GameData>
Both set to "Import to VFS" and are on Action ( OnModActivated > UpdateDatabase ). And i've tried to change <Where Type...> to <Where Name...>, don't help.
So the problem is in script itself. What i did wrong?
Also, i want to allow EVERY policy to lower unhappiness. For example, I've tried:
Code:
<GameData>
<Policies>
<Row>
<ID>0</ID>
<Type>POLICY_LIBERTY</Type>
<Description>TXT_KEY_POLICY_BRANCH_LIBERTY</Description>
<Civilopedia>TXT_KEY_CIV5_POLICY_LIBERTY_TEXT</Civilopedia>
<Help>TXT_KEY_POLICY_LIBERTY_HELP</Help>
<CulturePerCity>1</CulturePerCity>
[B]<UnhappinessMod>50</UnhappinessMod>[/B]
<PortraitIndex>24</PortraitIndex>
<IconAtlas>POLICY_ATLAS</IconAtlas>
<IconAtlasAchieved>POLICY_A_ATLAS</IconAtlasAchieved>
</Row>
</Policies>
</GameData>
But that doesn't work. I also tried using <Update>.
That's not all. I also need to improve the amount unit deals if he attack first. So that the first unit who attacks receive attack bonus. I can add promotion that grants attack bonus, to every unit, but it will be some work. Maybe there is simplier way?