User avatar
Clovis
Posts: 3222
Joined: Wed Nov 09, 2005 7:43 pm
Location: in a graveyard
Contact: Website

event parameter

Wed Aug 29, 2007 8:30 pm

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?

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Wed Aug 29, 2007 11:05 pm

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

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Thu Aug 30, 2007 9:33 am

10/10 for Norbert.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Clovis
Posts: 3222
Joined: Wed Nov 09, 2005 7:43 pm
Location: in a graveyard
Contact: Website

Thu Aug 30, 2007 10:41 am

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:

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 4 guests