BHVR

From Creatures Wiki

Jump to: navigation, search

BHVR is a CAOS command used to output or change the creatures permissions (things creatures can do) of an agent.

BHVR for Input

Syntax: BHVR binary_flags(int)

Standalone command.
Sets the permissions of the current TARG to what you specify with 'binary_flags', this must be a single number that is the total of the flags you have chosen.
Creatures can do the following if the flag is used:
1 - Activate 1.
2 - Activate 2.
4 - Deactivate.
8 - Hit.
16 - Eat.
32 - Pickup.

BHVR for Output

Syntax: BHVR

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

Examples

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

TARG HOTS BHVR 33




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

TARG HOTS OUTV BHVR

See also

Personal tools