Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

EvalStrucCount

From AGEWiki

Jump to: navigation, search

EvalStrucCount

Syntax  

EvalStrucCount = <AreaUID or MAP>|<FactionValue>|<StructureSearchCriteria>|<Operator>|<ValueToCompareWith>

Description

Evaluate the number of structures (according to a criteria) in a given area compared to a fixed value. This command can store the result in an active Registry. This command can also be used in the Action block, even if an Evaluation, because of this possible use with Registries (otherwise an Evaluation in the Action block makes no sense).

Example  

EvalStrucCount = $Alaska|FACALL|STRUCFAM $fstGoldMines|<=|5|

Check if there are at most 5 structures of family gold mines (so variation according tech levels are all accounted for) in Alaska, for all factions.


 

Parameters

<AreaUID or MAP>

Area alias or 'MAP', litterally.

<Fac Selector>

FACALL to count all factions together, or a faction tag otherwise.

<StructureSearchCriteria>

STRUCKIND or STRUCDEF or STRUCFAM or STRUATR or STRUCSUB. See EvalRgnStruc for more info, the commands work identically on these criterias.

<Operator>

The operator to use.

One of <, <=, >, >=, =
<ValueToCompareWith>

A numeric value to test against.

Forums