Problem with a policy's value change

Jupsu

Chieftain
Joined
Jun 28, 2020
Messages
2
Hi!
I have made a balance mod for me and my friends to use. It's working otherwise fine but I have problem when trying change "military caste" policy's values. Happiness one don't seem to work whatever I try, even though culture one does work. Is it some why unchangeable value or is there a mistake in my code? There's also no other changes to that policy or no other happiness buffs in honor.


Code:
    <Update>
        <Set CulturePerGarrisonedUnit="3" />
        <Where Type="POLICY_MILITARY_CASTE" />
    </Update>
    <Update>
        <Set HappinessPerGarrisonedUnit="2" />
        <Where Type="POLICY_MILITARY_CASTE" />
    </Update>
 
It has literally been years since I last looked into HappinessPerGarrisonedUnit but as best I can recall it acts more as a Boolean rather than an integer, regardless of the fact that the definition of the column shows it as being an integer value. So no matter what value you enter other than the default 0 all you get is the one Happiness.

There are several table-columns spread throughout the game's structure that are shown as being integer values but actually only act as Booleans -- either the effect is all on or it is all off, and no integer values greater than 1 create additive results beyond that given for a value of "1".
 
It has literally been years since I last looked into HappinessPerGarrisonedUnit but as best I can recall it acts more as a Boolean rather than an integer, regardless of the fact that the definition of the column shows it as being an integer value. So no matter what value you enter other than the default 0 all you get is the one Happiness.

There are several table-columns spread throughout the game's structure that are shown as being integer values but actually only act as Booleans -- either the effect is all on or it is all off, and no integer values greater than 1 create additive results beyond that given for a value of "1".
Thank you for your help! I'll try add happiness for something else then.
 
Back
Top Bottom