Trap Object Functions for Mocha


integer obj.trap_type;
void set_trap_type (object obj, integer type);
Determine or set the type of a trap. The type must appear in the following list of constants:

boolean obj.trap_persistent;
void set_trap_persistent (object obj, boolean persistent);
Determine or set the persistency of a trap. Persistent traps do not vanish when they fire and must be disarmed before a person can get by them.

string obj.trap_trigger;
void set_trap_trigger (object obj, string trigger);
Determine or set the trigger command for a trap. Note that the trigger is the same for all instances of a given trap, so that changing the trigger also changes the trigger for all traps with the same virtual number as the trap changed.


Return to Mocha Object Functions Page

Return to Mocha's Main Page