CAOS Language Guide

So what is an Object?

An object (or agent - the two terms will be used interchangeably throughout this document) is an event driven entity within the world of Albia. These can include things as diverse as beach-balls, plants, animals, machinery, medicines - in fact anything that isn't a living Creature.

Being event driven means that the agent responds to events, and in Albia events can be activated by a creature, received a signal from another agent, hit the floor, or some other defined event.

A complete object then will consist of two main "parts" which define how it is, acts, moves etc:

This will consist of the commands necessary to create the in-game presence of the object, define it's physical attributes and the kind of events it responds to, move it into the world and start it up.

The creation of the object will also be where it is assigned a unique classifier - it is this classifier that marks the object and it's event scripts.

These are the events that an object will respond to and define how it reacts. Event code is stored in a special place within the world called the scriptorium.



Creatures 2 CAOS Language Guide

Introduction

Macro Commands

Reference