Other great resources: Official JS API docs, Scripting Forum
Stats
- Aubergine
UNDER CONSTRUCTION
A read-only list of the default game stats (prior to any modifiers or upgrades) for droid components, buildings, etc...Â
Syntax
// normal syntax (component/building stats) var val = Stats.<section>[<name>].<property> Â // syntax specific to WeaponClass var wepClasses = Stats.WeaponClasses; // array
Properties
The stats are grouped by player, then section.
Property | Type | Description | Game Ver |
---|---|---|---|
<section> | Property name | The section of the stats object to inspect:
| 3.2+ |
<name> | String | The name of the component or building. | 3.2+ |
<property> | Property name | The property to inspect. Property names are specific to the <section> (see lists below). | 3.2+ |
Body
// syntax var bodyStat = Stats.Body[<name>].<property>; Â // example: Tiger engine power var tigerPower = Stats.Body["Tiger"].Power;
The following properties are defined for each body component:
Property | Type | Description | Game Ver |
---|---|---|---|
<name> | String | The name of the body component. Example: "Tiger" | 3.2+ |
<property> | Property name | The property to inspect:
| 3.2+ |
Â
Sensor
+ Id
+ Weight
+ BuildPower
+ BuildTime
+ HitPoints
+ Range
ECM
+ Id
+ Weight
+ BuildPower
+ BuildTime
+ HitPoints
+ Range
Repair
+ Id
+ Weight
+ BuildPower
+ BuildTime
+ HitPoints
+ RepairPoints
Construct
+ Id
+ Weight
+ BuildPower
+ BuildTime
+ HitPoints
+ ConstructorPoints
Weapon
+ Id
+ Weight
+ BuildPower
+ BuildTime
+ HitPoints
+ MaxRange
+ MinRange
+ HitChance
+ FirePause
+ ReloadTime
+ Rounds
+ Radius
+ Damage
+ RadiusDamage
+ RepeatDamage
+ RepeatTime
+ RepeatRadius
+ ImpactType (weapon sub class)
+ RepeatType (periodical effect weapon sub class)
+ ImpactClass (one of "KINETIC" or "HEAT")
+ RepeatClass (one of "KINETIC" or "HEAT")
+ FireOnMove
WeaponClass
+ (... list of weapon classes ...)
Building
+ Id
+ Type (one of "Wall", "Structure" or "Demolish")
+ ResearchPoints
+ RepairPoints
+ PowerPoints
+ ProductionPoints
+ RearmPoints
+ Armour
+ Resistance
+ Thermal
+ HitPoints
Availability 3.2+
Requires:
- Warzone 3.2 or above
Â