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

Difference between revisions of "ATTR"

From Creatures Wiki
Jump to navigation Jump to search
 
(oops, syntax on wrong line...)
Line 2: Line 2:
  
 
==ATTR for Input==
 
==ATTR for Input==
Syntax:<br />
+
Syntax: <i>ATTR binary_flags(int)</i>
<i>ATTR binary_flags(int)</i>
 
  
 
Sets the attributes of the current [[TARG]] to what you specify with 'binary_flags', this must be a single number that is the total of the attributes you have chosen's numbers.<br />
 
Sets the attributes of the current [[TARG]] to what you specify with 'binary_flags', this must be a single number that is the total of the attributes you have chosen's numbers.<br />
Line 20: Line 19:
  
 
==ATTR for Output==
 
==ATTR for Output==
Syntax:<br />
+
Syntax: <i>ATTR</i>
<i>ATTR</i>
 
  
 
Used in place of a numeric constant or variable.
 
Used in place of a numeric constant or variable.

Revision as of 16:22, 20 June 2005

ATTR is a CAOS command used to output or change the attributes of an agent.

ATTR for Input

Syntax: ATTR binary_flags(int)

Sets the attributes of the current TARG to what you specify with 'binary_flags', this must be a single number that is the total of the attributes you have chosen's numbers.
The attributes are:
1 - Can be picked up by other agents.
2 - Can be picked up by the hand.
4 - Can be activated using the hand.
8 - Vehicle only: Will automatically hold agents dropped into its cabin.
16 - Creatures can't see it. (From the CAOS docs: '...applies to ESEE and STAR on creatures, as well as internal creature code.')
32 - Stays in one position relative to the screen, position is set with FLTO. FREL can be used to make it stay in one position relative to another agent.
64 - Collides with the walls between rooms depending on its PERM.
128 - The agent is affected by gravity, air resistance and friction, these are set by ACCG, AERO and FRIC. Agents without this flag only move when thrown.
256 - The agent, and its contents if it's a vehicle, cannot be seen on cameras or on images created with SNAP.
512 - Vehicle only: Creatures can only see and interact with agents in the cabin if this flag is used.


ATTR for Output

Syntax: ATTR

Used in place of a numeric constant or variable.
Returns the ATTR number of the current TARG.

Examples

ATTR being used in the command line to set the attributes of HOTS:

TARG HOTS ATTR 194




Being used in the command line to output the attributes of HOTS:

TARG HOTS OUTV ATTR