Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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.

PropertyTypeDescriptionGame Ver
<section>Property name

The section of the stats object to inspect:

  • Body
  • Sensor
  • ECM
  • Repair
  • Construct
  • Weapon
  • Building
3.2+
<name>StringThe name of the component or building.3.2+
<property>Property nameThe property to inspect. Property names are specific to the <section> (see lists below).3.2+

Body

Syntax for Body stats
// 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:

PropertyTypeDescriptionGame Ver
<name>String

The name of the body component.

Example: "Tiger"

3.2+
<property>Property name

The property to inspect:

  • Id – component ID (String)
  • Weight – weight of the body (Number)
  • BuildPower – power cost to build the body (Number)
  • BuildTime – time taken to build the body (Number)
  • HitPoints – strength of the body (Number)
  • Power – engine power of the body (Number)
  • Armour – amount of kinetic armour (Number)
  • Thermal – amount of thermal armour (Number)
  • Resistance – resistance to electrical weapons (Number)
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

All numeric values are the actual integer values that are used in the game (not percentages), unless specified otherwise.
Availability 3.2+

Requires:

  • Warzone 3.2 or above

 

  • No labels