Welcome to the Creatures Wiki! Log in and join the community.

Message numbers

From Creatures Wiki
Jump to: navigation, search

Message numbers are used in CAOS scripts when passing messages to an agent, i.e. to inform an agent of an event.

They are mostly invoked by creatures or the pointer or sent with the CAOS command MESG WRIT. Most message numbers are identical to script numbers, but some of the earlier ones differ. For the Creatures Evolution Engine, the most notable message numbers are:

NumberNameDescription
0Activate 1 (Push)Calls the Activate 1 script. If the message is from a creature, and the permissions set with BHVR disallow it, then the script is not executed.
1Activate 2 (Pull)Calls the Activate 2 script. The permissions set with BHVR are checked first.
2DeactivateCalls the Deactivate script. The permissions set with BHVR are checked first.
3HitCalls the Hit script. If the message is from a creature, and the permissions set with BHVR disallow it, then the message is not sent.
4PickupThe agent is picked up by the agent that the message was FROM. The permissions set with BHVR are checked first.
5DropIf the agent is being carried, then it is dropped.
12EatCalls the Eat script. The permissions set with BHVR are checked first.
13Hold HandsCauses a creature to hold hands with the pointer.
14Stop Holding HandsCauses a creature to stop holding hands with the pointer. Since messages take a tick to be procesed, calling NOHH is quicker than using this message.

Other message numbers are identical to the script numbers.

If a message is from a Creature, the agent's BHVR is always checked first, and the message is passed only if BHVR allows.