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

(Difference between revisions)
Jump to: navigation, search
 
Line 15: Line 15:
| param2desc = Integer (-999 to 999)
| param2desc = Integer (-999 to 999)
:''Changes'' the pool value by this amount
:''Changes'' the pool value by this amount
-
| 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 to this amount
+
:''Sets'' the ratio
| param4 =
| param4 =
| param4desc =  
| param4desc =  

Latest revision as of 11:27, 6 January 2012

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