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

CARR

From Creatures Wiki
Jump to navigation Jump to search

CARR is a CAOS function that returns the agent currently holding the target.

Usage[edit]

Syntax: CARR

Returns the ID of the agent currently holding the target, or NULL if it is not being carried.

Example[edit]

It is often used to change behavior if an agent is being carried:

doif carr eq null
**do stuff
endi

or

doif carr ne null
	stop
endi

It can also be used to affect a creature or another agent that is carrying the agent.