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 AACWWiki

Jump to: navigation, search

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.

 

Parameters

area alias

String; alias of a region or area

region or area

0 or 1; 0 for region, 1 for area

faction

String; alias of a faction

unit type

Integer; -1 for any type $Regular = 0 $Irregular = 1 $Militia = 2 $Cavalry = 3 $Artillery = 4 $Arty = 4 $SupplyType = 5 $Ship = 6

operator

<,<=,>,>=,=

number of units

Integer; the number of units that will fulfil the condition

Personal tools
Categories
Forums