Welcome to the Creatures Wiki! Log in and join the community.
Message numbers
Jump to navigation
Jump to 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:
Number | Name | Description |
0 | Activate 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. |
1 | Activate 2 (Pull) | Calls the Activate 2 script. The permissions set with BHVR are checked first. |
2 | Deactivate | Calls the Deactivate script. The permissions set with BHVR are checked first. |
3 | Hit | Calls the Hit script. If the message is from a creature, and the permissions set with BHVR disallow it, then the message is not sent. |
4 | Pickup | The agent is picked up by the agent that the message was FROM. The permissions set with BHVR are checked first. |
5 | Drop | If the agent is being carried, then it is dropped. |
12 | Eat | Calls the Eat script. The permissions set with BHVR are checked first. |
13 | Hold Hands | Causes a creature to hold hands with the pointer. |
14 | Stop Holding Hands | Causes 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.