A trigger executes a defined action(v1) when the PC performs another action(v0) which could be anything from eating some             food to examining an object.

v0 values

Commands to active the trigger and their values:

1 = Opening a Container
2
= Closing a Container
3
= Eating some food
4
= Drink From a Container
5
= Drink from a Fountain
6
= Wear an Object
7
= Get An Object
8
= Drop an Object
9
= Examine an Object

NOTE: 1-6 don't work in the stock code

 

v1 values

Action to be performed once trigger is actived:

0 = Transport (v2 = room vnum)
1 = Restore
2
= Slay
3
= Mload (v2 = vnum of mob)

 

Example:  When a player examines the object a MOB with a vnum of 3001 will be loaded.
[Value0 : 9] Trigger type
[Value1 : 3] Action type
[Value2 : 3001] Optional argument
Triggered when PC examines object
Tells it to load a MOB
Vnum of MOB

 

Example2: When a player gets the object, the object will slay the player.
[Value0 : 7] Trigger type
[Value1 : 2] Action type 
Triggered when PC gets object
Tells it to slay the PC


 

Example3: When a player examines the object, the object will transfer them to a new location
[Value0 : 9] Trigger type 
[Value1 : 0] Action type
[Value2 : 3001] Optional argument
Triggered when PC gets object
Tells it to transfer the PC to v2 vnum
The room the PC is transferred into.