Jump to navigation Jump to search
DIRN is a CAOS command used to change or output the direction a creature is facing.
Syntax: DIRN direction(integer)
Sets the direction a creature is facing. 0 is north (away from screen), 1 is south (toward screen), 2 is east (player right) and 3 is west (player left).
Returns an integer as above describing the direction a creature is currently facing.
The Holistic Learning Machine makes creatures pose a certain way and face toward the player:
pose 170 dirn 1
The speech bubble script adjusts its position depending on which way the creature is facing:
doif dirn eq 2 setv va01 posr subv va01 va04 else setv va01 posl endi