Page 1 of 1

Structuring Events

Posted: Wed Aug 18, 2010 12:59 pm
by AH4Ever
I am trying to put together an event for Uxbridge for his TOTE Mod, if all had gone well it would have triggered/fired when PP's were negative 100 or more (for example -150)

The game can handle a PP's deficit but it seems that the Country.GetProductionPoints Method either does not see or does not return negative values.

As far as you know is this true or might I be configuring the expression incorrectly.





RE: Structuring Events

Posted: Wed Aug 18, 2010 4:49 pm
by Razz1
You can go neagative once. Then you have to put earned PP's against the neagative until you are in the black.

Seems to work just fine.

However.............


have you tried this?

<!--Keeping country PP above 0-->
<event eventID="106" countryID="137" visibleByPlayer="0" oneTimeChecking="1">
<title>ZID_106_title</title>
<description>ZID_106_desc</description>
<condition>
<and>
<!--USA is AI controlled-->
<expression>
<leftOperand method="Country.IsAIControlled" param0="1"/>
<operator value="equals"/>
<rightOperand constValue="1"/>
</expression>
<!--Country is active-->
<expression>
<leftOperand method="Country.IsActive" param0="1"/>
<operator value="equals"/>
<rightOperand constValue="1"/>
</expression>
<!--Production points less than 0-->
<expression>
<leftOperand method="Country.GetProductionPoints" param0="1"/>
<operator value="lessOrEqual"/>
<rightOperand constValue="0"/>
</expression>
</and>
</condition>
<options>
<option optionID="1" chanceAI="100" >
<description>ZID_106_op1</description>
<tooltip>ZID_106_desc1</tooltip>
<effects>
<!--Set PP points-->
<effect method="Country.SetProductionPoints" param0="1" param1="1"/>
</effects>
</option>
</options>
</event>

RE: Structuring Events

Posted: Thu Aug 19, 2010 2:45 am
by AH4Ever
In TOTE, Uxbridge designed it so that if France falters negative PP's will generate. This could quickly lead to a growing shortfall and if the deficit reaches -100, he would like unit effectivity to decrease.

RE: Structuring Events

Posted: Thu Aug 19, 2010 2:06 pm
by AH4Ever
Of course it had to be Human error, mine.

Uxbridge found an incorrect param entry.