Page 1 of 1

event parameter

Posted: Wed Aug 29, 2007 8:30 pm
by Clovis
Who can explain this condition?

CountUnits = $area_USA_KY_Border;1;$USA;-1;>=;25

I understand event will fire when at least 25 US units will be present in the area defined.

What 1 and -1 signifies?

Posted: Wed Aug 29, 2007 11:05 pm
by Primasprit
Hi Clovis!

Clovis wrote:Who can explain this condition?

CountUnits = $area_USA_KY_Border;1;$USA;-1;>=;25

I understand event will fire when at least 25 US units will be present in the area defined.

What 1 and -1 signifies?


IMHO:
The '1' tells the engine that an area is selected ($area_USA_KY_Border). If you select a single region use '0' at this position.

The '-1': At this position you can select which subtype of units shall be counted. For example $Regular or $SupplyType. '-1' means: all types.

Cheers
Norbert

Posted: Thu Aug 30, 2007 9:33 am
by Pocus
10/10 for Norbert.

Posted: Thu Aug 30, 2007 10:41 am
by Clovis
Primasprit wrote:Hi Clovis!



IMHO:
The '1' tells the engine that an area is selected ($area_USA_KY_Border). If you select a single region use '0' at this position.

The '-1': At this position you can select which subtype of units shall be counted. For example $Regular or $SupplyType. '-1' means: all types.

Cheers
Norbert



Thanks :coeurs: