Script numbers

Script numbers are used in CAOS scripts, both to define what a script does (so the engine can run the relevant event script as necessary), and to allow other agents to call specific scripts.

They are used by such commands as SCRP, SCRX, CODE. They differ slightly from message numbers, which are used by commands such as MESG WRIT.

Numbers 0 to 255 are reserved for engine use, although not all of them have events associated with them, and the rest can be used for any purpose.

Creatures Evolution Engine examples
A few of the more common reserved script numbers from the Creatures Evolution Engine (C3, DS and CV) are listed below: