Caos

CAOS is the scripting language the Creatures series of games use. It is also used by the Sea-Monkeys computer game, which was developed using a modified Creatures engine. It is an abbreviation of 'Creatures Agent/Object Scripting', but is almost always used in shortened form. All autonomous agents (objects in Creatures; termed COBs in C1/C2) in the Creatures games are scripted using CAOS. Many CAOS guides can be found on the internet, at various forums and websites.

Learning CAOS

Learning CAOS is particularly easy if the user is experienced with computer programming, but it is still relatively accessible for others. Each Creatures game has a slightly different implementation of CAOS, "Creatures 1" and "2" differing a lot more than the more modern variants, and tutorials and support are available from online fansites, as well as from the official development support site.

CAOS basics

CAOS commands and functions are represented by four-letter tokens or multiples of, such as 'INST', 'TARG' or 'NEW: SIMP'. Scripting is done by stringing these tokens together with strings, numbers and labels. Commands do not return a value, and can only be the first token in a statement. Functions, on the other hand, do return a value, and thus can only be used as parameters. An example CAOS statement might be:
  SETV GAME "number_of_ducks" 5 
When executed, the first function to be called would be 'GAME', with the string parameter "number_of_ducks". Then, the command 'SETV' would be called, with the first parameter being the return value of the earlier 'GAME' call, and the second parameter being the numeric value 5. The functions themselves are from Creatures 3 era CAOS, and set a global game variable called "number_of_ducks" to have the numeric value 5. You could set other variables to 5 by substituting either the string passed to GAME (to set another global game variable) or by substituting the GAME function call for another one entirely. You can see from this that CAOS statements are often difficult to understand, as the parameters of different functions are not clearly separated from each other, forcing you to check the documentation. The fact that CAOS has separate concepts of commands and functions also serves to complicate matters; you'll often encounter commands and functions which, while named identically, perform different actions and take different numbers of parameters.

.cos

.cos is the file format used for CAOS source files; it is just plain text content. It cannot be directly used by any of the games; you must either convert it into a COB or agent file, or inject it using a specialist tool.

CAOS tools

An official Windows CAOS tool (for C3) made by the developers is available for download. It can be used to edit .cos files (including syntax highlighting) and to inject these files and raw CAOS directly into the game, as well as browse agent scripts which are already present in the current game world. Some fans have made their own programs as front-end applications to make using CAOS simpler; the most common example of this is BoBCoB, made for the Creatures 1 and 2 games.

External links

 

<< PreviousWord BrowserNext >>
athletics at the 2004 summer olympics women's heptathlon
elephant ears
tasmin archer
athletics at the 2004 summer olympics men's decathlon
rostislavich
johann heinrich bleuler
jack durrance
syed hamid albar
list of zip codes in mississippi
archmage
smyrno
dall sheep
christophe moreau
cisl
robert service
cinna (planet)
national association of educational broadcasters (naeb)
montshire museum of science
haberfield, new south wales
daulatabad
educational television stations
zone tailed hawk
lake manyara
holland hall school
fear (toad the wet sprocket album)
shabo lexicon
eleazar wheelock
pseudo homosexuality
abraham bing
wnseradiel
deborah servitto
d'ni wildlife
list of zip codes in indiana
joint military intelligence college
south carolina house of representatives
hms pandora (1779)
ion luca caragiale
macross 7
sprite (computer graphics)
anthems of the decade 1991 2001
south carolina general assembly
imperial academy of arts
list of zip codes in wisconsin
benitoite