Anyone ever see something like this?

Asmodean723

Chieftain
Joined
Mar 21, 2011
Messages
1
I've been making my first mod and all was going well.

Until I tried to update a global define likes so:

<Defines>
<Update>
<Set Value="4"></Set>
<where Name="OPINION_WEIGHT_WARMONGER_CRITICAL"></where>
</Update>
</Defines>

Doing this had the following effects:
-First city i settled started at pop 4
-City also received a 4% prod bonus for hapiness.
-City also had a sight radius of 4

SO seems to me that alot of global defines (maybe all) got set to 4 instead of the one I was targetting.

The same thing happens when i tried touching other warmonger global defines.

Any ideas? I can remove this one section and the whole rest of the mode works as intended.

I just want to be a warmonger and not be harrassed for it by the AI! :D
 
Try writing it this way:

Code:
<Defines>
<Update>
<Where Name="OPINION_WEIGHT_WARMONGER_CRITICAL"/>
<Set>
<Value>4</Value>
</Set>
</Update>
</Defines>

I think that, because you put the <Where> tag after the <Set> tag, it set 4 to ALL values in the game.
 
I think that, because you put the <Where> tag after the <Set> tag, it set 4 to ALL values in the game.

No. Order does not matter on the Set/Where block. In fact, I almost always put the Where after the Set in my own mods.

But the better way to write it is
Code:
<Update>
    <Set Value="4"/>
    <Where Name="OPINION_WEIGHT_WARMONGER_CRITICAL"/>
</Update>
 
Back
Top Bottom