CAOS Language Guide

Object Communication

Macro

Description

These commands are used to send messages between objects and creatures.

The possible values for message and stimulus# are detailed in the reference section.

list_of_stimulus_items is comprised of the following items,

significance - amount to nudge the Source lobe neurone by, this decides the significance of the object.

input - which neurone in the General Sense lobe to fire (or 255 for none)

intensity - the amount to nudge the General Sense neurone selected as input

features - <<do not use non-zero values -- not implemented >>

chem0 amount0 - this part lists 4 chemicals to emit and the amounts. If less than 4 chemicals are

chem1 amount1 - required then the remaining values should be set to 0

chem2 amount2

chem3 amount3

MESG SHOU message

Shout message to all creatures that can hear the object

Command only

MESG SIGN message

Send message to all creatures that can see the object

Command only

MESG TACT message

Send message to all creatures that are touching the object

Command only

MESG WRIT object message

Write a message to a particular object (e.g. NORN, FROM, _IT_ etc)

Command only



MESG WRT+ object m p1 p2 delay

Write message m with parameters p1 and p2 to object; to be handled in delay clock ticks. If delay = 0 the message will be handled immediately. m must be in the range 256..65535. (Messages 0..12 are currently used for ACTIVATE1 etc. events).

The message that is sent will trigger event m on the targ object.

Command only



STM# SHOU stimulus#

Shout stimulus# to all creatures within earshot

Command only

STM# SIGN stimulus#

Send stimulus# to all creatures that can see the object

Command only

STM# TACT stimulus#

Send stimulus# to all creatures that are touching the object

Command only

STM# WRIT object stimulus#

Send stimulus# to the specified object

Command only



STIM SHOU list_of_stimulus_items

Shout the list_of_stimulus_items to all within earshot

Command only

STIM SIGN list_of_stimulus_items

Send the list_of_stimulus_items to all that can see the object

Command only

STIM TACT list_of_stimulus_items

Send the list_of_stimulus_items to all that are touching the object

Command only

STIM WRIT object list_of_stimulus_items

Send list_of_stimulus_items to a particular object.

Command only



Creatures 2 CAOS Language Guide

Introduction

Macro Commands

Reference