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

CATA

From Creatures Wiki
Jump to navigation Jump to search

CATA is a DS-only CAOS command that returns the category of the current target.

Usage[edit]

Syntax: CATA

Returns the target's category as an integer.

Example[edit]

CATA is used in the DSagent help script to find an agent's category when the user left-clicks on an object, in order to say it aloud:

* left mouse - shout your name
	doif _p1_ = 1
		targ va05
*	set up string with name of object
		setv va98 cata
		sets va99 catx va98

See also[edit]