Agents
ABBA
(integer)
Returns the first_image (ie, absolute base) value for the current agent/part, or -1 if part# doesn't exist on a compound agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_ABBA
ALPH
(command)
alpha_value
(integer)
enable
(integer)
Sets the degree of alpha blending on the TARG agent, to a value from 0 (solid) to 256
(invisible). The second parameter will turn alpha blending on and off.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_ALPH
ANIM
(command)
poselist
(bytestring)
Sets the animation string for TARG, in the format '1 2 3 4'.
If it ends with '255', loops back to beginning; if it ends with '255 X', loops back to frame X.
todo: compound agent stuff
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_ANIM
ANMS
(command)
poselist
(string)
Exactly like ANIM, only using a string and not a bytestring for poselist source.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_ANMS
ATTR
(command)
attr
(integer)
Sets attributes of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_ATTR
ATTR
(variable)
Attributes of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_ATTR
- Pragmas:
- variants => c1 c2 cv c3 sm
BASE
(command)
index
(integer)
Sets the frame in the TARG agent's spritefile that will be used as its base image.
This is relative to the first image set with one of the NEW: commands.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_BASE
- Pragmas:
- variants => c1 c2 cv c3 sm
BASE
(integer)
Returns the frame in the TARG agent/part's spritefile being used as the BASE image, or -1 if part# doesn't exist on a compound agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_BASE
BHVR
(command)
bhvr
(integer)
Sets the behaviour of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_BHVR
BHVR
(integer)
Returns the behaviour of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_BHVR
CARR
(agent)
Returns the agent that is carrying the TARG agent. If TARG is not being carried, returns
NULL.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_CARR
CORE
(command)
topy
(float)
bottomy
(float)
leftx
(float)
rightx
(float)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_CORE
DCOR
(command)
core_on
(integer)
Turns the display of the TARG agent's physical core on and off. Gives a general idea of
its size and location (including invisible agents).
This command works properly.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_DCOR
- Pragmas:
- variants => all
DISQ
(float)
other
(agent)
Calculates the square of the distance between the centers of the TARG agent and the given
agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_DISQ
DROP
(command)
Causes the TARG agent to drop what it is carrying in a safe location.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_DROP
- Pragmas:
- variants => c1 c2 cv c3 sm
FMLY
(integer)
Returns the family of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_FMLY
- Pragmas:
- variants => c1 c2 cv c3 sm
FRAT
(command)
framerate
(integer)
Sets the delay between frame changes of the TARG agent or current PART.
Must be from 1 to 255, 1 being the normal rate, 2 being half as quickly, and so on.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_FRAT
FROM
(variable)
Returns the agent that sent the message being processed, or NULL if no agent was involved.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_FROM_ds
- Pragmas:
- implementation => caosVM::v_FROM_ds
- variants => c3
GALL
(command)
spritefile
(string)
first_image
(integer)
Changes the sprite file and first image associated with the TARG agent or current PART.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_GALL
GALL
(string)
Returns the name of the sprite file associated with the TARG agent or current PART, or a blank string if part# is invalid on a compound agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_GALL
GNUS
(integer)
Returns the genus of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_GNUS
- Pragmas:
- variants => c1 c2 cv c3 sm
HAND
(command)
name
(string)
Sets the name of the Hand.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_HAND
HAND
(string)
Returns the name of the Hand; default is 'hand'.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_HAND
HELD
(agent)
Returns the agent currently held by the TARG agent, or a random one if there are more than one.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_HELD
HGHT
(integer)
Returns the TARG agent's height.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_HGHT
- Pragmas:
- variants => c1 c2 cv c3 sm
IMGE
(command)
filename
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_IMGE
KILL
(command)
agent
(agent)
Destroys the agent in question. However, you cannot destroy PNTR.
Remember, use DEAD first for Creatures!
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_KILL
- Pragmas:
- variants => c1 c2 cv c3 sm
MESG WRIT
(command)
agent
(agent)
message_id
(integer)
Sends a message of type message_id to the given agent. FROM will be set to OWNR unless
there is no agent involved in sending the message.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_MESG_WRIT
- Pragmas:
- variants => c1 c2 cv c3 sm
MESG WRT+
(command)
agent
(agent)
message_id
(integer)
param_1
(anything)
param_2
(anything)
delay
(integer)
Sends a message of type message_id to the given agent, much like MESG WRIT, but with the
addition of parameters. The message will be sent after waiting the number of ticks set
in delay (except doesn't, right now. Delay must be set to zero for now.)
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_MESG_WRT
- Pragmas:
- variants => c2 cv c3 sm
MIRA
(command)
mirror_on
(integer)
Turns mirroring of the TARG agent's current sprite on or off (0 or 1).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_MIRA
MIRA
(integer)
Determines whether or not the TARG agent's current sprite is mirrored. Returns 0 or 1.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_MIRA
NCLS
(agent)
previous
(agent)
family
(integer)
genus
(integer)
species
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_NCLS
NEW: COMP
(command)
family
(integer)
genus
(integer)
species
(integer)
sprite_file
(string)
image_count
(integer)
first_image
(integer)
plane
(integer)
Creates a new composite agent with given family/genus/species, given spritefile with image_count sprites
available starting at first_image in the spritefile, with the first part at the screen depth given by plane.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_NEW_COMP
NEW: SIMP
(command)
family
(integer)
genus
(integer)
species
(integer)
sprite_file
(string)
image_count
(integer)
first_image
(integer)
plane
(integer)
Creates a new simple agent with given family/genus/species, given spritefile with image_count sprites
available starting at first_image in the spritefile, at the screen depth given by plane.
TARG is set to the newly-created agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_NEW_SIMP
NEW: VHCL
(command)
family
(integer)
genus
(integer)
species
(integer)
sprite_file
(string)
image_count
(integer)
first_image
(integer)
plane
(integer)
Creates a new vehicle agent with given family/genus/species, given spritefile with image_count sprites
available starting at first_image in the spritefile, with the first part at the screen depth given by plane.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_NEW_VHCL
NULL
(agent)
Returns a null (zero) agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_NULL
OVER
(command)
Waits (blocks the TARG agent) until the animation of the TARG agent or PART is over.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_OVER
- Pragmas:
- variants => c1 c2 cv c3 sm
OWNR
(agent)
Returns OWNR, the agent that is running the script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_OWNR
- Pragmas:
- variants => c1 c2 cv c3 sm
PCLS
(agent)
previous
(agent)
family
(integer)
genus
(integer)
species
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_PCLS
PLNE
(command)
depth
(integer)
Sets the plane (the z-order) of the TARG agent. Higher values are closer to the camera.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_PLNE
PLNE
(integer)
Returns the plane (z-order) of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_PLNE
PNTR
(agent)
Returns the pointer agent (the Hand).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_PNTR
- Pragmas:
- variants => c1 c2 cv c3 sm
POSB
(float)
Returns the position of the bottom side of TARG's bounding box.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_POSB
- Pragmas:
- variants => c1 c2 cv c3 sm
POSE
(command)
pose
(integer)
Sets the displayed sprite of TARG to the frame in the sprite file with the given integer.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_POSE
- Pragmas:
- variants => c1 c2 cv c3 sm
POSE
(integer)
Returns the number of the frame in the TARG part/agent's sprite file that is currently being displayed, or -1 if part# doesn't exist on a compound agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_POSE
- Pragmas:
- variants => c1 c2 cv c3 sm
POSL
(float)
Returns the position of the left side of TARG's bounding box.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_POSL
- Pragmas:
- variants => c1 c2 cv c3 sm
POSR
(float)
Returns the position of the right side of TARG's bounding box.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_POSR
- Pragmas:
- variants => c1 c2 cv c3 sm
POST
(float)
Returns the position of the top side of TARG's bounding box.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_POST
- Pragmas:
- variants => c1 c2 cv c3 sm
POSX
(float)
Returns the X position of the TARG agent in the world.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_POSX
- Pragmas:
- variants => c2 cv c3 sm
POSY
(float)
Returns the Y position of the TARG agent in the world.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_POSY
- Pragmas:
- variants => c2 cv c3 sm
PRNT
(command)
pose
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_PRNT
PUHL
(command)
pose
(integer)
x
(integer)
y
(integer)
Sets relative x/y coordinates for TARG's pickup point.
Pose is -1 for all poses, or a pose relative to the first image specified in NEW: (not BASE).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_PUHL
PUHL
(integer)
pose
(integer)
x_or_y
(integer)
Returns the coordinate for TARG's pickup point. x_or_y should be 1 for x, or 2 for y.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_PUHL
PUPT
(command)
pose
(integer)
x
(integer)
y
(integer)
Sets relative x/y coordinates for the location in the world where the TARG agent picks up
objects. The pose is relative to the first image set in NEW: (not BASE).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_PUPT
RNGE
(command)
distance
(float)
Sets the TARG agent's range (i.e., the distance it can see and hear).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_RNGE
RNGE
(integer)
Returns the TARG agent's range.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_RNGE
RTAR
(command)
family
(integer)
genus
(integer)
species
(integer)
Sets TARG to a random agent with the given family/genus/species.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_RTAR
- Pragmas:
- variants => c1 c2 cv c3 sm
SCLE
(command)
pose
(integer)
scaleby
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_SCLE
SEEE
(integer)
first
(agent)
second
(agent)
Returns 1 if the first agent can see the other, or 0 otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_SEEE
SHOW
(command)
visibility
(integer)
Sets visibility of the TARG agent to cameras. 0 = invisible, 1 = visible.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_SHOW
SHOW
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_SHOW
SPCS
(integer)
Returns the species of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_SPCS
- Pragmas:
- variants => c1 c2 cv c3 sm
STAR
(command)
family
(integer)
genus
(integer)
species
(integer)
Locates a random agent that is visible to OWNR (see ESEE) and that
matches the given classifier, then sets it to TARG.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_STAR
- Pragmas:
- variants => c2 cv c3 sm
STPT
(command)
Stop the script running in TARG, if any.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_STPT
STRC
(command)
width
(integer)
height
(integer)
enable
(integer)
Draw the current agent (or part? don't know) with the given width/height (ie, stretch the sprite). Set enable to 1 to enable, or 0 to disable.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_STRC
TARG
(command)
agent
(agent)
Sets TARG (the target agent) to the given agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_TARG
- Pragmas:
- variants => c1 c2 cv c3 sm
TARG
(agent)
Returns TARG, the currently-targeted agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TARG
- Pragmas:
- variants => c1 c2 cv c3 sm
TCOR
(integer)
topy
(float)
bottomy
(float)
leftx
(float)
rightx
(float)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TCOR
TICK
(command)
tickrate
(integer)
Initiates the agent timer-- the Timer script will then be run once every tickrate ticks.
Setting tickrate to zero will stop the timer.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_TICK
- Pragmas:
- variants => c1 c2 cv c3 sm
TICK
(integer)
Return the agent timer tick rate of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TICK
- Pragmas:
- variants => c2 cv c3 sm
TINO
(command)
red
(integer)
green
(integer)
blue
(integer)
rotation
(integer)
swap
(integer)
Works like the TINT command, but only applies the tint to the current frame, and discards the rest.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_TINO
TINT
(command)
red_tint
(integer)
green_tint
(integer)
blue_tint
(integer)
rotation
(integer)
swap
(integer)
Sets the tinting of the TARG agent to the given red, blue, and green values.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_TINT
TINT
(integer)
attribute
(integer)
Returns the tint value for TARG agent. Pass 1 for red, 2 for blue, 3 for green, 4 for rotation or 5 for swap.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TINT
TNTW
(command)
index
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_TNTW
TOTL
(integer)
family
(integer)
genus
(integer)
species
(integer)
Returns the total number of in-game agents matching the given family/genus/species.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TOTL
- Pragmas:
- variants => c1 c2 cv c3 sm
TOUC
(integer)
first
(agent)
second
(agent)
Determines whether the two given agents are touching. Returns 0 (if not) or 1 (if so).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TOUC
- Pragmas:
- variants => c1 c2 cv c3 sm
TRAN
(command)
transparency
(integer)
part_no
(integer)
Sets the TARG agent's behaviour with regard to transparency. If set to 1, invisible
parts of the agent can't be clicked. If 0, anywhere on the agent (including transparent
parts) can be clicked.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_TRAN
TRAN
(integer)
x
(integer)
y
(integer)
Tests if the pixel at (x,y) on the TARG agent is transparent.
Returns 0 or 1.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TRAN
TTAR
(command)
family
(integer)
genus
(integer)
species
(integer)
Locates a random agent that is touching OWNR (see ETCH) and that
matches the given classifier, and sets it to TARG.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::c_TTAR
TWIN
(agent)
source
(agent)
null_vars
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_TWIN
WDTH
(integer)
Returns the TARG agent's width.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_agent.cpp
- Implementation functions (may be wrong): caosVM::v_WDTH
- Pragmas:
- variants => c1 c2 cv c3 sm
Cameras
BKGD
(command)
metaroom_id
(integer)
background
(string)
transition
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_BKGD
BKGD
(string)
metaroom_id
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_BKGD
CMRA
(command)
x
(integer)
y
(integer)
pan
(integer)
Sets the position of the current camera so that the top left corner of the view is at the
given coordinates.
Set pan to 0 for no panning (jump), or 1 for smooth scrolling if in the same metaroom.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_CMRA
CMRP
(command)
x
(integer)
y
(integer)
pan
(integer)
Sets the position of the current camera so that the view centers on the given coordinates.
Set pan to 0 for no panning (jump), 1 for smooth scrolling if in the same metaroom, or 2
for smooth scrolling if the given location is already visible.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_CMRP
CMRT
(command)
pan
(integer)
Focuses the current camera on the TARG agent.
Set pan to 0 for no panning (jump), 1 for smooth scrolling if in the same metaroom, or 2
for smooth scrolling if the given location is already visible.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_CMRT
CMRX
(integer)
Returns the X position at the center of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_CMRX
- Pragmas:
- variants => c2 cv c3 sm
CMRY
(integer)
Returns the Y position at the center of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_CMRY
- Pragmas:
- variants => c2 cv c3 sm
FRSH
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_FRSH
LINE
(command)
x1
(integer)
y1
(integer)
x2
(integer)
y2
(integer)
r
(integer)
g
(integer)
b
(integer)
stipple_on
(integer)
stipple_off
(integer)
Draw a line between two endpoints with the given coordinates, in the color specified by
the given red, green, and blue values.
Set stipple_on to a number of pixels to alternate for stippling, or set stipple_off to
turn stippling off.
Setting the the endpoints to the same point will remove all lines for the agent.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_LINE
LOFT
(integer)
filename
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_LOFT
META
(command)
metaroom_id
(integer)
camera_x
(integer)
camera_y
(integer)
transition
(integer)
Sets the metaroom that the current camera is pointing at. Coordinates point to top left of new
camera position. Set a coordinate to -1 to use the top-left corner of the metaroom.
Transition: 0 for none, 1 for flip horzizontally, 2 for burst.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_META
META
(integer)
Returns the metaroom the current camera is looking at.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_META
ONTV
(integer)
agent
(agent)
checkall
(integer)
Returns 1 if the specified agent is on camera, or 0 otherwise. If checkall is 0, only checks
main camera, otherwise checks all.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_ONTV
SCAM
(command)
agent
(agent)
part
(integer)
Sets which camera to use in camera macro commands. If 'agent' and
'part' are NULL, the main camera will be used.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_SCAM
SNAP
(command)
filename
(string)
x
(integer)
y
(integer)
width
(integer)
height
(integer)
zoom
(integer)
Take a snapshot and save it to the given filename (don't include the extension). x/y are the centerpoint, width/height the size, and zoom the percentage to zoom out.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_SNAP
SNAX
(integer)
filename
(string)
Determines whether or not the given image file exists in the world
images directory (0 or 1).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_SNAX
TRCK
(command)
agent
(agent)
xpercent
(integer)
ypercent
(integer)
style
(integer)
transition
(integer)
Tell the current camera to track the specified agent, or set to NULL to stop tracking.
xpercent and ypercent define a rectangle on the screen which the camera should keep the tracked agent inside.
Style 0 is brittle-- tracking is broken easily. Style 1 is flexible-- moving the camera
back inside the rectangle resumes tracking. Style 3 is hard-- you can't move outside the
rectangle.
Rransition: 0 for none, 1 for flip horizontal, 2 for burst.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_TRCK
TRCK
(agent)
Returns agent being tracked by the current camera, if any.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_TRCK
VISI
(integer)
checkall
(integer)
Returns 1 if the TARG agent is on camera, or 0 otherwise. If checkall is 0, only checks
main camera, otherwise checks all.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_VISI
WDOW
(command)
Toggles full-screen mode on and off.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_WDOW
WDOW
(integer)
Returns 1 if in full-screen mode, or 0 otherwise (windowed).
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_WDOW
WNDB
(integer)
Returns the position of the bottom edge of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_WNDB
WNDH
(integer)
Returns the height of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_WNDH
WNDL
(integer)
Returns the position of the left edge of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_WNDL
WNDR
(integer)
Returns the position of the right edge of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_WNDR
WNDT
(integer)
Returns the position of the top edge of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_WNDT
WNDW
(integer)
Returns the width of the current camera's view.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::v_WNDW
ZOOM
(command)
pixels
(integer)
x
(integer)
y
(integer)
Zoom the current camera by the given number of pixels on the given x/y
coordinates in the world. If the coordinates are set to -1, the
current center position of the camera's view will be used.
This command is not yet implemented.
- Implemented in: caosVM_camera.cpp
- Implementation functions (may be wrong): caosVM::c_ZOOM
Compound agents
FCUS
(command)
Focus the current targeted part, which must be a PAT: TEXT.
If the target is null, then the current part will be unfocused.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_FCUS
FRMT
(command)
left_margin
(integer)
top_margin
(integer)
right_margin
(integer)
button_margin
(integer)
line_spacing
(integer)
char_spacing
(integer)
justification
(integer)
Alters the appearance of the target text part. The spacing values and margins are to be specified in
pixels. Justification can be 0 for left, 1 for right, 2 for center, 4 for bottom, 8 for middle or 16
for 'last page scroll' (TODO?), and you can add these together (except 0/1 are mutually exclusive, obviously).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_FRMT
GRPL
(command)
red
(integer)
green
(integer)
blue
(integer)
min
(float)
max
(float)
Add a new line to a graph created with PAT: GRPH with the given
characteristics.
This command is not yet implemented.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_GRPL
GRPV
(command)
line
(integer)
value
(float)
Add the given value to the given line on a graph.
This command is not yet implemented.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_GRPV
NPGS
(integer)
Returns the number of pages for the current text part.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::v_NPGS
PAGE
(command)
page
(integer)
Sets the zero-based page number of the current text part. This must be less than NPGS.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAGE
PAGE
(integer)
Returns the zero-based page number of the current text part.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::v_PAGE
PART
(command)
part_id
(integer)
Sets the part number of the TARGeted compound agent or vehicle to work on (ANIM/POSE use this,
amongst other commands).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PART
- Pragmas:
- variants => c1 c2 cv c3 sm
PART
(integer)
part_id
(integer)
Returns 1 if the given part number exists on the target agent, or 0 if otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::v_PART
PAT: BUTT
(command)
part
(integer)
sprite
(string)
first_image
(integer)
image_count
(integer)
x
(integer)
y
(integer)
plane
(integer)
hoveranim
(bytestring)
messageid
(integer)
option
(integer)
Adds a new 'button' part to the TARGed compound agent/vehicle.
Part ID numbers begin at 1. x/y/plane are relative to the agent you're working on.
'hoveranim' is the animation to use when the part is mouse-overed - see ANIM for details.
'messageid' is the message sent when the button is clicked - _p1_ of the message is set to the part number.
If option is 1, mouseclicks/hovers only apply to non-transparent areas. otherwise, option should be 0.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_BUTT
PAT: CMRA
(command)
part
(integer)
sprite
(string)
first_image
(integer)
x
(integer)
y
(integer)
plane
(integer)
viewwidth
(integer)
viewheight
(integer)
camerawidth
(integer)
cameraheight
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_CMRA
PAT: DULL
(command)
part
(integer)
sprite
(string)
first_image
(integer)
x
(integer)
y
(integer)
plane
(integer)
Adds a new 'dull' part to the TARGed compound agent/vehicle which does nothing but display an image.
Part ID numbers begin at 1. x/y/plane are relative to the agent you're working on.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_DULL
- Pragmas:
- variants => cv c3
PAT: FIXD
(command)
part
(integer)
sprite
(string)
first_image
(integer)
x
(integer)
y
(integer)
plane
(integer)
fontsprite
(string)
Adds a new 'fixed' text part to the TARGed compound agent/vehicle,
Part ID numbers begin at 1. x/y/plane are relative to the agent you're working on.
The 'first_image' frame of the given sprite file will be used underneath the text, which is set with PTXT.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_FIXD
PAT: GRPH
(command)
part
(integer)
sprite
(string)
first_image
(integer)
x
(integer)
y
(integer)
plane
(integer)
numvalues
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_GRPH
PAT: KILL
(command)
part
(integer)
Kills the specified part of the TARGed compound agent or vehicle.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_KILL
PAT: MOVE
(command)
part
(integer)
x
(integer)
y
(integer)
move the compound part specified to the new relative position specified
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_MOVE
PAT: TEXT
(command)
part
(integer)
sprite
(string)
first_image
(integer)
x
(integer)
y
(integer)
plane
(integer)
message_id
(integer)
fontsprite
(string)
Adds a new text entry part to the TARGed compound agent/vehicle.
Part ID numbers begin at 1. x/y/plane are relative to the agent you're working on.
The 'first_image' frame of the given sprite file will be used underneath the text. The part will
gain the focus when FCUS is called or when it is clicked. A message of the given type will be sent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PAT_TEXT
PNXT
(integer)
previous_part
(integer)
Returns the next part of the TARG compound agent or vehicle, (or -1 if you have reached the end, or
the first part if you go past -1).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::v_PNXT
PTXT
(command)
text
(string)
Sets the text displayed in the current text part.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::c_PTXT
PTXT
(string)
Returns the text displayed in the current text part.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_compound.cpp
- Implementation functions (may be wrong): caosVM::v_PTXT
Core functions
DELG
(command)
name
(string)
Deletes the game variable with the given name.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_DELG
EAME
(variable)
name
(anything)
Returns the non-persistent game variable with the given name.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_EAME
ENDM
(command)
Marks the end of a script.
This command works properly.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_ENDM
- Pragmas:
- variants => c1 c2 cv c3 sm
GAME
(variable)
name
(string)
Returns the game variable with the given name.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_GAME
ISCR
(command)
Marks the beginning of an installer script.
This command is not yet implemented.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_ISCR
- Pragmas:
- variants => c2 cv c3 sm
LANG
(string)
This command is currently undocumented.
This command works properly.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_LANG
MOWS
(integer)
Returns whether the lawn was cut last Sunday or not, in theory.
How the C2E engine determines this, and whose lawn, exactly, and whether or not it takes into account the fact that the lawn may have been mown on Saturday or Friday, and whether it will cut you any slack if it's winter and the grass isn't growing much, is currently unknown.
In openc2e, currently a no-op (ie, the lawn is never, ever cut properly).
This command is not yet implemented.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_MOWS
OC2E DDIR
(string)
Returns a list of the data directories available, separated with \n. Remember that the last one is the working directory.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_OC2E_DDIR
- Pragmas:
- variants => all
OUTS
(command)
val
(string)
Prints the given string to the output stream. Does nothing when run inside a script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_OUTS
- Pragmas:
- variants => all
OUTV
(command)
val
(decimal)
Prints the given decimal value to the ouput stream. Does nothing when run inside a script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_OUTV
- Pragmas:
- variants => all
OUTX
(command)
val
(string)
Prints the given string on the output stream, after first quoting it and transforming
escapes in the string to quoted escapes.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_OUTX
RGAM
(command)
Restore all game variables to their saved or default values.
This command is not yet implemented.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_RGAM
RSCR
(command)
Marks the beginning of a removal script.
This command works properly.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_RSCR
- Pragmas:
- variants => c2 cv c3 sm
SCRP
(command)
family
(integer)
genus
(integer)
species
(integer)
event
(integer)
Marks the beginning of a normal script applying to the agent with the given classifier
info.
This command works properly.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::c_SCRP
- Pragmas:
- variants => c1 c2 cv c3 sm
VMJR
(integer)
Returns the major version number of the engine.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_VMJR
VMNR
(integer)
Returns the minor version number of the engine.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_VMNR
WOLF
(integer)
andmask
(integer)
eormask
(integer)
This returns/sets some engine settings which are useful for 'wolfing runs', among other things.
Set andmask for the information you want returned, and eormask for the information you want changed.
1 is for display rendering (turn it off to speed up the game)
2 is for running ticks as fast as possible, rather than according to BUZZ
4 is for refreshing the display (when display rendering is turned off, this will update the display at the end of the tick)
(note that 4 is unset by the engine when the display is refreshed)
8 is autokill
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_core.cpp
- Implementation functions (may be wrong): caosVM::v_WOLF
Creatures
AGES
(command)
times
(integer)
Age (ie, increase the life stage of) the target creature the specified number of times.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_AGES
APPR
(command)
Makes the target Creature approach the IT agent (or if none, an agent of that category using CAs),
blocking until it makes it there or gives up.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_APPR
- Pragmas:
- variants => c1 c2 cv c3
ASLP
(command)
asleep
(integer)
If asleep is 1, makes the target creature sleep. If asleep is 0, makes the target creature wake.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_ASLP
- Pragmas:
- variants => c1 c2 cv c3
ASLP
(integer)
Determines whether the target Creature is asleep.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_ASLP
- Pragmas:
- variants => c1 c2 cv c3
ATTN
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_ATTN
BODY
(command)
set
(integer)
layer
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_BODY
BODY
(integer)
part
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_BODY
BORN
(command)
Registers the birth of the target Creature, and sends a birth event to
the game.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_BORN
BRED
(integer)
part
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_BRED
BVAR
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_BVAR
BYIT
(integer)
Determines whether or not the target Creature can reach the IT agent (0
or 1).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_BYIT
CAGE
(integer)
Returns the integer value of the target Creature's current life stage.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_CAGE
- Pragmas:
- variants => c1 c2 cv c3
CHEM
(command)
chemical_id
(integer)
adjust
(float)
Modifies the level of a chemical in target Creature's bloodstream by adjust, which can range from -1.0 (decrease) to 1.0 (increase).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_CHEM
CHEM
(float)
chemical_id
(integer)
Returns the level of a chemical (0.0 to 1.0) in target creature's bloodstream.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_CHEM
CREA
(integer)
agent
(agent)
Determines whether the given agent is a creature or not (0 or 1).
This command works properly.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_CREA
DEAD
(command)
Kill the target Creature biologically.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_DEAD
DEAD
(integer)
Determines whether the target Creature is alive (0) or dead (255 in c1/c2, 1 otherwise).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DEAD
- Pragmas:
- variants => c1 c2 cv c3
DECN
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DECN
DFTX
(float)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DFTX
DFTY
(float)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DFTY
DIRN
(command)
direction
(integer)
Changes the target Creature to face a different direction.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_DIRN
DIRN
(integer)
Returns the direction the target Creatures is facing.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DIRN
- Pragmas:
- variants => c2 cv c3
DOIN
(command)
noinstincts
(integer)
Make the target creature process the specified number of instincts.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_DOIN
DONE
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_DONE
- Pragmas:
- variants => c1 c2 cv c3
DREA
(command)
dream
(integer)
Turns a Creature's dreaming on and off. A Creature's instincts are
processed while it is dreaming. If it is not asleep already, then it
will be made to sleep before dreaming begins.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_DREA
DREA
(integer)
Returns whether or not the target Creature is dreaming (0 or 1).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DREA
DRIV
(command)
drive_id
(integer)
adjust
(float)
Modifies the level of a drive in target Creature by the given level, which can range from -1.0 (decrease) to 1.0 (increase).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_DRIV
DRIV
(float)
drive_id
(integer)
Returns the level of a drive (0.0 to 1.0) in target Creature.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DRIV
DRV!
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_DRV
- Pragmas:
- implementation => caosVM::v_DRV
- variants => c1 c2 cv c3
DYED
(command)
part
(integer)
overlay
(integer)
set
(integer)
layer
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_DYED
EXPR
(command)
index
(integer)
ticks
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_EXPR
EXPR
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_EXPR
FACE
(command)
number
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_FACE
FACE INT
(integer)
Returns the front-facing pose for the current facial expression of the target creature.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_FACE_INT
FACE STRING
(string)
Returns the current sprite filename for the face of the target creature.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_FACE_STRING
FORF
(command)
creature
(agent)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_FORF
HAIR
(command)
ruffleness
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_HAIR
HEDX
(float)
index
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_HEDX
HEDY
(float)
index
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_HEDY
HHLD
(agent)
Returns Creatures that are holding hands with pointer, or NULL if none.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_HHLD
IITT
(agent)
Return the agent which the target creature is currently focused on. Note that you should probably use _IT_ in creature scripts.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_IITT
INS#
(integer)
Return the number of unprocessed instincts left in the instinct queue for the target creature.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_INS
LIKE
(command)
creature
(agent)
Causes the target Creature to state an opinion about the specified Creature.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_LIKE
LIMB
(string)
bodypart
(integer)
genus
(integer)
gender
(integer)
age
(integer)
variant
(integer)
Returns the filename for the specified part of a Creature, substituting as necessary.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_LIMB
LOCI
(command)
type
(integer)
organ
(integer)
tissue
(integer)
id
(integer)
value
(float)
Set the value of the specified loci of the target creature. 'type' is 0 for receptor loci and 1 for emitter loci.
See genetics documentation for details of the parameters.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_LOCI
LOCI
(float)
type
(integer)
organ
(integer)
tissue
(integer)
id
(integer)
Return the current value of the specified loci of the target creature. 'type' is 0 for receptor loci and 1 for emitter loci.
See genetics documentation for details of thei parameters.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_LOCI
LTCY
(command)
action
(integer)
min
(integer)
max
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_LTCY
- Pragmas:
- variants => c1 c2 cv c3
MATE
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_MATE
- Pragmas:
- variants => c2 cv c3
MIND
(command)
enable
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_MIND
MIND
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_MIND
MOTR
(command)
enable
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_MOTR
MOTR
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_MOTR
MTHX
(float)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_MTHX
MTHY
(float)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_MTHY
MVFT
(command)
x
(float)
y
(float)
Move the target Creature's foot (along with the rest of the Creature, obviously) to the given
coordinates. You should use this rather than MVTO for Creatures.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_MVFT
NEW: CRAG
(command)
family
(integer)
gene_agent
(agent)
gene_slot
(integer)
sex
(integer)
variant
(integer)
sprite_file
(string)
image_count
(integer)
first_image
(integer)
plane
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_NEW_CRAG
- Pragmas:
- variants => c3 sm
NEW: CREA
(command)
family
(integer)
gene_agent
(agent)
gene_slot
(integer)
sex
(integer)
variant
(integer)
Creates a new creature using the specified agent/slot for genetic data. sex is 0 for random, 1 for male or 2 for female.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_NEW_CREA
NEWC
(command)
family
(integer)
gene_agent
(agent)
gene_slot
(integer)
sex
(integer)
variant
(integer)
Creates a new creature over the space of a few ticks, using the specified agent/slot for genetic data. sex is 0 for random, 1 for male or 2 for female.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_NEWC
NOHH
(command)
Tells the target Creature to stop holding hands with the pointer.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_NOHH
NORN
(command)
creature
(agent)
Sets the target Creature to the given one.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_NORN
NORN
(agent)
Returns the target Creature.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_NORN
- Pragmas:
- variants => cv c3
NUDE
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_NUDE
ORDR SHOU
(command)
speech
(string)
Makes the target Creature speak the specified speech to all creatures in hearing range.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_ORDR_SHOU
ORDR SIGN
(command)
speech
(string)
Makes the target Creature speak the specified speech to all creatures that can see it.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_ORDR_SIGN
ORDR TACT
(command)
speech
(string)
Makes the target Creature speak the specified speech to all creatures that are touching it.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_ORDR_TACT
ORDR WRIT
(command)
creature
(agent)
speech
(string)
Makes the target Creature speak the specified speech to the specified creature.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_ORDR_WRIT
ORGF
(float)
organ
(integer)
value
(integer)
Return some data about the specified organ (numbered starting at zero) of the target creature.
value should be one of the following types of data:
0: clock rate
1: short term life force as a proportion of the initial life force
2: repair rate
3: injury to apply
4: initial life force
5: short term life force
6: long term life force
7: damage rate
8: energy cost
9: atp damage coefficient
Returns -1 if the specified organ or value is invalid.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_ORGF
ORGI
(integer)
organ
(integer)
value
(integer)
Returns a count of receptors (value 0), emitters (value 1) or reactions (value 2) in the specified organ (numbered starting at zero) of the target creature.
Returns -1 if the specified organ or value is invalid.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_ORGI
ORGN
(integer)
Return the number of organs the target creature has.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_ORGN
RSET
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_RSET
SAYN
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_SAYN
- Pragmas:
- variants => c1 c2 cv c3
SEEN
(agent)
category
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_SEEN
SOUL
(command)
part
(integer)
on
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_SOUL
SOUL
(integer)
part
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_SOUL
STEP
(command)
faculty
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_STEP
STIM SHOU
(command)
stimulus
(integer)
strength
(float)
Send a stimulus of the given type to all Creatures who can hear OWNR.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_STIM_SHOU
STIM SIGN
(command)
stimulus
(integer)
strength
(float)
Sends a stimulus of the given type to all Creatures who can see OWNR.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_STIM_SIGN
STIM TACT
(command)
stimulus
(integer)
strength
(float)
Sends a stimulus of the given type to all Creatures who are touching OWNR.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_STIM_TACT
STIM WRIT
(command)
creature
(agent)
stimulus
(integer)
strength
(float)
Sends a stimulus of the given type to specific Creature.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_STIM_WRIT
STRE
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_STRE
SWAP
(command)
variant
(integer)
part
(integer)
commit
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_SWAP
SWAY SHOU
(command)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
Adjusts these four drives in all Creatures who can hear OWNR.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_SWAY_SHOU
SWAY SIGN
(command)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
Adjusts these four drives in all Creatures who can see OWNR.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_SWAY_SIGN
SWAY TACT
(command)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
Adjusts these four drives in all Creatures who are touching OWNR.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_SWAY_TACT
SWAY WRIT
(command)
creature
(agent)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
drive
(integer)
adjust
(float)
Adjusts these four drives in the specified creature.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_SWAY_WRIT
TAGE
(integer)
Returns age of target creature, in ticks. Only counts ticks since it was BORN.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_TAGE
TNTC
(command)
tintindex
(integer)
part
(integer)
commit
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_TNTC
TNTO
(command)
tintindex
(integer)
part
(integer)
set
(integer)
layer
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_TNTO
TOUC
(command)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_TOUC
- Pragmas:
- variants => c1 c2 cv c3
UFTX
(float)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_UFTX
UFTY
(float)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_UFTY
UNCS
(command)
unconscious
(integer)
Makes the target Creature conscious if 0, or unconscious if 1.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_UNCS
UNCS
(integer)
Returns 1 if the target Creature is unconscious, or 0 otherwise.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_UNCS
- Pragmas:
- variants => c2 cv c3
URGE SHOU
(command)
noun_stim
(float)
verb_id
(integer)
verb_stim
(float)
Urges all Creatures who can hear OWNR to perform the given action on OWNR.
The two stimuli parameters can range from -1.0 (discourage) to 1.0 (encourage).
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_URGE_SHOU
URGE SIGN
(command)
noun_stim
(float)
verb_id
(integer)
verb_stim
(float)
Urges all Creatures who can see OWNR to perform the given action on OWNR.
The two stimuli parameters can range from -1.0 (discourage) to 1.0 (encourage).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_URGE_SIGN
URGE TACT
(command)
noun_stim
(float)
verb_id
(integer)
verb_stim
(float)
Urges all Creatures who are touching OWNR to perform the given action on OWNR.
The two stimuli parameters can range from -1.0 (discourage) to 1.0 (encourage).
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_URGE_TACT
URGE WRIT
(command)
creature
(agent)
noun_id
(integer)
noun_stim
(float)
verb_id
(integer)
verb_stim
(float)
Urges the specified Creature to perform the specified action (verb) on the specified object type
(noun). Provide a stim greater than 1 to force, and an id of -1 and a stim greater than 1 to unforce.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_URGE_WRIT
VOCB
(command)
Makes the target Creature learn all vocabulary words immediately.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_VOCB
WALK
(command)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_WALK
- Pragmas:
- variants => c1 c2 cv c3
WEAR
(command)
part
(integer)
set
(integer)
layer
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_WEAR
WEAR
(integer)
part
(integer)
layer
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_WEAR
ZOMB
(command)
zombie
(integer)
Turns zombification of the target Creature on and off. Set to 1 to disconnect the brain and
motor of the target Creature, and 0 to undo.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::c_ZOMB
ZOMB
(integer)
Returns 1 if target Creature is zombified, or 0 if otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_ZOMB
_IT_
(agent)
Returns the agent that the OWNR creature was focused on when the
current script began running.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_creatures.cpp
- Implementation functions (may be wrong): caosVM::v_IT
- Pragmas:
- implementation => caosVM::v_IT
- variants => c1 c2 cv c3
Debugging
AGNT
(agent)
id
(integer)
Returns the agent with the given UNID, or NULL if agent has been deleted.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::v_AGNT
DBG: ASRF
(command)
condition
(condition)
(openc2e-only)
Blows up unless the given condition is false.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_ASRF
- Pragmas:
- variants => all
DBG: ASRT
(command)
condition
(condition)
Blows up unless the given condition is true.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_ASRT
- Pragmas:
- parser => new AssertParser()
- variants => all
DBG: CPRO
(command)
Clears the current agent profiling information.
This command is not yet implemented.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_CPRO
DBG: DISA
(command)
family
(integer)
genus
(integer)
species
(integer)
event
(integer)
Dumps the "bytecode" of the indicated script to the current output channel.
Note that this isn't really bytecode yet (though that's a possible future
improvement).
If the script is not found no output will be generated.
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_DISA
- Pragmas:
- variants => all
DBG: DUMP
(command)
Dumps the current script's bytecode to stderr.
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_DUMP
- Pragmas:
- variants => all
DBG: FAIL
(command)
(openc2e-only)
Blows up.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_FAIL
- Pragmas:
- variants => all
DBG: IDNT
(string)
agent
(agent)
(openc2e-only)
Return a nicely-formatted string identifying the classifier of the agent,
using the catalogue to find the name if possible.
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::v_DBG_IDNT
- Pragmas:
- variants => all
DBG: MALLOC
(command)
Dumps some random memory stats to stderr.
This command is not yet implemented.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_MALLOC
DBG: OUTS
(command)
val
(string)
Outputs a string to the debug log.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_OUTS
- Pragmas:
- variants => all
DBG: OUTV
(command)
val
(decimal)
Outputs a decimal value to the debug log.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_OUTV
- Pragmas:
- variants => all
DBG: PROF
(command)
Dumps the current agent profiling information to the output stream, in CSV format.
This command is not yet implemented.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_PROF
DBG: SIZO
(string)
Returns a human-readable profile of the sizes and allocation counts of
various internal data structures
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::v_DBG_SIZO
- Pragmas:
- variants => all
DBG: STOK
(string)
bareword
(bareword)
Returns the bare token in 'bareword' as a string.
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::v_DBG_STOK
- Pragmas:
- variants => all
DBG: TRACE
(command)
level
(integer)
Sets opcode trace level. Zero disables.
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_TRACE
- Pragmas:
- variants => all
DBG: TSLC
(command)
timeslice
(integer)
Sets the currently executing script's remaining timeslice value. This command
affects only the current timeslice; future slices use the normal amount for
the dialect in question.
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_TSLC
- Pragmas:
- variants => all
DBG: TSLC
(integer)
Returns the number of ticks left in the current script's remaining timeslice.
This command works properly.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::v_DBG_TSLC
- Pragmas:
- variants => all
MANN
(command)
cmd
(string)
Looks up documentation on the given command and spits it on the current output stream.
This command is not yet implemented.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::c_MANN
UNID
(integer)
Returns the unique ID of the target agent.
This is currently no good for persisting.
XXX: when serialization support works, this might well become good for
persisting :)
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_debug.cpp
- Implementation functions (may be wrong): caosVM::v_UNID
- Pragmas:
- variants => c3 cv sm
Files
FILE GLOB
(command)
directory
(integer)
filespec
(string)
Globs the given journal directory (pass 0 for the world directory, or 1 for the main directory) for the
given filespec (you can use wildcards, and descend into subdirectories using '..').
The result is placed on the input stream for reading with standard input commands (eg, INNI and INNL);
this consists of the number of results on the first line, and then the full filename paths to the matched
files on the remaining lines.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_FILE_GLOB
FILE ICLO
(command)
Disconnects everything from the input stream.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_FILE_ICLO
FILE IOPE
(command)
directory
(integer)
filename
(string)
Puts the given filename in the given directory (pass 1 for the world directory, or 0 for the main
directory) on the current VM's input stream, for use by INOK, INNL, INNI and INNF.
If a file is already open, it will be closed first.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_FILE_IOPE
FILE JDEL
(command)
directory
(integer)
filename
(string)
Removes the given file in the given directory (pass 1 for the world directory, or 0 for the main
directory) immediately.
This command is not yet implemented.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_FILE_JDEL
FILE OCLO
(command)
Disconnects everything from the output stream.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_FILE_OCLO
FILE OFLU
(command)
Flushes the current output stream; if this is a file, all data in the buffer will be written to it.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_FILE_OFLU
FILE OOPE
(command)
directory
(integer)
filename
(string)
append
(integer)
Puts the given filename in the given directory (pass 1 for the world directory, or 0 for the main
directory) on the current VM's output stream.
If a file is already open, it will be closed first.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_FILE_OOPE
FVWM
(string)
name
(string)
Returns an safe (not-in-use) filename for naming worlds and other saved files.
This command is not yet implemented.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::v_FVWM
INNF
(float)
Fetches a float from the current input stream, or 0.0 if there is no data.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::v_INNF
INNI
(integer)
Fetches an integer from the current input stream, or 0 if there is no data.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::v_INNI
INNL
(string)
Fetches a string of text from the input stream.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::v_INNL
INOK
(integer)
Determines whether the current input stream is usable (0 or 1).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::v_INOK
WEBB
(command)
url
(string)
Launches the specified URL, prepended with 'http://' (so you'd only specify, for example, 'example.com/foo.html'), in the user's browser.
This command is not yet implemented.
- Implemented in: caosVM_files.cpp
- Implementation functions (may be wrong): caosVM::c_WEBB
Flow control
CALL
(command)
script_no
(integer)
p1
(anything)
p2
(anything)
Calls script_no on OWNR, then waits for it to return. The invoked script
will inherit the caller's INST setting, but any changes it makes to it will
be reversed once it returns - so eg if you call a script when in INST mode,
it calls OVER and returns, you'll still be in INST.
Script variables (VAxx) will not be preserved - you'll have to use OVxx
for any parameters.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_CALL
- Pragmas:
- variants => c2 cv c3 sm
CAOS
(string)
inline
(integer)
state_trans
(integer)
p1
(anything)
p2
(anything)
commands
(string)
throws
(integer)
catches
(integer)
report
(variable)
Runs commands as caos code immediately. If inline, copy _IT_ VAxx TARG OWNR, etc. If state_trans, copy FROM and
OWNR. If an error occurs, it catches it and stuffs it in the report. (XXX: non-conforming)
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::v_CAOS
DOIF
(command)
condition
(condition)
Part of a DOIF/ELIF/ELSE/ENDI block. Jumps to the next part of the block if condition is false,
otherwise continues executing the script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_DOIF
- Pragmas:
- stackdelta => 0
- variants => c1 c2 cv c3 sm
ECON
(command)
agent
(agent)
Loops through all the agents in the connective system containing the given agent.
This command is not yet implemented.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_ECON
- Pragmas:
- stackdelta => any
ELIF
(command)
condition
(condition)
Part of a DOIF/ELIF/ELSE/ENDI block. If none of the previous DOIF/ELIF conditions have been true, and condition evaluates to true, then the code in the ELIF block is executed.
If found outside a DOIF block, it is equivalent to a DOIF. If you take advantage of this behavior, fuzzie is of the opinion that you should be shot.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_ELIF
- Pragmas:
- stackdelta => 0
- variants => all
ELSE
(command)
Part of a DOIF/ELIF/ELSE/ENDI block. If ELSE is present, it is jumped to when none of the previous DOIF/ELIF conditions are true.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_ELSE
- Pragmas:
- variants => c1 c2 cv c3 sm
ENDI
(command)
The end of a DOIF/ELIF/ELSE/ENDI block.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_ENDI
- Pragmas:
- variants => c1 c2 cv c3 sm
ENUM
(command)
family
(integer)
genus
(integer)
species
(integer)
Loops through all agents with the given classifier. 0 on any field is a
wildcard. The loop body is terminated by a NEXT.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_ENUM
- Pragmas:
- stackdelta => any
- variants => c1 c2 cv c3 sm
EPAS
(command)
family
(integer)
genus
(integer)
species
(integer)
Similar to ENUM, but iterates through the OWNR vehicle's passengers.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_EPAS
- Pragmas:
- stackdelta => any
ESEE
(command)
family
(integer)
genus
(integer)
species
(integer)
Simular to ENUM, but iterates through agents visible to OWNR, or visible to TARG in an install script.
An agent can be seen if it is within the range set by RNGE, and is visible (this includes the PERM value
of walls that lie between them, and, if the agent is a Creature, it not having the 'invisible' attribute).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_ESEE
- Pragmas:
- stackdelta => any
- variants => c2 cv c3 sm
ETCH
(command)
family
(integer)
genus
(integer)
species
(integer)
Similar to ENUM, but iterates through the agents OWNR is touching, or TARG is touching in an install script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_ETCH
- Pragmas:
- stackdelta => any
- variants => c2 cv c3 sm
EVER
(command)
Jumps back to the matching LOOP, no matter what.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_EVER
- Pragmas:
- variants => c1 c2 cv c3 sm
GSUB
(command)
label
(label)
Jumps to a subroutine defined by SUBR with label (label).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_GSUB
- Pragmas:
- stackdelta => 0
- variants => c1 c2 cv c3 sm
LOOP
(command)
The start of a LOOP...EVER or LOOP...UNTL loop.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_LOOP
- Pragmas:
- variants => c1 c2 cv c3 sm
NEXT
(command)
The end of an ENUM...NEXT loop.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_NEXT
- Pragmas:
- variants => all
REPE
(command)
The end of a REPS...REPE loop.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_REPE
- Pragmas:
- variants => c1 c2 cv c3 sm
REPS
(command)
reps
(integer)
The start of a REPS...REPE loop. The body of the loop will be executed (reps) times.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_REPS
- Pragmas:
- stackdelta => 0
- variants => c1 c2 cv c3 sm
RETN
(command)
Returns from a subroutine called with GSUB.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_RETN
- Pragmas:
- stackdelta => any
- variants => c1 c2 cv c3 sm
SUBR
(command)
label
(label)
Defines the start of a subroute to be called with GSUB, with label (label).
If the command is encountered during execution, it acts like a STOP.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_SUBR
- Pragmas:
- stackdelta => 0
- variants => c1 c2 cv c3 sm
UNTL
(command)
condition
(condition)
Jumps back to the matching LOOP unless the condition evaluates to true.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_flow.cpp
- Implementation functions (may be wrong): caosVM::c_UNTL
- Pragmas:
- stackdelta => 0
- variants => c1 c2 cv c3 sm
Genetics
GENE CLON
(command)
dest_agent
(agent)
dest_slot
(integer)
src_agent
(agent)
src_slot
(integer)
Clone a genome. A new moniker is created.
This command is not yet implemented.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::c_GENE_CLON
GENE CROS
(command)
dest_agent
(agent)
dest_slot
(integer)
mum_agent
(agent)
mum_slot
(integer)
dad_agent
(agent)
dad_slot
(integer)
mum_mutation_chance
(integer)
mum_mutation_degree
(integer)
dad_mutation_chance
(integer)
dad_mutation_degree
(integer)
Cross two genomes, creating a new one.
This command is not yet implemented.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::c_GENE_CROS
GENE KILL
(command)
agent
(agent)
slot
(integer)
Delete a genome from a slot.
This command is not yet implemented.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::c_GENE_KILL
GENE LOAD
(command)
agent
(agent)
slot
(integer)
genefile
(string)
Load a genome file into a slot. You can use * and ? wildcards in the filename.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::c_GENE_LOAD
GENE MOVE
(command)
dest_agent
(agent)
dest_slot
(integer)
src_agent
(agent)
src_slot
(integer)
Move a genome to another slot.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::c_GENE_MOVE
GTOS
(string)
slot
(integer)
Return the moniker stored in the given gene slot of the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::v_GTOS
MTOA
(agent)
moniker
(string)
Return the agent which has the given moniker stored in a gene slot, or NULL if none.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::v_MTOA
MTOC
(agent)
moniker
(string)
Return the live creature with the given moniker, or NULL if none.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_genetics.cpp
- Implementation functions (may be wrong): caosVM::v_MTOC
History
HIST CAGE
(integer)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_CAGE
HIST COUN
(integer)
moniker
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_COUN
HIST CROS
(integer)
moniker
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_CROS
HIST EVNT
(command)
moniker
(string)
type
(integer)
relatedmoniker1
(string)
relatedmoniker2
(string)
Fire a life event of the specified type with the specified moniker.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::c_HIST_EVNT
HIST FIND
(integer)
moniker
(string)
event
(integer)
from
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_FIND
HIST FINR
(integer)
moniker
(string)
event
(integer)
from
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_FINR
HIST FOTO
(command)
moniker
(string)
event
(integer)
photo
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::c_HIST_FOTO
HIST FOTO
(string)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_FOTO
HIST GEND
(integer)
moniker
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_GEND
HIST GNUS
(integer)
moniker
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_GNUS
HIST MON1
(string)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_MON1
HIST MON2
(string)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_MON2
HIST MUTE
(integer)
moniker
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_MUTE
HIST NAME
(command)
moniker
(string)
name
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::c_HIST_NAME
HIST NAME
(string)
moniker
(string)
Return the name of the creature with the given moniker.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_NAME
HIST NETU
(string)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_NETU
HIST NEXT
(string)
moniker
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_NEXT
HIST PREV
(string)
moniker
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_PREV
HIST RTIM
(integer)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_RTIM
HIST TAGE
(integer)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_TAGE
HIST TYPE
(integer)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_TYPE
HIST UTXT
(command)
moniker
(string)
event
(integer)
value
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::c_HIST_UTXT
HIST UTXT
(string)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_UTXT
HIST VARI
(integer)
moniker
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_VARI
HIST WIPE
(command)
moniker
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::c_HIST_WIPE
HIST WNAM
(string)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_WNAM
HIST WTIK
(integer)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_WTIK
HIST WUID
(string)
moniker
(string)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_WUID
HIST WVET
(integer)
moniker
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_WVET
OOWW
(integer)
moniker
(string)
Return the current status of the given moniker.
0 is unknown (never existed?), 1 is in slot, 2 is NEW: CREA creature, 3 is BORN creature, 4 is exported, 5 is dead, 6 is gone (no body), 7 is unreferenced.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_history.cpp
- Implementation functions (may be wrong): caosVM::v_OOWW
Input
CLAC
(command)
message
(integer)
Sets the type of message sent to the TARG agent when clicked. If set to -1, no message
will be sent. Using this command will override and reset the value set with CLIK.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::c_CLAC
CLAC
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_CLAC
CLIK
(command)
msg1
(integer)
msg2
(integer)
msg3
(integer)
Sets three different message types that will sent to the TARG agent when clicked, on a
rotating basis. Setting any of the three types to -1 will cause it to be ignored. Using
this command will override and reset the value set by CLAC.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::c_CLIK
CLIK
(integer)
data
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_CLIK
HOTP
(integer)
Returns the PART of the agent (given by HOTS) that is currently underneath the Hand.
Transparency of the parts themselves is ignored.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_HOTP
HOTS
(agent)
Returns the agent that is currently underneath the Hand.
NB: this command is not a real c1/c2 command, backported for convenience
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_HOTS
- Pragmas:
- variants => all
IMSK
(command)
flags
(integer)
Sets the input event flags for the target agent, which tell the engine which events the
agent requires scripts to be fired for. For example, setting the "key up" flag means the
target agent has the relevant script executed every time a key is released.
Add the following values together to calculate the flags parameter: 1 for key down, 2 for key up, 4 for mouse move, 8 for mouse down, 16 for mouse up, 32 for mouse wheel movement and 64 for (translated) keypress.
TODO: link to the script details (event numbers and parameters).
This command is not yet implemented.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::c_IMSK
IMSK
(integer)
Returns the input event flags for the target agent. See the IMSK command for details.
This command is not yet implemented.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_IMSK
KEYD
(integer)
keycode
(integer)
Returns 1 if the specified key is held down, or 0 otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_KEYD
MOPX
(integer)
Returns the current X coordinate of the Hand in the world.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_MOPX
MOPY
(integer)
Returns the current Y coordinate of the Hand in the world.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_MOPY
MOUS
(command)
behaviour
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::c_MOUS
PURE
(command)
value
(integer)
Turns the normal pointing and clicking behavior of the Hand on (0) and off (1).
If set to off, CLIK and CLAC will not work, and clicking events must be handled by IMSK.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::c_PURE
PURE
(integer)
Returns whether the normal pointing and clicking behavior of the Hand is on or off.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_PURE
SCOL
(integer)
andmask
(integer)
eormask
(integer)
upspeeds
(bytestring)
downspeeds
(bytestring)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::v_SCOL
SCRL
(command)
enable
(integer)
Turns on (1) or off (0) keyboard/mouse scrolling.
This command is not yet implemented.
- Implemented in: caosVM_input.cpp
- Implementation functions (may be wrong): caosVM::c_SCRL
Map
ADDB
(command)
metaroom_id
(integer)
background
(string)
Adds a new background to an existing metaroom, to be displayed with BKGD.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_ADDB
ADDM
(integer)
x
(integer)
y
(integer)
width
(integer)
height
(integer)
background
(string)
Creates a metaroom with the given height and width, at the coordinates given. Returns the id of the new metaroom.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_ADDM
ADDR
(integer)
metaroomid
(integer)
x_left
(integer)
x_right
(integer)
y_left_ceiling
(integer)
y_right_ceiling
(integer)
y_left_floor
(integer)
y_right_floor
(integer)
Makes a new room inside the given metaroom. Rooms can have sloped floors and ceilings, but only vertical walls.
The id of the new room is returned.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_ADDR
ALTR
(command)
roomid
(integer)
caindex
(integer)
delta
(float)
Modifies the level of the given CA in the room specified.
If 'roomid' is -1, the room containing the TARG agent will be used.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_ALTR
BKDS
(string)
metaroomid
(integer)
Determines all of the background names in use by the given metaroom, and returns them in a comma-seperated string.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_BKDS
BRMI
(command)
metaroom_base
(integer)
room_base
(integer)
Sets the base ID numbers for new metarooms and rooms to the given values.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_BRMI
CACL
(command)
family
(integer)
genus
(integer)
species
(integer)
caindex
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_CACL
DELM
(command)
metaroom_id
(integer)
Removes the given metaroom from the map.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_DELM
DELR
(command)
room_id
(integer)
Removes the given room from the map.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_DELR
- Pragmas:
- variants => c2 cv c3 sm
DMAP
(command)
mapon
(integer)
Turns the debug map on and off, which shows the edges of rooms and vehicles.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_DMAP
DOCA
(command)
times
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_DOCA
DOOR
(command)
room1
(integer)
room2
(integer)
perm
(integer)
Sets how permeable the door between the two given rooms will be. (See PERM).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_DOOR
DOOR
(integer)
room1
(integer)
room2
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_DOOR
DOWN
(integer)
Returns the down constant (3).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_DOWN
EMIT
(command)
caindex
(integer)
amount
(float)
Makes the TARG agent continually emit the specified amount of the specified CA into the room.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_EMIT
ERID
(string)
metaroom_id
(integer)
Returns a space-seperated list of all room id's contained by the given metaroom.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_ERID
GMAP
(integer)
x
(float)
y
(float)
Returns the id of the metaroom at the coordinates (x, y), or -1 if nothing's there.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_GMAP
GRAP
(integer)
x
(float)
y
(float)
Returns the id of the room at the coordinates (x, y), or -1 if nothing's there.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_GRAP
GRID
(integer)
agent
(agent)
direction
(integer)
Returns the nearest adjacent room to the specified agent in the given direction (one of the direction constants), or
-1 otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_GRID
HIRP
(integer)
roomid
(integer)
caindex
(integer)
direction
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_HIRP
LEFT
(integer)
Returns the left constant (0).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_LEFT
LINK
(command)
room1
(integer)
room2
(integer)
perm
(integer)
Defines the permeability of the link between the two given rooms. This is used for CA diffusion.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_LINK
LINK
(integer)
room1
(integer)
room2
(integer)
Returns the permeability of the link between the given two rooms, or 0 if no link exists.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_LINK
LORP
(integer)
roomid
(integer)
caindex
(integer)
direction
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_LORP
MAPD
(command)
width
(integer)
height
(integer)
Sets the world map dimensions, inside which metarooms are placed.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_MAPD
MAPH
(integer)
Returns the height of the world map.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_MAPH
MAPK
(command)
Resets and empties the world map.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_MAPK
MAPW
(integer)
Returns the width of the world map.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_MAPW
MLOC
(string)
metaroomid
(integer)
Returns a string containing the location of the given metaroom in the following format: x y width height
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_MLOC
PERM
(command)
perm
(integer)
Sets the TARG agent's permiability. Valid settings are between 1 and 100.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_PERM
PERM
(integer)
Returns the TARG agent's permiability.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_PERM
PROP
(command)
roomid
(integer)
caindex
(integer)
cavalue
(float)
Defines the level of the given CA in the given room. Valid settings are between 0 and 1; if higher, it will be
reset to 1.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_PROP
PROP
(float)
roomid
(integer)
caindex
(integer)
Returns the level of the given CA in the given room, or 0 if a roomid of -1 is passed.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_PROP
RATE
(command)
roomtype
(integer)
caindex
(integer)
gain
(float)
loss
(float)
diffusion
(float)
Defines the rates of the given CA in the given room. 'gain' defines how easily the CA will be absorbed from
agents inside the room, 'loss' defines how much will be lost into the air, and 'diffusion' defines how easily it
will spread to other rooms.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_RATE
RGHT
(integer)
Returns the right constant (1).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_RGHT
RLOC
(string)
roomid
(integer)
Returns a string containing the location of the given room in the following format: x_left, x_right, y_left_ceiling,
y_right_ceiling, y_left_floor, y_right_floor.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_RLOC
ROOM
(integer)
agent
(agent)
Returns the room that contains the given agent (jugding by its center).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_ROOM
RTYP
(command)
roomid
(integer)
roomtype
(integer)
Defines the 'type' of the given room. The types vary with different games.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::c_RTYP
RTYP
(integer)
roomid
(integer)
Returns the 'type' of the given room, or -1 if 'roomid' is invalid.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_RTYP
TORX
(float)
roomid
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_TORX
TORY
(float)
roomid
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_TORY
WALL
(integer)
Returns the direction of the last wall the TARG agent collided with.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_WALL
- Pragmas:
- variants => c2 cv c3 sm
WRAP
(variable)
metaroom_id
(integer)
The world-wrapping flag for the specified metaroom. 1 to enable wrapping, 0 to disable.
This command is partially implemented but missing large amounts of functionality, or is nonconformant in some vital way.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_WRAP
- Pragmas:
- variants => all
_UP_
(integer)
Returns the up constant (2).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_map.cpp
- Implementation functions (may be wrong): caosVM::v_UP
- Pragmas:
- implementation => caosVM::v_UP
Motion
ACCG
(command)
accel
(float)
Sets the TARG agent's free-fall acceleration, in pixels/tick squared.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_ACCG
ACCG
(float)
Returns the TARG agent's free-fall acceleration, in pixels/tick squared.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_ACCG
ADMP
(command)
angulardamping
(float)
Set the angular damping (0.0 to 1.0, fraction to damp per tick) for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_ADMP
ADMP
(float)
Returns the angular damping (0.0 to 1.0, fraction to damp per tick) for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_ADMP
AERO
(command)
aero
(float)
Sets the aerodynamics of the TARG agent to the given float value.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_AERO
AERO
(float)
Returns the aerodynamics of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_AERO
ANGL
(float)
x
(float)
y
(float)
Calculates the angle (from 0.0 to 1.0) between the target agent and the specified coordinates.
TODO: This seems not to work in original c2e unless there's been an angular calculation on the target agent. Needs more investigation.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_ANGL
AVEL
(command)
angularvelocity
(float)
Set the angular velocity for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_AVEL
AVEL
(float)
Returns the angular velocity for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_AVEL
ELAS
(command)
elas
(integer)
Sets the elasticity (in other words, bounciness) of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_ELAS
ELAS
(integer)
Returns the elasticity of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_ELAS
FALL
(integer)
Returns 1 if the TARG agent is moving due to gravity, or 0 if otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_FALL
FDMP
(command)
forwarddamping
(float)
Set the forward damping (0.0 to 1.0, fraction to damp per tick) for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_FDMP
FDMP
(float)
Returns the forward damping (0.0 to 1.0, fraction to damp per tick) for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_FDMP
FLTO
(command)
x
(float)
y
(float)
Sets the TARG agent to float its top-left corner (x, y) away from the top-left corner of the FREL agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_FLTO
FLTX
(float)
Returns the x value of the TARG agent's floating vector.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_FLTX
FLTY
(float)
Returns the y value of the TARG agent's floating vector.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_FLTY
FREL
(command)
agent
(agent)
Sets the agent the TARG agent floats relative to. You must set the 'floatable' attribute for this to work.
The default is NULL, which means the target agent floats relative to the main camera.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_FREL
FRIC
(command)
friction
(integer)
Sets the TARG agent's coefficient of friction, or the percentage of motion that will be lost as it slides on a
surface.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_FRIC
FRIC
(float)
Returns the TARG agent's coefficient of friction as a percentage.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_FRIC
FVEL
(command)
forwardvelocity
(float)
Set the forward velocity for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_FVEL
FVEL
(float)
Returns the forward velocity for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_FVEL
MOVS
(variable)
Returns an integer representing the motion status of the TARG agent. 0 is autonomous, 1 is moving by mouse, 2 is
floating, 3 is inside a vehicle, and 4 is being carried.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_MOVS
- Pragmas:
- variants => c1 c2 cv c3 sm
MVBY
(command)
x
(float)
y
(float)
Changes the TARG agent's position by the given relative distances.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_MVBY
- Pragmas:
- variants => c1 c2 cv c3 sm
MVSF
(command)
x
(float)
y
(float)
Move the target agent to an area inside the room system at about (x, y).
This allows 'safe' moves.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_MVSF
MVTO
(command)
x
(float)
y
(float)
Places the TARG agent at the given x/y position in the world (using the upper left hand corner of the agent).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_MVTO
- Pragmas:
- variants => c1 c2 cv c3 sm
OBST
(float)
direction
(integer)
Returns the distance from the TARG agent to the nearest wall that it might collide with in the given direction.
(except right now it just gives the direction to the nearest wall at world edge - fuzzie)
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_OBST
- Pragmas:
- variants => cv c3 sm
RELX
(float)
first
(agent)
second
(agent)
Returns the relative horizontal distance between the centers of the two given agents.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_RELX
RELY
(float)
first
(agent)
second
(agent)
Returns the relative vertical distance between the centers of the two given agents.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_RELY
ROTN
(command)
sprites
(integer)
rotations
(integer)
Enable automatic sprite adjustments for the current agent (by changing the BASE of part 0), based on the current rotation (SPIN).
'sprites' specifies the number of sprites for each rotation.
'rotations' specifies the number of different angles provided in the sprite file. They should begin facing north and continue clockwise.
The total number of sprites used will be sprites * rotations.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_ROTN
SDMP
(command)
sidewaysdamping
(float)
Set the sideways damping (0.0 to 1.0, fraction to damp per tick) for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_SDMP
SDMP
(float)
Returns the sideways damping (0.0 to 1.0, fraction to damp per tick) for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_SDMP
SPIN
(command)
angle
(float)
Set the angle (from 0.0 to 1.0) the target agent is facing.
TODO: This seems to not affect velocity in original c2e, sometimes. Needs more investigation.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_SPIN
SPIN
(float)
Returns the angle (from 0.0 to 1.0) the target agent is facing.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_SPIN
SVEL
(command)
sidewaysvelocity
(float)
Set the sideways velocity for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_SVEL
SVEL
(float)
Returns the sideways velocity for the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_SVEL
TMVB
(integer)
deltax
(float)
deltay
(float)
Returns 1 if the TARG agent could move by (deltax, deltay) and still be in room system, or 0 otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_TMVB
TMVF
(integer)
x
(float)
y
(float)
Returns 1 if the TARG Creature could move foot to (x, y) and still be in room system, or 0 if otherwise.
This command is not yet implemented.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_TMVF
TMVT
(integer)
x
(float)
y
(float)
Returns 1 if the TARG agent could move to (x, y) and still be in room system, or 0 if otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_TMVT
VELO
(command)
xvel
(float)
yvel
(float)
Sets the horizontal and vertical velocity of the TARG agent, in pixels/tick.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::c_VELO
VELX
(variable)
Returns the current horizontal velocity, in pixels/tick, of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_VELX
- Pragmas:
- variants => c2 cv c3 sm
VELY
(variable)
Returns the current vertical velocity, in pixels/tick, of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_motion.cpp
- Implementation functions (may be wrong): caosVM::v_VELY
- Pragmas:
- variants => c2 cv c3 sm
Networking
NET: ERRA
(integer)
Networking is not supported in openc2e, so always returns 0.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_ERRA
NET: EXPO
(integer)
chunk_type
(string)
dest_user
(string)
Networking is not supported in openc2e, so always returns 0.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_EXPO
NET: FROM
(string)
resource_name
(string)
Networking is not supported in openc2e, so returns an empty string.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_FROM
NET: HEAD
(command)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_HEAD
NET: HEAR
(command)
channel
(string)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_HEAR
NET: HOST
(string)
Networking is not supported in openc2e, so returns an empty string.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_HOST
NET: LINE
(command)
connect
(integer)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_LINE
NET: LINE
(integer)
Networking is not supported in openc2e, so always returns 1.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_LINE
NET: PASS
(command)
nick_name
(string)
password
(string)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_PASS
NET: PASS
(string)
Networking is not supported in openc2e, so always returns "nobody".
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_PASS
NET: RAWE
(integer)
Networking is not supported in openc2e, so returns zero.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_RAWE
NET: RUSO
(command)
result
(variable)
Networking is not supported in openc2e, so sets result to an empty string.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_RUSO
NET: STAT
(command)
timeonline
(variable)
usersonline
(variable)
bytesreceived
(variable)
bytessent
(variable)
Networking is not supported in openc2e, so sets everything to -1.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_STAT
NET: ULIN
(integer)
username
(string)
Networking is not supported in openc2e, so always returns 0.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_ULIN
NET: UNIK
(command)
userid
(string)
result
(variable)
Networking is not supported in openc2e, so sets result to an empty string.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_UNIK
NET: USER
(string)
Networking is not supported in openc2e, so returns an empty string.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_USER
NET: WHAT
(string)
Networking is not supported in openc2e, so return an empty string.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::v_NET_WHAT
NET: WHOD
(command)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_WHOD
NET: WHOF
(command)
user
(string)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_WHOF
NET: WHON
(command)
username
(string)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_WHON
NET: WHOZ
(command)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_WHOZ
NET: WRIT
(command)
userid
(string)
channel
(string)
messageid
(string)
param1
(anything)
param2
(anything)
Networking is not supported in openc2e, so does nothing.
This command is not yet implemented.
- Implemented in: caosVM_net.cpp
- Implementation functions (may be wrong): caosVM::c_NET_WRIT
Ports
PRT: BANG
(command)
strength
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_BANG
PRT: FRMA
(agent)
inputport
(integer)
Returns agent to which the specified input port is connected, NULL if not
connected or the port doesn't exist.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::v_PRT_FRMA
PRT: FROM
(integer)
inputport
(integer)
Returns the output port id on the source agent connected to the specified
input port. Returns a negative value if the port is not connected or if the
source agent does not exist.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::v_PRT_FROM
PRT: INEW
(command)
id
(integer)
name
(string)
desc
(string)
x
(integer)
y
(integer)
msgnum
(integer)
Creates a new input port on targ. The message msgnum will be sent to the agent
when a signal arrives through the port. _P1_ of that message will be the data
of the signal.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_INEW
PRT: ITOT
(integer)
Returns the total number of input ports.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::v_PRT_ITOT
PRT: IZAP
(command)
id
(integer)
Removes the input port with given id.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_IZAP
PRT: JOIN
(command)
source
(agent)
outputport
(integer)
dest
(agent)
inputport
(integer)
Joins the output port from source to the input port of dest.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_JOIN
PRT: KRAK
(command)
agent
(agent)
is_outport
(integer)
port
(integer)
Breaks a connection on agent. If is_outport, kill all connections connected to
the port. Else, kill the connection to the inport.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_KRAK
PRT: NAME
(string)
agent
(agent)
is_outport
(integer)
port
(integer)
Returns the name of the specified port. Returns "" if the port doesn't exist.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::v_PRT_NAME
PRT: ONEW
(command)
id
(integer)
name
(string)
desc
(string)
x
(integer)
y
(integer)
Creates a new output port on targ.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_ONEW
PRT: OTOT
(integer)
Returns the total number of output ports.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::v_PRT_OTOT
PRT: OZAP
(command)
id
(integer)
Destroys output port with given id.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_OZAP
PRT: SEND
(command)
id
(integer)
data
(anything)
Sends information over targ's output port.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ports.cpp
- Implementation functions (may be wrong): caosVM::c_PRT_SEND
Resources
NET: MAKE
(integer)
journalspot
(integer)
journalname
(integer)
user
(string)
report
(variable)
Networking is not supported in openc2e, so conveniently fails.
This command is not yet implemented.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_NET_MAKE
PRAY AGTI
(integer)
resource
(string)
tag
(string)
default
(integer)
using the specified resource, returns the integer value associated with the given tag,
or default if the tag doesn't exist
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_AGTI
PRAY AGTS
(string)
resource
(string)
tag
(string)
default
(string)
using the specified resource, returns the string value associated with the given tag,
or default if the tag doesn't exist
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_AGTS
PRAY BACK
(string)
type
(string)
last
(string)
returns the name of the resource of the specified type which is immediately previous to last
see PRAY PREV if you want to loop around
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_BACK
PRAY COUN
(integer)
type
(string)
return the number of resources of the specified type available
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_COUN
PRAY DEPS
(integer)
name
(string)
install
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_DEPS
PRAY EXPO
(integer)
type
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_EXPO
PRAY FILE
(integer)
name
(integer)
type
(integer)
install
(integer)
install a file with given resource name and type
if install is 0, the install doesn't actually happen, it's just tested
returns 0 on success, 1 on failure
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_FILE
PRAY FORE
(string)
type
(string)
last
(string)
returns the name of the resource of the specified type which is immediately after last
see PRAY NEXT if you want to loop around
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_FORE
PRAY GARB
(command)
force
(integer)
if force is 0, make the pray manager garbage-collect resources
otherwise, make the pray manager empty its cache entirely
recommended to be called after intensive PRAY usage, eg agent installation
This command is not yet implemented.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::c_PRAY_GARB
PRAY IMPO
(integer)
moniker
(string)
doit
(integer)
keepfile
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_IMPO
PRAY INJT
(integer)
name
(string)
install
(integer)
report
(variable)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_INJT
PRAY KILL
(integer)
resource
(string)
deletes from disk the file containing the given resource
returns 1 upon success, or 0 upon failure (typically no such resource)
This command is not yet implemented.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_KILL
PRAY MAKE
(integer)
journalspot
(integer)
journalname
(string)
prayspot
(integer)
name
(string)
report
(variable)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_MAKE
PRAY NEXT
(string)
type
(string)
last
(string)
returns the name of the resource of the specified type which is immediately after last
see PRAY FORE if you don't want to loop around
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_NEXT
PRAY PREV
(string)
type
(string)
last
(string)
returns the name of the resource of the specified type which is immediately previous to last
see PRAY BACK if you don't want to loop around
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_PREV
PRAY REFR
(command)
make the pray manager check for deleted/new files in the resource directory
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::c_PRAY_REFR
PRAY TEST
(integer)
name
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_resources.cpp
- Implementation functions (may be wrong): caosVM::v_PRAY_TEST
Scripts
CODE
(integer)
Returns script number running in the TARG agent. Returns -1 if target is not
running anything (or if it's running something that's not an event script).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::v_CODE
CODF
(integer)
Returns script family running in the TARG agent. Returns -1 if target is not
running anything (or if it's running something that's not an event script).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::v_CODF
CODG
(integer)
Returns script genus running in the target. Returns -1 if target is not
running anything (or if it's running something that's not an event script).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::v_CODG
CODS
(integer)
Returns script species running in the target. Returns -1 if target is not
running anything (or if it's running something that's not an event script).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::v_CODS
INST
(command)
Forces the following commands to be executed in one tick, rather than scheduling them, until SLOW or the end
of the script is encountered.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_INST
- Pragmas:
- variants => c1 c2 cv c3 sm
JECT
(command)
file
(string)
flags
(integer)
Inject a script from the current bootstrap. 'file' must be the full filename.
Flags can be 1 for remove script, 2 for event scripts and 4 for install script.
This command is not yet implemented.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_JECT
LOCK
(command)
Prevent the script from being interrupted by another until UNLK or the end of the script is encountered.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_LOCK
- Pragmas:
- variants => c2 cv c3 sm
SCRX
(command)
family
(integer)
genus
(integer)
species
(integer)
event
(integer)
Deletes the event script in question from the scriptoruium.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_SCRX
- Pragmas:
- variants => c1 c2 cv c3 sm
SLOW
(command)
Reverses the effects of INST.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_SLOW
- Pragmas:
- variants => c2 cv c3 sm
SORQ
(integer)
family
(integer)
genus
(integer)
species
(integer)
event
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::v_SORQ
STOP
(command)
Aborts the script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_STOP
- Pragmas:
- stackdelta => any
- variants => c1 c2 cv c3 sm
UNLK
(command)
Reverses the effects of LOCK.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_UNLK
- Pragmas:
- variants => c2 cv c3 sm
WAIT
(command)
ticks
(integer)
Stops the script from running for the given number of ticks.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_scripts.cpp
- Implementation functions (may be wrong): caosVM::c_WAIT
- Pragmas:
- variants => c1 c2 cv c3 sm
Sound
DBG: SBGM
(command)
Stops the BGM source. This probably doesn't do what you want it to do.
Don't touch.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_SBGM
DBG: SINE
(command)
rate
(integer)
stereo
(integer)
track
(integer)
amplitude
(integer)
Plays a sine wave coming from TARG
track = 0 to fix the source at TARG's current location; track = 1 to follow
view, track = 2 to inject it into the BGM source
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_DBG_SINE
FADE
(command)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_FADE
- Pragmas:
- variants => c1 c2 cv c3 sm
MIDI
(command)
midifile
(string)
Plays the MIDI file specified, or stops playing if passed an empty string.
This command is not yet implemented.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_MIDI
MMSC
(command)
x
(integer)
y
(integer)
track_name
(string)
Set the music track to be played in the metaroom containing the given coordinates.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_MMSC
MMSC
(string)
x
(integer)
y
(integer)
Returns the music track to be played in the metaroom containing the given coordinates.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::v_MMSC
MUTE
(integer)
andmask
(integer)
eormask
(integer)
This returns/sets information about which types of in-game audio are muted.
Set andmask for the information you want returned, and eormask for the information you want changed.
1 is for normal sound, and 2 is for music (so 3 is for both combined).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::v_MUTE
RMSC
(command)
x
(integer)
y
(integer)
track_name
(string)
Set the music track to be played in the room containing the given coordinates.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_RMSC
RMSC
(string)
x
(integer)
y
(integer)
Returns the music track to be played in the room containing the given coordinates.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::v_RMSC
SEZZ
(command)
text
(string)
Tells the target agent to speak the specified text.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_SEZZ
SNDC
(command)
filename
(string)
Start playing a controlled sound with the target agent, which will follow the agent as it moves.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_SNDC
SNDE
(command)
filename
(string)
Play an uncontrolled sound at the target agent's current position.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_SNDE
SNDL
(command)
filename
(string)
Start playing a looping controlled sound with the target agent, which will follow the agent as it moves.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_SNDL
STPC
(command)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_STPC
- Pragmas:
- variants => c1 c2 cv c3 sm
STRK
(command)
latency
(integer)
track
(string)
Play the specified music track. It will play for at least latency seconds.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_STRK
VOIC
(command)
genus
(integer)
gender
(integer)
age
(integer)
Set the the voice of the target agent to specified creature voice, choosing the nearest match.
This command is not yet implemented.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_VOIC
VOIS
(command)
voice
(string)
Set the voice of the target agent to the specified voice (a catalogue tag).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_VOIS
VOLM
(command)
type
(integer)
volume
(integer)
Changes the volume of the specified type of audio; 0 for sound effects, 1 for midi or 2 for dynamic music.
Volume is from -10000 (silent) to 0 (maximum).
This command is not yet implemented.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::c_VOLM
VOLM
(integer)
type
(integer)
Return the volumne of the specified type of audio; 0 for sound effects, 1 for midi or 2 for dynamic music.
Volume is from -10000 (silent) to 0 (maximum).
This command is not yet implemented.
- Implemented in: caosVM_sounds.cpp
- Implementation functions (may be wrong): caosVM::v_VOLM
Time
BUZZ
(command)
interval
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::c_BUZZ
BUZZ
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_BUZZ
DATE
(integer)
Returns the day in the season of the current game world, starting at 0.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_DATE
DAYT
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_DAYT
ETIK
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_ETIK
HIST DATE
(integer)
tick
(integer)
Returns the day in the season of the current game world at the specified world tick, starting at 0. See DATE.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_DATE
HIST SEAN
(integer)
tick
(integer)
Returns the current game world season at the specified world tick. 0 is spring, 1 is summer, 2 is autumn and 3 is winter. See SEAN.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_SEAN
HIST TIME
(integer)
tick
(integer)
Returns the time of day in the current game world at the specified world tick. 0 is dawn, 1 is morning, 2 is afternoon, 3 is evening and 4 is night. See TIME.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_TIME
HIST YEAR
(integer)
tick
(integer)
Returns the number of game years elapsed at the specified world tick. See YEAR.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_HIST_YEAR
MONT
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_MONT
MSEC
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_MSEC
PACE
(float)
return speed factor of last ten ticks.
< 1.0 = engine is ticking faster than BUZZ rating. > 1.0 = engine is ticking slower.
You might want to use this to reduce the amount of agents created or the amount of processing done if the speed factor is above 1.0.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_PACE
PAUS
(command)
paused
(integer)
If paused is 0, unpause target agent, otherwise (1) pause it.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::c_PAUS
PAUS
(integer)
Returns 1 if target agent is paused, or 0 otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_PAUS
RACE
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_RACE
RTIF
(string)
timestamp
(integer)
format
(string)
Returns the result of strftime with the current timestamp and format.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_RTIF
RTIM
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_RTIM
SEAN
(integer)
Returns the current game world season. 0 is spring, 1 is summer, 2 is autumn and 3 is winter.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_SEAN
- Pragmas:
- variants => c2 cv c3
TIME
(integer)
Returns the time of day in the current game world. 0 is dawn, 1 is morning, 2 is afternoon, 3 is evening and 4 is night.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_TIME
WPAU
(command)
paused
(integer)
If paused is 0, enable world ticks, otherwise (1) disable them.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::c_WPAU
WPAU
(integer)
Returns 1 if world ticks are paused, or 0 otherwise.
This command is not yet implemented.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_WPAU
WTIK
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_WTIK
YEAR
(integer)
Returns the number of game years elapsed in the current world.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_time.cpp
- Implementation functions (may be wrong): caosVM::v_YEAR
- Pragmas:
- variants => c2 cv c3
Unknown
SERL MAPP
(command)
filename
(string)
Loads the map from the specified file
May explode if anything at all exists.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ser_stub.cpp
- Implementation functions (may be wrong): caosVM::c_SERL_MAPP
SERL SCRP
(command)
filename
(string)
Loads the scriptorium from the specified file
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ser_stub.cpp
- Implementation functions (may be wrong): caosVM::c_SERL_SCRP
SERS MAPP
(command)
filename
(string)
Saves the map to the specified file.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ser_stub.cpp
- Implementation functions (may be wrong): caosVM::c_SERS_MAPP
SERS SCRP
(command)
filename
(string)
Saves the scriptorium to the specified file
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_ser_stub.cpp
- Implementation functions (may be wrong): caosVM::c_SERS_SCRP
Variables
ABSV
(command)
var
(variable)
Modifies the given variable, if negative, so that its value is positive (absolute value).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_ABSV
ACOS
(float)
x
(float)
Returns the arccosine of x in degrees.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_ACOS
ADDS
(command)
var
(variable)
value
(string)
Append the given string to the given variable.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_ADDS
ADDV
(command)
var
(variable)
add
(integer)
Adds the given integer to the given variable and returns the result.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_ADDV
- Pragmas:
- variants => c1 c2 cv c3 sm
ANDV
(command)
var
(variable)
and
(integer)
Returns the result of a bitwise AND comparison of the given variable and the given integer (var & and).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_ANDV
- Pragmas:
- variants => c1 c2 cv c3 sm
ASIN
(float)
x
(float)
Returns the arcsine of x in degrees.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_ASIN
ATAN
(float)
x
(float)
Returns the arctangent of x in degrees.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_ATAN
AVAR
(variable)
agent
(agent)
index
(integer)
Returns the value of OVxx for the given agent, where xx is equal to 'index'.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_AVAR
CATA
(integer)
Returns the agent category of the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_CATA
CATI
(integer)
family
(integer)
genus
(integer)
species
(integer)
Returns the agent category for the given family/genus/species.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_CATI
CATO
(command)
category_id
(integer)
Sets the agent category of the TARG agent. If the specified category is -1, sets the category based on the family/genus/species of the agent (see CATI).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_CATO
CATX
(string)
category_id
(integer)
Returns a string containing the name of the given category.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_CATX
CHAR
(command)
string
(variable)
index
(integer)
character
(integer)
Sets the character at position 'index' of the given string.
Indexes start at 1.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_CHAR
CHAR
(integer)
str
(string)
index
(integer)
Returns the character at position 'index' of the given string.
Indexes start at 1.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_CHAR
COS_
(float)
x
(float)
Returns the cosine of x in degrees.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_COS_
DELN
(command)
name
(anything)
Delete the specified NAME variable on the target agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_DELN
DIVV
(command)
var
(variable)
div
(decimal)
Divides the given variable by the given integer and returns the result.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_DIVV
- Pragmas:
- variants => c1 c2 cv c3 sm
FTOI
(integer)
number
(float)
Converts the given float to an integer, by rounding.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_FTOI
GAMN
(string)
previous
(string)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_GAMN
GNAM
(string)
Returns the currently-running game (like "Creatures 1" or "Docking Station").
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_GNAM
- Pragmas:
- variants => all
ITOF
(float)
number
(integer)
Converts the given integer to a float.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_ITOF
LOWA
(string)
string
(string)
Return a lower-cased version of a string.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_LOWA
MAME
(variable)
name
(anything)
Like NAME variables, except for OWNR rather than TARG.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_MAME
MODU
(string)
Returns information about which modules are being used by the engine (for now, backend and audio backend names).
This command is not yet implemented.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_MODU
- Pragmas:
- variants => all
MODV
(command)
var
(variable)
mod
(integer)
Divides the given variable by the given integer, and returns the remainder (var % mod).
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_MODV
- Pragmas:
- variants => c1 c2 cv c3 sm
MULV
(command)
var
(variable)
mul
(decimal)
Multiplies the given variable by the given integer and returns the result.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_MULV
- Pragmas:
- variants => c1 c2 cv c3 sm
MVxx
(variable)
Like OVxx, only for OWNR, not TARG.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_MVxx
- Pragmas:
- stackdelta => 0
NAME
(variable)
name
(anything)
Named, agent-local variables (like OVxx) in the TARG agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_NAME
NAMN
(command)
previous
(variable)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_NAMN
NEGV
(command)
var
(variable)
Returns the inverse of (negates) the given variable. For example, 1 to -1, or -4 to 4.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_NEGV
- Pragmas:
- variants => c1 c2 cv c3 sm
ORRV
(command)
var
(variable)
or
(integer)
Returns the result of a bitwise OR comparison of the given variable and the given integer (var | or)
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_ORRV
- Pragmas:
- variants => c1 c2 cv c3 sm
OVxx
(variable)
Agent-local variables (exist only in the current agent's VM) from TARG, with xx being from 00 to 99. Examples: OV01, OV45.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_OVxx
- Pragmas:
- stackdelta => 0
- variants => c2 cv c3 sm
POWV
(command)
value
(variable)
exponent
(decimal)
Raises value to the exponent power, and saves the result back in value.
Results are undefined if value is negative.
Openc2e-only command
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_POWV
RAND
(integer)
value1
(integer)
value2
(integer)
Returns a random integer between 'value1' and 'value2', inclusive.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_RAND
READ
(string)
tag
(string)
offset
(integer)
Returns the value of the string at 'offset' inside the given catalogue tag.
Offsets start at zero. Throws an error if tag doesn't exist.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_READ
REAF
(command)
Re-reads all catalogue files.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_REAF
REAN
(integer)
tag
(string)
Return number of strings associated with the catalogue tag specified.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_REAN
REAQ
(integer)
tag
(string)
Returns 1 if the specified catalogue tag exists, or 0 otherwise.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_REAQ
SETA
(command)
var
(variable)
value
(agent)
Sets the given variable to the given agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_SETA
SETS
(command)
var
(variable)
value
(string)
Sets the given variable to the given string.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_SETS
SETV
(command)
var
(variable)
value
(decimal)
%% Don't enable c1 or c2 here; we activate them with horrible hacks later
Sets the given variable to the given decimal value.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_SETV
- Pragmas:
- variants => c1 c2 cv c3 sm
SINS
(integer)
string
(string)
index
(integer)
searchstring
(string)
Searches for an occurance of 'searchstring' inside 'string', starting at the given index inside 'string' (first character is 1).
The index of the 'searchstring' inside the string is returned, or -1 if the searchstring wasn't found.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_SINS
SIN_
(float)
x
(float)
Returns the sine of x in degrees.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_SIN_
SQRT
(float)
v
(float)
Returns the square root of v.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_SQRT
STOF
(float)
string
(string)
Returns the provided string as a float, or 0 if it can't be converted.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_STOF
STOI
(integer)
string
(string)
Returns the provided string as an integer, or 0 if it can't be converted.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_STOI
STRL
(integer)
string
(string)
Returns the length in characters of the given string.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_STRL
SUBS
(string)
value
(string)
start
(integer)
count
(integer)
Returns the text in a string starting at 'start' into the string (starting at 1), and with 'count' characters.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_SUBS
SUBV
(command)
var
(variable)
sub
(integer)
Subtracts the given integer from the given variable and returns the result.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::c_SUBV
- Pragmas:
- variants => c1 c2 cv c3 sm
TAN_
(float)
x
(float)
Returns the tangent of x in degrees.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_TAN_
TYPE
(integer)
value
(anything)
Returns a integer value representing the type of data in 'value'. 0 is integer, 1 is float, 2 is string, 3 is agent.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_TYPE
UFOS
(string)
Returns 'uname -a' on platforms which support it, or OS details in another format otherwise.
This command is not yet implemented.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_UFOS
UPPA
(string)
string
(string)
Return an upper-cased version of a string.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_UPPA
VAxx
(variable)
Script-local variables (exist only in the current script) with xx being from 00 to 99. Examples: VA01, VA45.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_VAxx
- Pragmas:
- stackdelta => 0
- variants => c2 cv c3 sm
VTOS
(string)
value
(decimal)
Returns a string representation of the given value.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_VTOS
WILD
(string)
family
(integer)
genus
(integer)
species
(integer)
tag
(string)
offset
(integer)
Searches for a catalogue tag starting with 'tag' and matching the given
family/genus/species. For instance, 'Agent Help 2 3 4' where family is 2,
genus is 3 and species is 4. If it doesn't find it, it sets the minor value
to 0 repeatedly until it either finds one, or discovers 'tag 0 0 0' doesn't
exist, at which point an error is thrown. If it does find a suitable one, it
returns the string at offset inside the tag. See READ.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_WILD
_P1_
(variable)
The first argument given to the current script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_P1
- Pragmas:
- implementation => caosVM::v_P1
- saveimpl => caosVM::s_P1
- variants => c2 cv c3 sm
_P2_
(variable)
The second argument given to the current script.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_variables.cpp
- Implementation functions (may be wrong): caosVM::v_P2
- Pragmas:
- implementation => caosVM::v_P2
- saveimpl => caosVM::s_P2
- variants => c2 cv c3 sm
Vectors
VEC: ADDV
(command)
vec1
(variable)
vec2
(vector)
Adds vec1 to vec2 and stores the result in vec1.
Openc2e-only command.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::c_VEC_ADDV
VEC: ANGL
(float)
vec
(vector)
Find and return the angle from the X-axis of the given vector.
This is computed using atan(y/x) if X is nonzero, and a hard-coded
return if X is nonzero. If the input vector is the null vector (0,0),
zero will be returned.
The returned angle is in degrees, and in the range -180 to 180 degrees.
Openc2e-only command.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::v_VEC_ANGL
VEC: GETC
(command)
vec
(vector)
x
(variable)
y
(variable)
Extracts the components of vector vec and places them in x and y.
Openc2e-only command
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::c_VEC_GETC
VEC: MAGN
(float)
vec
(vector)
Returns the magnitude of the passed vector.
Openc2e-only command.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::v_VEC_MAGN
VEC: MAKE
(vector)
x
(float)
y
(float)
Creates and returns a vector with the given components.
Openc2e-only command
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::v_VEC_MAKE
VEC: MULV
(command)
vec
(variable)
mag
(decimal)
Multiplies the magnitude of the vector vec by mag, and stores the result
in vec.
Openc2e-only command
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::c_VEC_MULV
VEC: NULL
(vector)
Returns the nullary (0,0) vector.
Openc2e-only command
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::v_VEC_NULL
VEC: SETV
(command)
dest
(variable)
src
(vector)
Sets the variable passed in dest to the vector in src
Openc2e-only command
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::c_VEC_SETV
VEC: SUBV
(command)
vec1
(variable)
vec2
(vector)
Subtracts vec2 from vec1 and stores the result in vec1.
Openc2e-only command.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::c_VEC_SUBV
VEC: UNIT
(vector)
angle
(decimal)
Constructs and returns a unit vector with angle angle.
Openc2e-only command,
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vectors.cpp
- Implementation functions (may be wrong): caosVM::v_VEC_UNIT
Vehicles
CABN
(command)
left
(integer)
top
(integer)
right
(integer)
bottom
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_CABN
- Pragmas:
- variants => c1 c2 cv c3
CABP
(command)
plane
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_CABP
CABV
(command)
room_id
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_CABV
CABV
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::v_CABV
CABW
(command)
cap
(integer)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_CABW
DPAS
(command)
family
(integer)
genus
(integer)
species
(integer)
drop all agents matching classifier from target vehicle
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_DPAS
GPAS
(command)
family
(integer)
genus
(integer)
species
(integer)
options
(integer)
pick up all nearby agents matching classifier, as passengers to target vehicle
options = 0 to pick up based on agent bounding rect, or 1 to pick up based on cabin rect
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_GPAS
RPAS
(command)
vehicle
(agent)
passenger
(agent)
This command is currently undocumented.
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_RPAS
SPAS
(command)
vehicle
(agent)
passenger
(agent)
make specified vehicle agent pick up specified passenger
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_vehicles.cpp
- Implementation functions (may be wrong): caosVM::c_SPAS
- Pragmas:
- variants => c1 c2 cv c3
World
DELW
(command)
name
(string)
Delete the specified world directory and all contents.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::c_DELW
LOAD
(command)
worldname
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::c_LOAD
NWLD
(integer)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::v_NWLD
PSWD
(command)
password
(string)
This command is currently undocumented.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::c_PSWD
PSWD
(string)
world
(integer)
Return the password for the specified world (zero-indexed, see NWLD), or an empty string for no password.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::v_PSWD
QUIT
(command)
Quit the game engine at the start of the nexttick
This command is believed to work, but has not yet been thoroughly tested.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::c_QUIT
SAVE
(command)
Save the world at the start of the next tick. Beware; if you don't put this
in an INST, it might save directly after your SAVE call (meaning upon loading,
the script will execute the next instruction, often QUIT or LOAD, which is
bad).
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::c_SAVE
WNAM
(string)
Returns the name of the current world.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::v_WNAM
WNTI
(integer)
name
(string)
Return the world identifier for the specified world name, or -1 if it doesn't exist.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::v_WNTI
WRLD
(command)
name
(string)
Create a new world directory to prepare for the creation of the specified world.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::c_WRLD
WRLD
(string)
world
(integer)
Return the name of the specified world (zero-indexed, see NWLD).
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::v_WRLD
WTNT
(command)
index
(integer)
red
(integer)
green
(integer)
blue
(integer)
rotation
(integer)
swap
(integer)
Sets an index in the mysterious global tint table to have the specified values. No, we have no idea what that means either.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::c_WTNT
WUID
(string)
Returns the unique identifier (moniker?) of the current world.
This command is not yet implemented.
- Implemented in: caosVM_world.cpp
- Implementation functions (may be wrong): caosVM::v_WUID