Open new window
Last update:

OasisOLC and Deaths Gate script reference

Examples

Global

This demo trigger will send an annoying message to the room every 13 seconds, regardless if there's a player in the room.

Trigger Intended Assignment: Rooms
Trigger Type: Global Random , Numeric Arg: 100, Arg list:
Commands:
      %echo% The trigger fires now!

Random

 This demo will send a message to the room every 13 seconds, whenever there's a player in the room.

Trigger Intended Assignment: Rooms
Trigger Type: Random , Numeric Arg: 100, Arg list:
Commands:
      %echo% The trigger fires now!

Command

This demo will send a message when a player types 'hop' in the room
Note to implementors - this doesn't work for gods.

Trigger Intended Assignment: Rooms
Trigger Type: Command , Numeric Arg: 100, Arg list: hop
Commands:
      %echo% The trigger fires now!

Speech

 The trigger below fires, when the complete (stupid) sentence 'test ing hop jump'. If the Numeric arg had been 1, it would fire on 'test', 'ing', 'test ing', and even 'test hop' or 'hop' alone. 

Trigger Intended Assignment: Rooms
Trigger Type: Speech , Numeric Arg: 0, Arg list: test ing hop jump
Commands:
      %echo% The trigger fires now!

Zone Reset

The trigger fires every time the zone resets and removes a door, if any, to the north from room 4067.

Trigger Intended Assignment: Rooms
Trigger Type: Zone reset , Numeric Arg: 100, Arg list:
Commands:
   wdoor 4067 north purge 0
   wecho As if by magic all the tapestries rise to their previous positions.

Enter

This trigger activates every time anyone enters the room. If returning 0 the person won't be allowed to enter. This can be used to block too high level people:

Trigger Intended Assignment: Rooms
Trigger Type: Enter , Numeric Arg: 100, Arg list:
Commands:
      if (%actor.level% > 10)
        %send% %actor% You're too old to enter here.
        return 0
      end

Drop

The demo trigger checks if the item is Trash.

Trigger Intended Assignment: Rooms
Trigger Type: Drop , Numeric Arg: 100, Arg list:
Commands:
      if (%object.type% == TRASH)
        %echo% No Littering!
        return 0
      end

Cast

Currently no example

 

Leave

Currently no example available.

 

Door

Currently no example available.

 

Time

Currently no example available.

 

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