(info) Other great resources: Official JS API docs, Scripting Forum

Some WZ 3.2 changes...

Not blogged in a while, but just a quick update regarding some changes coming in future releases of WZ...

Secondary Orders

The following secondary orders have been removed:

  • Firing range – all droids now use "long range", it's no longer possible to tell them to use optimum or short range. This makes perfect sense, as it ensures your droids will fire as soon as there is a chance of hitting a target.
  • Stance – all droids now use "guard" stance, it's no longer possible to tell them to "pursue" or "hold position". A keyboard shortcut was added allowing you to tell selected droids to "stop" whatever it is they were doing, but they will still be in guard stance and may go wandering a short distance if they lock on to a target. This might be a problem for sensor droids which like to wander in to enemy firing range!

The repair setting remains, although there still isn't a way to set it via a script yet.

Droid Actions

The following DACTION constants (accessible via the 'action' property of Droid objects) have been removed:

  • DACTION_BUILD_FOUNDATION (replaced by DACTION_UNUSED3)
  • DACTION_FOUNDATION_WANDER (replaced by DACTION_UNUSED4)

While these weren't formally exposed via the JS API, it's possible that some scripts will have made use of them via their numeric values in the 'action' property of droids - as such, check your scripts to see if you were using them.

When building something, a droids action will just be DACTION_BUILD from 3.2 onwards.

Keeping track of changes

Updates seem to be gaining pace recently, with bug fixes and improvements being added several times a day. You can keep track of commits to the master branch at the following URL: https://github.com/Warzone2100/warzone2100/commits/