Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Overview

...

Excerpt
Indicates whether scavengers are enabled in this game.

Image RemovedScavengers are enabled or disabled on the game set-up screen. The map must define a scavenger base for the scavenger faction to actually appear.

Currently it's very difficult for the AI to do anything with scavengers. This is because they are outside the accepted player ID bounds of the JS API (see bug ticket #3123 for details).

On a 2 player map, scavengers are player 3 (or 4?). On a 4 player map, scavengers are player 7. Because the JS API will only select player IDs lower than maxPlayers, and maxPlayers is the number of selectable players on a map (eg. 2 for a 2 player map), the scavenger player is essentially inaccessible to your script.

 

Values

IconValueNotes
Image Addedtrue

Scavengers are enabled. However, this doesn't mean there will be scavengers on the map!

If the map file doesn't contain any scavenger bases, then there will not be any scavengers even when this value is true.

(warning) The map must define a scavenger base for the scavenger faction to actually appear.

Image Addedfalse

Scavengers are disabled and the map will not contain any scavengers.

If the map file contains scavenger bases/units, they will be removed from the map when this value is false.

Examples

...

How is it set?

For Challenge Games, set the "Scavengers" property in your .ini file to either true or false.

For skirmish and multiplayer games, Scavengers are enabled or disabled on the game set-up screen:

Image Added

In the early beta releases, bug #3123 prevented scripts from getting lists of scavenger droids and structures. See scavengerPlayer for some ideas as to how to deal with that.

Div
classbox
Availability
Status
colourGreen
titleStable

Requires:

  • Warzone 3.1 Beta 1 and above.
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox

See also

  • Adding Scavengers to Maps – FlaME map editor guide
  • scavengerPlayer – a global that defines which player ID the scavenger faction are playing as
  • scavfact.js – the scavenger faction AI script bundled with Warzone
  • Ultimate Scavenger AI Mod – a game mod that replaces the normal scavfact.js with a massively improved version, and also adds a new "Crane" construction droid for scavengers