CODE

From Creatures Wikia

Jump to: navigation, search

CODE is a CAOS function used to work out which script is being run by an agent.

Usage

Syntax: CODE

Returns, as an integer, the script number of the script currently being executed by the current TARG, or -1 if no script is running.

Examples

CODE being used in the CAOS Command Line, to display the current script being run by HOTS:

TARG HOTS OUTV CODE

Code to kill the current target agent if it is running the hit scipt:

SETV va00 CODE
DOIF va00 = 3
  KILL TARG
ENDI
Personal tools