Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.
CountUnits
From AGEWiki
(add DICE example) |
(corrected DICE example description) |
||
Line 13: | Line 13: | ||
CountUnits = $Shipping;0;$USA;-1;DICE;20 | CountUnits = $Shipping;0;$USA;-1;DICE;20 | ||
- | TRUE if the USA has a number of units | + | TRUE if the USA has a number of units '''greater than''' a Random number between 1-20 in the Region $Shipping |
| param1 = area alias | | param1 = area alias |
Latest revision as of 13:37, 5 April 2012
CountUnits | |||
Syntax CountUnits = <area alias>; <region or area>; <faction>; <unit type>; <operator>; <number of units> Description This condition is fulfilled if the specified number of units belonging to the specified faction exist in the specified area. Example CountUnits = $Close_to_Richmond;1;$USA;-1;>=;10 This condition will be fulfilled if the USA has 10 units (any type) in the Close_to_Richmond area.
CountUnits = $Shipping;0;$USA;-1;DICE;20 TRUE if the USA has a number of units greater than a Random number between 1-20 in the Region $Shipping
|
Parameters
String; alias of a region or area
0 or 1;
String; alias of a faction
Integer; -1 for any type of the following families (e.g. Leaders are not counted)
<,<=,>,>=,=
Integer (0-999); the number of units that will fulfil the condition |