Structuring Events

Post bug reports and ask for game support here.
Post Reply
User avatar
AH4Ever
Posts: 628
Joined: Wed Jul 29, 2009 5:30 pm
Location: NU JOYZ

Structuring Events

Post 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.




JJMC

The next best thing to being clever is being able to quote someone who is.

You weren't there Thursday... You MISSED it!
User avatar
Razz1
Posts: 2560
Joined: Sun Oct 21, 2007 3:09 pm
Location: CaLiForNia

RE: Structuring Events

Post 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>
User avatar
AH4Ever
Posts: 628
Joined: Wed Jul 29, 2009 5:30 pm
Location: NU JOYZ

RE: Structuring Events

Post 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.
JJMC

The next best thing to being clever is being able to quote someone who is.

You weren't there Thursday... You MISSED it!
User avatar
AH4Ever
Posts: 628
Joined: Wed Jul 29, 2009 5:30 pm
Location: NU JOYZ

RE: Structuring Events

Post by AH4Ever »

Of course it had to be Human error, mine.

Uxbridge found an incorrect param entry.




JJMC

The next best thing to being clever is being able to quote someone who is.

You weren't there Thursday... You MISSED it!
Post Reply

Return to “Tech Support”