Difference between revisions of "Proc:Trap"

From WikiName
Jump to: navigation, search
Line 7: Line 7:
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| TRAP_INITIALCHARGES
+
| TRAP_INITIAL_CHARGES
| 0
+
| 1
 
| The number of charges the trap has per zone reset.  If this value is negative, the trap has infinite charges.
 
| The number of charges the trap has per zone reset.  If this value is negative, the trap has infinite charges.
 
|}
 
|}
Line 46: Line 46:
 
| The percentage chance that the trigger will activate.
 
| The percentage chance that the trigger will activate.
 
|-
 
|-
| TRIGGER_MINPRIMELEVEL
+
| TRIGGER_MIN_PRIME_LEVEL
 
| 0
 
| 0
 
| The minimum prime level required to activate the trigger.
 
| The minimum prime level required to activate the trigger.
 
|-
 
|-
| TRIGGER_MAXPRIMELEVEL
+
| TRIGGER_MAX_PRIME_LEVEL
 
| 40
 
| 40
 
| The maximum prime level allowed to activate the trigger.
 
| The maximum prime level allowed to activate the trigger.
 
|-
 
|-
| TRIGGER_ACTIVATIONDELAY
+
| TRIGGER_ACTIVATION_DELAY
 
| 0
 
| 0
 
| Approximate number of seconds to delay the effects after the trigger is activated.  Note that setting this value allows for the player activating the trigger to escape - which means they may not be present for any of the effects.
 
| Approximate number of seconds to delay the effects after the trigger is activated.  Note that setting this value allows for the player activating the trigger to escape - which means they may not be present for any of the effects.
 
|-
 
|-
| TRIGGER_SPELLEXEMPTIONLIST
+
| TRIGGER_SPELL_EXEMPTION_LIST
 
| No exemptions
 
| No exemptions
 
| A colon (:) separated list of spells/skills that make the player exempt from activating the trigger.
 
| A colon (:) separated list of spells/skills that make the player exempt from activating the trigger.
 
|-
 
|-
| TRIGGER_INCLUDEMOBILES
+
| TRIGGER_INCLUDE_MOBILES
 
| 0 (FALSE)
 
| 0 (FALSE)
| Indicates whether or not independant mobiles should be able to activate the trigger.  If this value is left at zero, wandering mobiles will not activate the trap nor count toward cumulative activations such as pressure plate weights.  Mobile followers (supplications, summoned undead, etc) are always able to activate the trigger unless their master's prime level falls outside the trigger's boundaries or unless the follower is affected by a spell in the spell exemption list.
+
| Indicates whether independant mobiles should be able to activate the trigger.  If this value is left at zero, wandering mobiles will not activate the trap nor count toward cumulative activations such as pressure plate weights.  Mobile followers (supplications, summoned undead, etc) are always able to activate the trigger unless their master's prime level falls outside the trigger's boundaries or unless the follower is affected by a spell in the spell exemption list.
 
|-
 
|-
 
| TRIGGER_MESSAGE_ACTOR
 
| TRIGGER_MESSAGE_ACTOR
Line 78: Line 78:
 
== MobileDeath ==
 
== MobileDeath ==
  
The mobiledeath trigger will activate if a particular mobile is killed in this room.  It ignores most of the trigger settings including TRIGGER_MINPRIMELEVEL, TRIGGER_MAXPRIMTELEVEL, and TRIGGER_SPELLEXEMPTIONLIST.
+
The mobiledeath trigger will activate if a particular mobile is killed in this room.  It ignores most of the trigger settings including TRIGGER_MIN_PRIME_LEVEL, TRIGGER_MAX_PRIME_LEVEL, and TRIGGER_SPELL_EXEMPTION_LIST.
  
 
{|class="abilitiestable" border="0" cellspacing="0" cellpadding="0"
 
{|class="abilitiestable" border="0" cellspacing="0" cellpadding="0"
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| MOBILEDEATH_VNUM
+
| MOBILE_DEATH_VNUM
 
| -1
 
| -1
 
| Vnum of the mobile to react to.
 
| Vnum of the mobile to react to.
Line 102: Line 102:
  
  
== PressurePlate ==
+
== Pressure Plate ==
  
The pressureplate trigger activates when the weight of the applicable players and mobiles crosses a threshhold.  Players/mobiles affected by the fly or wraithform spells are not counted.
+
The pressure plate trigger activates when the weight of the applicable players and mobiles crosses a threshhold.  Players/mobiles affected by the fly or wraithform spells are not counted.
  
 
{|class="abilitiestable" border="0" cellspacing="0" cellpadding="0"
 
{|class="abilitiestable" border="0" cellspacing="0" cellpadding="0"
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| PRESSUREPLATE_WEIGHT
+
| PRESSURE_PLATE_WEIGHT
 
| 0
 
| 0
 
| The amount of weight needed to activate the trigger.
 
| The amount of weight needed to activate the trigger.
Line 122: Line 122:
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| EFFECTS_SPELLEXEMPTIONLIST
+
| EFFECTS_SPELL_EXEMPTION_LIST
 
| Empty
 
| Empty
 
| Colon (:) separated list of spells that exempt the player/mobile from being affected by any of the trap's effects.
 
| Colon (:) separated list of spells that exempt the player/mobile from being affected by any of the trap's effects.
Line 129: Line 129:
 
| Empty
 
| Empty
 
| Colon (:) separated list of effects enabled for this trap.  Effects are activated in the order they appear.
 
| Colon (:) separated list of effects enabled for this trap.  Effects are activated in the order they appear.
 +
|-
 +
| EFFECTS_TARGET
 +
| Actor
 +
| A string value of "Actor" to target the person triggering the trap, or "Room" for the entire room, or a number from 1 to 32 indicating how many random eligible players/mobiles should be selected and affected.
 +
|-
 +
| EFFECTS_AFFECT_MOBILES
 +
| 0
 +
| Boolean value indicating whether unrelated mobiles should be affected by the trap.  If this value is left at zero, wandering mobiles will not be affected.  Mobile followers (supplications, summoned undead, etc) will always be eligible unless their master's prime level falls outside the trigger's boundaries or unless the follower is affected by a spell in the spell exemption list.
 +
|-
 +
| EFFECTS_AFFECT_OBJECTS
 +
| 0
 +
| Boolean value indicating whether objects in the room should be affected by the trap.
 +
|-
 +
| EFFECTS_ALLOW_DEATH
 +
| 0
 +
| Boolean value determining whether players/mobiles can be killed by the trap.  By default the player/mobile will be taken down to 0 hit points and stunned.  It is strongly recommended that this only be changed in the most harshest of areas.
 +
|-
 +
| EFFECTS_OVERRIDE_COMMAND
 +
| 0
 +
| Boolean value indicating whether activation of the trap overrides the current command.  Only relevant if a command triggers the trap.
 +
|-
 +
| EFFECTS_BLOCK_DEPARTURE
 +
| 0
 +
| Boolean value indicating whether activation of the trap blocks departure of the room.  Only relevant if the trap is triggered by attempting to exit the room.
 +
|-
 +
| EFFECTS_SKIP_LOOK_ON_ARRIVAL
 +
| 0
 +
| Boolean value indicating whether activation of the trap should stop the affected players from looking when arriving at their destination.  Only relevant if the trap is triggered during arrival into a new room.
 
|}
 
|}
 +
  
 
Supported effects:
 
Supported effects:
Line 173: Line 202:
 
| The number of dice used when calculating damage.
 
| The number of dice used when calculating damage.
 
|-
 
|-
| DAMAGE_DIESIZE
+
| DAMAGE_DIE_SIZE
 
| 1
 
| 1
 
| The size of the die or dice used when calculating damage.
 
| The size of the die or dice used when calculating damage.
Line 184: Line 213:
 
| Undefined
 
| Undefined
 
| Type of damage done.
 
| Type of damage done.
|-
 
| DAMAGE_AFFECTROOM
 
| 0
 
| Boolean value determining whether everyone in the room takes damage.
 
|-
 
| DAMAGE_INCLUDEMOBILES
 
| 0
 
| Boolean value determining whether unrelated mobiles take damage from the trap.  If this value is left at zero, wandering mobiles will not take damage from the trap.  Mobile followers (supplications, summoned undead, etc) will always take damage unless their master's prime level falls outside the trigger's boundaries or unless the follower is affected by a spell in the spell exemption list.
 
|-
 
| DAMAGE_ALLOWDEATH
 
| 0
 
| Boolean value determining whether players/mobiles can be killed by the trap.  By default the player/mobile will be taken down to 0 hit points and stunned.  It is strongly recommended that this only be changed in the most harshest of areas.
 
 
|-
 
|-
 
| DAMAGE_MESSAGE_ACTOR
 
| DAMAGE_MESSAGE_ACTOR
Line 214: Line 231:
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| DOORSTATE_####_XXXX_STATE
+
| DOOR_STATE_####_XXXX_STATE
 
| none
 
| none
 
| Sets the door's state to either "OPEN", "CLOSED", or "LOCKED".
 
| Sets the door's state to either "OPEN", "CLOSED", or "LOCKED".
 
|-
 
|-
| DOORSTATE_####_XXXX_MESSAGE_UNLOCKING
+
| DOOR_STATE_####_XXXX_MESSAGE_UNLOCKING
 
| No message
 
| No message
 
| Message sent to the room if the effect causes the door to unlock.
 
| Message sent to the room if the effect causes the door to unlock.
 
|-
 
|-
| DOORSTATE_####_XXXX_MESSAGE_OPENING
+
| DOOR_STATE_####_XXXX_MESSAGE_OPENING
 
| No message
 
| No message
 
| Message sent to the room if the effect causes the door to open.
 
| Message sent to the room if the effect causes the door to open.
 
|-
 
|-
| DOORSTATE_####_XXXX_MESSAGE_CLOSING
+
| DOOR_STATE_####_XXXX_MESSAGE_CLOSING
 
| No message
 
| No message
 
| Message sent to the room if the effect causes the door to close.
 
| Message sent to the room if the effect causes the door to close.
 
|-
 
|-
| DOORSTATE_####_XXXX_MESSAGE_LOCKING
+
| DOOR_STATE_####_XXXX_MESSAGE_LOCKING
 
| No message
 
| No message
 
| Message sent to the room if the effect causes the door to lock.
 
| Message sent to the room if the effect causes the door to lock.
Line 246: Line 263:
 
| 0
 
| 0
 
| The number of seconds to lag the player.
 
| The number of seconds to lag the player.
|-
 
| LAG_AFFECTROOM
 
| 0
 
| Boolean value that determines if the entire room is affected.
 
 
|-
 
|-
 
| LAG_MESSAGE_ACTOR
 
| LAG_MESSAGE_ACTOR
Line 280: Line 293:
 
| Number of hours before the portal will disappear.
 
| Number of hours before the portal will disappear.
 
|-
 
|-
| PORTAL_TWOWAY
+
| PORTAL_TWO_WAY
 
| 1
 
| 1
 
| Boolean value indicating whether or not the portal should be two-way.
 
| Boolean value indicating whether or not the portal should be two-way.
Line 293: Line 306:
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| SPAWNMOBILE_LIST
+
| SPAWN_MOBILE_LIST
 
| Empty
 
| Empty
 
| Colon (:) separated list of mobile vnums to create.  The same vnum may be listed more than once, but will use the same settings for all mobiles with the same vnum.
 
| Colon (:) separated list of mobile vnums to create.  The same vnum may be listed more than once, but will use the same settings for all mobiles with the same vnum.
 
|-
 
|-
| SPAWNMOBILE_####_DESTINATION
+
| SPAWN_MOBILE_####_DESTINATION
 
| -1
 
| -1
 
| Destination room to spawn the mobiles.  If unspecified or set to -1, the current room is used.
 
| Destination room to spawn the mobiles.  If unspecified or set to -1, the current room is used.
 
|-
 
|-
| SPAWNMOBILE_####_QUANTITY
+
| SPAWN_MOBILE_####_QUANTITY
 
| 1
 
| 1
 
| Number of mobiles to spawn with this vnum.  The current maximum value is 10.
 
| Number of mobiles to spawn with this vnum.  The current maximum value is 10.
 
|-
 
|-
| SPAWNMOBILE_####_MESSAGE_ROOM
+
| SPAWN_MOBILE_####_MESSAGE_ROOM
 
| No message
 
| No message
 
| Message sent to the room for each mobile spawned.
 
| Message sent to the room for each mobile spawned.
Line 318: Line 331:
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| SPAWNOBJECT_LIST
+
| SPAWN_OBJECT_LIST
 
| Empty
 
| Empty
 
| Colon (:) separated list of object vnums to create.  The same vnum may be listed more than once, but will use the same settings for all objects with the same vnum.
 
| Colon (:) separated list of object vnums to create.  The same vnum may be listed more than once, but will use the same settings for all objects with the same vnum.
 
|-
 
|-
| SPAWNOBJECT_####_DESTINATION
+
| SPAWN_OBJECT_####_DESTINATION
 
| -1
 
| -1
 
| Destination room to spawn the objects.  If unspecified or set to -1, the current room is used.
 
| Destination room to spawn the objects.  If unspecified or set to -1, the current room is used.
 
|-
 
|-
| SPAWNOBJECT_####_QUANTITY
+
| SPAWN_OBJECT_####_QUANTITY
 
| 1
 
| 1
 
| Number of objects to spawn with this vnum.  The current maximum value is 10.
 
| Number of objects to spawn with this vnum.  The current maximum value is 10.
 
|-
 
|-
| SPAWNOBJECT_####_MESSAGE_ROOM
+
| SPAWN_OBJECT_####_MESSAGE_ROOM
 
| No message
 
| No message
 
| Message sent to the room for each object spawned.  This message does not support $ replacement.
 
| Message sent to the room for each object spawned.  This message does not support $ replacement.
Line 351: Line 364:
 
| Destination room to teleport to.  If unspecified or set to -1 the proc uses the current room.
 
| Destination room to teleport to.  If unspecified or set to -1 the proc uses the current room.
 
|-
 
|-
| TELEPORT_AFFECTROOM
+
| TELEPORT_LOOK_AT_DESTINATION
| 0
 
| Boolean value indicating whether to teleport everyone in the source room.
 
|-
 
| TELEPORT_LOOKATDESTINATION
 
 
| 1
 
| 1
 
| Boolean value indicating whether players should automatically look in the room once they reach their destination.
 
| Boolean value indicating whether players should automatically look in the room once they reach their destination.
Line 380: Line 389:
 
! Key !! Default !! Description
 
! Key !! Default !! Description
 
|-
 
|-
| ZONEALARM_STATE
+
| ZONE_ALARM_STATE
 
| 1
 
| 1
 
| Boolean value indicating whether the alarm should be set (1) or cleared (0).
 
| Boolean value indicating whether the alarm should be set (1) or cleared (0).
 
|-
 
|-
| ZONEALARM_ACTIVATE_MESSAGE_ROOM
+
| ZONE_ALARM_ACTIVATE_MESSAGE_ROOM
 
| No message
 
| No message
 
| Message sent to the room when the alarm is activated.
 
| Message sent to the room when the alarm is activated.
 
|-
 
|-
| ZONEALARM_DEACTIVATE_MESSAGE_ROOM
+
| ZONE_ALARM_DEACTIVATE_MESSAGE_ROOM
 
| No message
 
| No message
 
| Message sent to the room when the alarm is deactivated.
 
| Message sent to the room when the alarm is deactivated.
Line 408: Line 417:
  
 
<pre>
 
<pre>
setproc room 0 TRAP_INITIALCHARGES -1
+
setproc room 0 TRAP_INITIAL_CHARGES -1
  
 
setproc room 0 TRIGGER_TYPE Password
 
setproc room 0 TRIGGER_TYPE Password
Line 414: Line 423:
  
 
setproc room 0 EFFECTS_LIST Teleport
 
setproc room 0 EFFECTS_LIST Teleport
 +
setproc room 0 EFFECTS_AFFECT_ROOM 1
 +
 
setproc room 0 TELEPORT_DESTINATION 8000
 
setproc room 0 TELEPORT_DESTINATION 8000
setproc room 0 TELEPORT_AFFECTROOM 1
 
 
setproc room 0 TELEPORT_MESSAGE_ACTOR You are blinded for a moment.
 
setproc room 0 TELEPORT_MESSAGE_ACTOR You are blinded for a moment.
 
setproc room 0 TELEPORT_MESSAGE_SOURCE_ROOM $n disappears in a flash of light!
 
setproc room 0 TELEPORT_MESSAGE_SOURCE_ROOM $n disappears in a flash of light!

Revision as of 00:32, 2 May 2015

Overview

The trap procedure allows builders to combine a single trigger with multiple effects. Some effects maybe be harmful, while others helpful. The settings for the trap are assigned via the setproc command.

Key Default Description
TRAP_INITIAL_CHARGES 1 The number of charges the trap has per zone reset. If this value is negative, the trap has infinite charges.


Triggers

The trap may only have one trigger which is set in the TRIGGER_TYPE key value.

Value Description
Generic Activates when players enter the room or perform a command.
MobileDeath Activates when a particular mobile is killed.
Password Activates when a player says a particular word.
PressurePlate Activates when the sum of the weights of all players/mobiles in the room reach a particular threshhold.


Trigger Settings

Global settings that may be applied to the trigger.

Key Default Description
TRIGGER_CHANCE 100 The percentage chance that the trigger will activate.
TRIGGER_MIN_PRIME_LEVEL 0 The minimum prime level required to activate the trigger.
TRIGGER_MAX_PRIME_LEVEL 40 The maximum prime level allowed to activate the trigger.
TRIGGER_ACTIVATION_DELAY 0 Approximate number of seconds to delay the effects after the trigger is activated. Note that setting this value allows for the player activating the trigger to escape - which means they may not be present for any of the effects.
TRIGGER_SPELL_EXEMPTION_LIST No exemptions A colon (:) separated list of spells/skills that make the player exempt from activating the trigger.
TRIGGER_INCLUDE_MOBILES 0 (FALSE) Indicates whether independant mobiles should be able to activate the trigger. If this value is left at zero, wandering mobiles will not activate the trap nor count toward cumulative activations such as pressure plate weights. Mobile followers (supplications, summoned undead, etc) are always able to activate the trigger unless their master's prime level falls outside the trigger's boundaries or unless the follower is affected by a spell in the spell exemption list.
TRIGGER_MESSAGE_ACTOR No message Message sent to the player who activates the trigger.
TRIGGER_MESSAGE_ROOM No message Message sent to the room when the trigger is activated.


MobileDeath

The mobiledeath trigger will activate if a particular mobile is killed in this room. It ignores most of the trigger settings including TRIGGER_MIN_PRIME_LEVEL, TRIGGER_MAX_PRIME_LEVEL, and TRIGGER_SPELL_EXEMPTION_LIST.

Key Default Description
MOBILE_DEATH_VNUM -1 Vnum of the mobile to react to.


Password

The password trigger will activate if a player says a particular word.

Key Default Description
PASSWORD_VALUE (none) The password.


Pressure Plate

The pressure plate trigger activates when the weight of the applicable players and mobiles crosses a threshhold. Players/mobiles affected by the fly or wraithform spells are not counted.

Key Default Description
PRESSURE_PLATE_WEIGHT 0 The amount of weight needed to activate the trigger.


Effects

Note that if a the trap has a non-zero activation time and is set to only affect the person triggering the trap, the person may be gone and the trap may affect noone.

Key Default Description
EFFECTS_SPELL_EXEMPTION_LIST Empty Colon (:) separated list of spells that exempt the player/mobile from being affected by any of the trap's effects.
EFFECTS_LIST Empty Colon (:) separated list of effects enabled for this trap. Effects are activated in the order they appear.
EFFECTS_TARGET Actor A string value of "Actor" to target the person triggering the trap, or "Room" for the entire room, or a number from 1 to 32 indicating how many random eligible players/mobiles should be selected and affected.
EFFECTS_AFFECT_MOBILES 0 Boolean value indicating whether unrelated mobiles should be affected by the trap. If this value is left at zero, wandering mobiles will not be affected. Mobile followers (supplications, summoned undead, etc) will always be eligible unless their master's prime level falls outside the trigger's boundaries or unless the follower is affected by a spell in the spell exemption list.
EFFECTS_AFFECT_OBJECTS 0 Boolean value indicating whether objects in the room should be affected by the trap.
EFFECTS_ALLOW_DEATH 0 Boolean value determining whether players/mobiles can be killed by the trap. By default the player/mobile will be taken down to 0 hit points and stunned. It is strongly recommended that this only be changed in the most harshest of areas.
EFFECTS_OVERRIDE_COMMAND 0 Boolean value indicating whether activation of the trap overrides the current command. Only relevant if a command triggers the trap.
EFFECTS_BLOCK_DEPARTURE 0 Boolean value indicating whether activation of the trap blocks departure of the room. Only relevant if the trap is triggered by attempting to exit the room.
EFFECTS_SKIP_LOOK_ON_ARRIVAL 0 Boolean value indicating whether activation of the trap should stop the affected players from looking when arriving at their destination. Only relevant if the trap is triggered during arrival into a new room.


Supported effects:

Key Description
Damage Does damage to one player/mobile or the room.
DoorState Changes the state of up to 100 doors.
Lag Lags the players or all players in the room.
Portal Opens a portal between two rooms.
SpawnMobiles Spawns one or more mobiles.
SpawnObjects Spawns one or more objects.
Teleport Teleports players/mobiles from one room to another.
ZoneAlarm Either sets or clears the zone alarm.


Damage

The damage effect does damage to the player/mobile activating the trigger or the entire room.

Key Default Description
DAMAGE_DICE 1 The number of dice used when calculating damage.
DAMAGE_DIE_SIZE 1 The size of the die or dice used when calculating damage.
DAMAGE_ADDITIONAL 0 An amount added (or subtracted) to the damage total.
DAMAGE_TYPE Undefined Type of damage done.
DAMAGE_MESSAGE_ACTOR No message Message shown to the player receiving damage.
DAMAGE_MESSAGE_ROOM No message Message shown to the room for the player receiving damage.


DoorState

The doorstate effect can change the states of up to 100 doors. The effect automatically sets both sides of the door to match. In the table below, the key name uses #### to represent the virtual number of the room containing the door and XXXX to represent the direction of the door in that room.

Key Default Description
DOOR_STATE_####_XXXX_STATE none Sets the door's state to either "OPEN", "CLOSED", or "LOCKED".
DOOR_STATE_####_XXXX_MESSAGE_UNLOCKING No message Message sent to the room if the effect causes the door to unlock.
DOOR_STATE_####_XXXX_MESSAGE_OPENING No message Message sent to the room if the effect causes the door to open.
DOOR_STATE_####_XXXX_MESSAGE_CLOSING No message Message sent to the room if the effect causes the door to close.
DOOR_STATE_####_XXXX_MESSAGE_LOCKING No message Message sent to the room if the effect causes the door to lock.


Lag

The lag effect adds lag to the affected players.

Key Default Description
LAG_SECONDS 0 The number of seconds to lag the player.
LAG_MESSAGE_ACTOR No message Message sent to the player when they are lagged.
LAG_MESSAGE_ROOM No message Message sent to the room for each player that is lagged.


Portal

The portal effect creates a portal from one room to another.

Key Default Description
PORTAL_SOURCE -1 Source room to create the portal. If not specified or set to -1, the proc uses the current room as the source.
PORTAL_DESTINATION -1 Destination room used to create the portal. If not specified or set to -1, the proc will not run.
PORTAL_DURATION 3 hours Number of hours before the portal will disappear.
PORTAL_TWO_WAY 1 Boolean value indicating whether or not the portal should be two-way.


SpawnMobiles

The spawnmobiles effect will create mobiles in one or more rooms.

Key Default Description
SPAWN_MOBILE_LIST Empty Colon (:) separated list of mobile vnums to create. The same vnum may be listed more than once, but will use the same settings for all mobiles with the same vnum.
SPAWN_MOBILE_####_DESTINATION -1 Destination room to spawn the mobiles. If unspecified or set to -1, the current room is used.
SPAWN_MOBILE_####_QUANTITY 1 Number of mobiles to spawn with this vnum. The current maximum value is 10.
SPAWN_MOBILE_####_MESSAGE_ROOM No message Message sent to the room for each mobile spawned.


SpawnObjects

The spawnobjects effect will create mobiles in one or more rooms.

Key Default Description
SPAWN_OBJECT_LIST Empty Colon (:) separated list of object vnums to create. The same vnum may be listed more than once, but will use the same settings for all objects with the same vnum.
SPAWN_OBJECT_####_DESTINATION -1 Destination room to spawn the objects. If unspecified or set to -1, the current room is used.
SPAWN_OBJECT_####_QUANTITY 1 Number of objects to spawn with this vnum. The current maximum value is 10.
SPAWN_OBJECT_####_MESSAGE_ROOM No message Message sent to the room for each object spawned. This message does not support $ replacement.


Teleport

The teleport effect telports players and/or mobiles from one room to another.

Key Default Description
TELEPORT_SOURCE -1 Source room to teleport from. If unspecified or set to -1 the proc uses the current room.
TELEPORT_DESTINATION -1 Destination room to teleport to. If unspecified or set to -1 the proc uses the current room.
TELEPORT_LOOK_AT_DESTINATION 1 Boolean value indicating whether players should automatically look in the room once they reach their destination.
TELEPORT_MESSAGE_ACTOR No message Message sent to the player when they are teleported.
TELEPORT_MESSAGE_SOURCE_ROOM No message Message sent to the source room when the player teleports away.
TELEPORT_MESSAGE_DESTINATION_ROOM No message Message sent to the destination room when the player arrives.


ZoneAlarm

The zonealarm effect either sets or clears the current zone's alarm.

Key Default Description
ZONE_ALARM_STATE 1 Boolean value indicating whether the alarm should be set (1) or cleared (0).
ZONE_ALARM_ACTIVATE_MESSAGE_ROOM No message Message sent to the room when the alarm is activated.
ZONE_ALARM_DEACTIVATE_MESSAGE_ROOM No message Message sent to the room when the alarm is deactivated.


Enabling the Trap

Before the trap will be enabled, you must run the following commands:

  • setproc room # PROC_ENABLED 1
  • compile

Compiling will copy all the KVP into an internal data structure for faster execution. Failure to compile the trap after modifications will cause any old settings to remain in effect.

In addition, setting PROC_DEBUG to 1 will send extra debugging information to those in the room.


Sample Trap

setproc room 0 TRAP_INITIAL_CHARGES -1

setproc room 0 TRIGGER_TYPE Password
setproc room 0 PASSWORD_VALUE muhahaha

setproc room 0 EFFECTS_LIST Teleport
setproc room 0 EFFECTS_AFFECT_ROOM 1

setproc room 0 TELEPORT_DESTINATION 8000
setproc room 0 TELEPORT_MESSAGE_ACTOR You are blinded for a moment.
setproc room 0 TELEPORT_MESSAGE_SOURCE_ROOM $n disappears in a flash of light!
setproc room 0 TELEPORT_MESSAGE_DESTINATION_ROOM $n appears in a flash of light!

setproc room 0 PROC_ENABLED 1
compile