Changing boolean values?

rezaf

Warlord
Joined
Dec 3, 2003
Messages
179
I seem to be unable to modify boolean values for some reason.

For example, I tried to move Research Agreements away from Philosophy.
I also wanted to move the tech to a different position in the tree.
I'm using the following code.
Code:
                <Update>
			<Set GridX="5"/>
			<Where Type="TECH_PHILOSOPHY"/>
		</Update>
		<Update>
			<Set GridY="3"/>
			<Where Type="TECH_PHILOSOPHY"/>
		</Update>
		<Update>
			<Set ResearchAgreementTradingAllowed="false"/>
			<Where Type="TECH_PHILOSOPHY"/>
		</Update>
This results in the tech being in a different position - just like intended - but the tree still shows Philosophy will enable ResearchAgreement. I made the same experience with all the other bool flags.
What's the problem here?
_____
rezaf
 
I think this might be your problem...

Boolean values...

"All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True"."

Not sure though, this is just a guess =)

Try
Code:
		<Update>
			<Set ResearchAgreementTradingAllowed="NULL"/>
			<Where Type="TECH_PHILOSOPHY"/>
		</Update>

or just leave it empty instead of NULL, should solve your problem. Good luck
 
Back
Top Bottom