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

ChgUnitPoolInfos

From AGEWiki

Jump to: navigation, search

ChgUnitPoolInfos

Syntax  

ChgUnitPoolInfos = <UnitDef>|<variation of Force Pool>|[<AI Pool Ratio>]     .

Description

Changes the quantity of units in a Force Pool, and instructs (sets) the AI ratio of that pool to buy

See also ChangeUnitPool and AI.SetPoolRatio and SetUnitPoolInfos

Example  

ChgUnitPoolInfos = uni_USA_Inf0|8|75

Increases by 8 units of uni_USA_Inf0 available for purchase, and instructs the AI to buy a proportion of this unit, as explained in AI Pool Ratios


 

Parameters

<UnitDef>

Valid unit alias

<variation of Force Pool>

Integer (-999 to 999)

Changes the pool value by this amount
[<AI Pool Ratio>]

Optional, with game engine updates on or after January 5, 2012

Integer (1 to 100)
Default = 100 if not specified
Sets the ratio
Forums