(info) This AI is still in early stages of development.

DroidProduction.js

Provides WZ 3.2 compatible buildDroid(), addDroid() and getDroidProduction() features...

 

(warning) buildDroid()

Use this function exactly as you would on Warzone 3.2: buildDroid()

Notes:

  • (warning) Can only be used on your own factories – will not work on other players' factories
  • droidType parameter is optional (go.guessDroidTypeFromStats() will be used if omitted)
  • Bugs with cyborg engineers/mechanics droidType are automatically fixed
  • Accurate stats are added to resulting droid objects
  • Accurate cost can be determined if building the droid doesn't use up all remaining power. Failing that, uses go.guessCostFromStats() function. Costs are cached against the stats.
  • Native function used on WZ 3.2

Tips:

  • Specify the droidType parameter for highest reliability

(tick) addDroid()

Use this function exactly as you would on Warzone 3.2: addDroid()

Notes:

  • droidType parameter is optional (go.guessDroidTypeFromStats() will be used if omitted)
  • Bugs with cyborg engineers/mechanics droidType are automatically fixed
  • Accurately reports super cyborgs as DROID_CYBORG
  • Accurate stats are added to resulting droid objects
  • Uses cached costs based on stats or go.guessCostFromStats() function to determine cost.
  • Returns new droid object or null
  • Native function used on WZ 3.2

Tips:

  • Specify the droidType parameter for highest reliability

(warning) getDroidProduction()

Use this function exactly as you would on Warzone 3.2: getDroidProduction()

Notes:

  • Returns enhanced droid object or null
  • Accurately reports super cyborgs as DROID_CYBORG
  • (warning) Does not work on factories owned by other players (will always return null).
  • Native function used on WZ 3.2 (which should also work with other players' factories)
Availability 3.1 B1+

Requires:

Contents

Jump to:

Reliability

Warzone 3.1:

The buildDroid() and addDroid() functions are very reliable so long as the following functions output accurate results:

The getDroidProduction() function is unreliable when used on other players' factories. When used on your own factories, it's very reliable.

Warzone 3.2:

Native functions are used to ensure full reliability.

Performance

On Warzone 3.1, the functions will be slightly slower than the native WZ 3.2 counterparts, but not by much.

On Warzone 3.2, native functions are used so no performance impact.