Looking for info on the NEXUS faction in the game? It's in the Warzone Encyclopaedia
.default
- Aubergine
Syntax
// get default value var defaultValue = ("key" in NEXUS.default) ? NEXUS.default["key"] : backupValue; // set default value NEXUS.default["key"] = value;
Common defaults
The following keys are commonly used by subroutines stored in the Memory Banks on this site, it's likely that your script will want to change some of them:
Key | Default value | Type | Notes |
---|---|---|---|
"throttle" | 2000 | Number | The default event throttle, per task, specified in milliseconds. You can override the throttle (or disable it) on an task by task basis if desired. For more information, see: Process Subroutines. |
"dig" | false | Boolean | Whether to keep "digging" once a triggered task has been processed. For more information, see: |
"one" | false | Boolean | Whether to remove a task once it has been fired. Be very careful about changing this! For more information, see: |
"seq" | false | Boolean | Determines the how an array of audio files in the ".ogg" property of an action will be processed. For more information, see: Process Subroutines. |
"msgTokens" | ["player", "name"] | Array of String | Determines which tokens will be parsed in actions containing a ".msg" property. For more information, see: Process Subroutines. |
Contents
Assimilate:
API Browser
Observe:
- NEXUS() — The API namespace for NEXUS, that doubles up as a function for triggering tasks.
- .infiltrate() — Infiltrates core systems so that NEXUS can absorb them.
- .suffix() — Determines the appropriate event key suffix based on the passed in object.
- .fn — Defines helper functions available to all NEXUS subroutines (and external scripts).
- .actions
- .classify() — Classifies an object using the installed taxonomy in order to derive an "Object Key".
- .default — Stores various defaults for NEXUS subroutines.