Welcome to the Creatures Wiki! Log in and join the community.


From Creatures Wiki
Jump to navigation Jump to search

TTAR is a CAOS command which randomly chooses an agent of a particular classifier which is being touched by the current agent (ETCH) and sets TARG to that agent. 0 can be used as a wildcard.

TTAR can be effectively used with RAND in a critter's timer script to make the critter interact with toys, food items, and other objects in the world, making them seem more lifelike, as in Tails and the Kyutai Whales.


Syntax: TTAR family(int) class(int) species(int)


		ttar 2 3 0
		doif targ ne null
			mesg writ targ 12
			targ ownr
			setv ov10 1