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

Difference between revisions of "TARG"

From Creatures Wiki
Jump to navigation Jump to search
m (must be more careful :P)
Line 1: Line 1:
'''TARG''' is an important concept in [[CAOS]]. It is the 'target' of the script, upon which most commands act.
+
'''TARG''' is a concept used by [[CAOS]]. Each running [[script]] has its own target [[variable]], which represents the agent on which most CAOS commands act.
  
The variables ov00 through ov99 are attached to the current TARG.
+
The target agent in agent scripts defaults to the agent in question (ie, [[OWNR]]), while there is no default target agent in install or removal scripts (ie, it is [[NULL]]).
  
----
+
The '''TARG''' variable is accessed or modified via CAOS commands:
 
 
'''TARG''' is also a [[CAOS]] command.
 
  
 
==Usage==
 
==Usage==
Line 15: Line 13:
  
 
This returns the target as an agent.
 
This returns the target as an agent.
 
  
 
==See also==
 
==See also==
* [[OWNR]] is a related concept.
 
 
* [[RTAR]] sets TARG randomly.
 
* [[RTAR]] sets TARG randomly.
 
* [[ENUM]] sets TARG sequentially.
 
* [[ENUM]] sets TARG sequentially.

Revision as of 12:02, 7 January 2006

TARG is a concept used by CAOS. Each running script has its own target variable, which represents the agent on which most CAOS commands act.

The target agent in agent scripts defaults to the agent in question (ie, OWNR), while there is no default target agent in install or removal scripts (ie, it is NULL).

The TARG variable is accessed or modified via CAOS commands:

Usage

Syntax: TARG target (agent)

This sets the target of the current script.

Syntax: TARG

This returns the target as an agent.

See also

  • RTAR sets TARG randomly.
  • ENUM sets TARG sequentially.
Editnorn.png This stub could use more information.