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

(Difference between revisions)
Jump to: navigation, search
 
Line 16: Line 16:
:''Sets'' the number of units available
:''Sets'' the number of units available
| param3 = [<AI Pool Ratio>]
| param3 = [<AI Pool Ratio>]
-
| param3desc = Optional.
+
| param3desc = ''Optional, '''with game engine updates on or after January 5, 2012'''''
:Integer (1 to 100)
:Integer (1 to 100)
-
:Default = 100 if not specified
+
:''Default = 100 if not specified''
:''Sets'' the ratio
:''Sets'' the ratio
| param4 =
| param4 =

Latest revision as of 11:24, 6 January 2012

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