Open new window
Last update:

OasisOLC and Deaths Gate script reference

Object Commands


%damage% victim amount

Cause amount points of damage to victim. The amount can be negative, to create a healing effect.

  Example of use


%door% <vnum> < direction> < field> [value] 

Used for adding, deleting, and modifying doors in room #vnum.
Direction determines which door is being changed, and can be north, south, east, west, up, or down. 
If the door does not exist first, a new door will be created. 
Field is what property of the door is being changed. Valid fields are:


remove the exit in the direction specified - no value needed


value will become the new exit description


value will be the new door flags bitvector as defined here:


Exit is a door that can be opened and closed.


The door is closed.


The door is locked.


The door is pick-proof.


value is the vnum of the key to the door in this direction


value is the name of the door in the specified direction


value is the vnum of the room this direction leads to

Example of use


%echo% message

message is sent to all non-sleeping characters in the same room that this script is executing in.

Example of use


%echoaround% victim message

message will be sent to all characters in the room with victim, except victim.

Example of use


%force% victim command

Force the victim to perform a particular command. Cannot be made to force immortals.

Example of use


%load% <obj|mob> vnum

Load the specified object or mobile.

Example of use


%purge% victim

Remove victim from the game. May not be used on players.

Example of use


%send% victim message

Send message to victim.

Example of use


%zoneecho% <room vnum> message

Zoneecho echoes message to the zone.

Example of use


%teleport% victim location

Teleport moves the victim to the target. The victim does not need to be in the same room as the mob. If the victim is 'all', all the characters in the room will be teleported to the target room. No messages are generated by this command.

Example of use


dg_cast 'spellname' [target]

This allows the holder of a trigger to cast spells. Spells will work for rooms and objects, as well as mobiles.

Example of use


%asound% message

The message is send to all surrounding rooms.

Example of use


otimer value

Set the countdown timer of this object to value. Useful for objects with timer triggers.

Example of use


otransform vnum

This command causes the executing object to transform into another object, based on the vnum argument supplied. The four basic values will remain those of the original mob but all other statistics and descriptions will be those of the new object. The transformation is permanent, tho additional transformations may be performed. No message regarding the transformation is sent to the room. The new object will have the same script as the originating object, rather than any script normally assigned to the new object, and no load trigger will be executed.

Example of use


osetval position value

Osetval lets you alter the object value of an object. The meaning of the value depends on the object type, and can be studied here.

Example of use


© 2005 Thomas Arp (Welcor). All rights reserved.