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

SetUnitPoolInfos

From AGEWiki

Revision as of 11:24, 6 January 2012 by Lodilefty (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SetUnitPoolInfos

Syntax  

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

Description

Sets the quantity of units in a Force Pool, and adjusts the AI percentage of that pool to buy

See also ChangeUnitPool and AI.SetPoolRatio and ChgUnitPoolInfos

Example  

SetUnitPoolInfos = uni_USA_Inf0|8|75

Makes 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 (1 to 999)

Sets the number of units available
[<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