CAOS Language Guide

Event numbers

Event Number

Event Name

Description

These are the in-built events that agents can respond to - in the case of creatures their brain makes a decision to cause one of these events on some object (including themselves) or their actions cause one of these events to occur. Objects are scripted to respond to event messages and their behaviour comes from this event mechanism, for which reason there is a mechanism to make your own user defined object events.

0

Deactivate

An action generally used to disable an active object - STOP to a creature

1

Activate 1

An action performed on an object - PUSH to a creature

2

Activate 2

An action performed on an object - PULL to a creature

3

Hit

An action performed on an object - HIT to a creature

4

Pickup

The event that is run when an object is picked up - GET to a creature

5

Drop

The event that is run when an object is dropped - DROP to a creature

6

Collision

The event that is run when an object has collided with a room boundary or floor

7

Enter scope

The event an object receives when the world starts up

9

Timer

The event an object receives when it's tick has reached zero

10

Push left

An action performed on an object

11

Push right

An action performed on an object

12

Eat

An action performed on an object




16

Extra Quiescent

CREATURE - Stand and watch it

17

Extra Activate 1

CREATURE - Activate 1 it

18

Extra Activate 2

CREATURE - Activate 2 it

19

Extra Deactivate

CREATURE - Deactivate it

20

Extra Seek

CREATURE - Go up and look at it

21

Extra Avoid

CREATURE - Walk/run away from it

22

Extra Pickup

CREATURE - Pick it up

23

Extra Drop

CREATURE - Drop anything you are carrying

24

Extra Need

CREATURE - Say what's bothering you

25

Extra Rest

No such action needed - do not script

26

Extra West

CREATURE - Walk idly to west

27

Extra East

CREATURE - Walk idly to east

28

Extra Eat

CREATURE - Eat it

29

Extra Hit

CREATURE - Hit it




32

Intro Quiescent

CREATURE - Stand and twiddle your thumbs

33

Intro Activate 1

No such action needed - do not script

34

Intro Activate 2

No such action needed - do not script

35

Intro Deactivate

No such action needed - do not script

36

Intro Seek

No such action needed - do not script

37

Intro Avoid

No such action needed - do not script

38

Intro Pickup

No such action needed - do not script

39

Intro Drop

CREATURE - Drop anything you are carrying

40

Intro Need

CREATURE - Say what's bothering you

41

Intro Rest

CREATURE - rest or sleep

42

Intro West

CREATURE - Walk idly to west

43

Intro East

CREATURE - Walk idly to east

44

Intro Eat

No such action needed - do not script

45

Intro Hit

No such action needed - do not script




50

Pointer Activate 1

POINTER - Left button click causing an Activate 1

51

Pointer Activate 2

POINTER - Left button click causing an Activate 2

52

Pointer Deactivate

POINTER - Left button click causing a Deactivate

53

Pointer Pickup

POINTER - Right button click, grab object

54

Pointer Drop

POINTER - Right button click to drop a held object

55

Pointer Push Left

POINTER - Left button click in push pointer mode

56

Pointer Push Right

POINTER - Left button click in push pointer mode




64

Involuntary 0

CREATURE - Chemically invoked reflex or pathological behaviour

65

Involuntary 1

CREATURE - Chemically invoked reflex or pathological behaviour

66

Involuntary 2

CREATURE - Chemically invoked reflex or pathological behaviour

67

Involuntary 3

CREATURE - Chemically invoked reflex or pathological behaviour

68

Involuntary 4

CREATURE - Chemically invoked reflex or pathological behaviour

69

Involuntary 5

CREATURE - Chemically invoked reflex or pathological behaviour

70

Involuntary 6

CREATURE - Chemically invoked reflex or pathological behaviour

71

Involuntary 7

CREATURE - Chemically invoked reflex or pathological behaviour

72

Death

CREATURE - Death event




200

Donate Sperm

MALE CREATURE - event that can triggered by a female during mating.




255

Exception

A script was referencing an object that has been destroyed

256

user defined

All events from 256 - 65535 are user defined. This allows objects to employ common methods across different objects. The events can be triggered using the MESG WRT+ command and/or the KMSG command.

user defined


65535

user defined




Creatures 2 CAOS Language Guide

Introduction

Macro Commands

Reference