# Notability CAOS is a domain-specific low-level scripting language designed for the game [[Creatures (1996)]]. It implements a system for defining behaviors and a neural network for training. It is the DNA of the "norns" as well as all of the objects they can interact with. # Syntax It is a terse mnemonic language somewhere between [[Data Languages]] and a [[Assembly Language]] with a fixed set of registers. Despite this, it operates on objects, making it fairly unique. In a way similar to [[blacklight]]. The Creatures wiki [lists](https://creatures.wiki/Category:C3_CAOS_Commands) 313 pages in the CAOS 3 command list, most of which are mnemonics. Some are sub-commands such as `HIST SEAN`. ```fortran inst new: simp 2 21 2000 "SCay_Bunny" 10 0 1000 attr 199 bhvr 11 elas 0 accg 3 aero 2 fric 100 perm 100 *...* scrp 2 21 2000 1 *feels like a toy stim writ from 97 1 targ from *Half-fills the creature's blood with prostaglandin, a healing chemical chem 94 0.5 *Quarter-empties the creature's blood of loneliness chem 156 -0.25 targ ownr endm *PULL scrp 2 21 2000 2 stim writ from 97 1 targ from chem 94 0.5 chem 156 -0.25 targ ownr endm *HIT scrp 2 21 2000 3 stim writ from 97 1 targ from chem 94 0.5 chem 156 -0.25 targ ownr endm *COLLISION scrp 2 21 2000 6 doif wall eq down snde "dr64" endi endm rscr enum 2 21 2000 kill targ next scrx 2 21 2000 1 scrx 2 21 2000 2 scrx 2 21 2000 3 scrx 2 21 2000 6 endm ``` # References ```cardlink url: https://youtu.be/Y-6DzI-krUQ title: "The AI of \"Creatures\" ● Alan Zucconi" description: "This short documentary is dedicated to the game that advanced Artificial Intelligence and Artificial Life like no other game did: \"Creatures\".Join me on this..." host: youtu.be favicon: https://www.youtube.com/s/desktop/24644f83/img/favicon_32x32.png image: https://i.ytimg.com/vi/Y-6DzI-krUQ/maxresdefault.jpg ``` - https://creatures.wiki/CAOS - https://www.alanzucconi.com/2020/07/27/the-ai-of-creatures/ - https://discoveralbia.com/2011/11/a-little-bit-of-caos.html - https://github.com/openc2e/openc2e - https://github.com/heinermann/starbound-caos-vm