Open new window
Last update:

OasisOLC and Deaths Gate script reference

Object Commands

%damage%

%damage% victim amount

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

  Example of use

%door%

%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:

purge

remove the exit in the direction specified - no value needed

description

value will become the new exit description

flags

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

a

Exit is a door that can be opened and closed.

b

The door is closed.

c

The door is locked.

d

The door is pick-proof.

key

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

name 

value is the name of the door in the specified direction

room

value is the vnum of the room this direction leads to

Example of use

%echo%

%echo% message

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

Example of use

%echoaround%

%echoaround% victim message

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

Example of use

%force%

%force% victim command

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

Example of use

%load%

%load% <obj|mob> vnum

Load the specified object or mobile.

Example of use

%purge%

%purge% victim

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

Example of use

%send%

%send% victim message

Send message to victim.

Example of use

%zoneecho%

%zoneecho% <room vnum> message

Zoneecho echoes message to the zone.

Example of use

%teleport%

%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

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%

%asound% message

The message is send to all surrounding rooms.

Example of use

otimer

otimer value

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

Example of use

otransform

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

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.