Trigger After Move

From TFCWiki - The Final Challenge MUD's Player Information Resource
Jump to: navigation, search

Trigger after move are ALLOW type triggers that are special functions associated with rooms and doors. The are found in the #TRIGGERS section of an area file.

These triggers always begin with the special code: A

A <room vnum> <door number> <spec_name>

A 30934 1 spec_crack_head

FROM AWG - need to integrate:

This specfun is assigned to a door. When a mob or player attempts to use the door, the MUD allows passage, but then conducts further checks to see if some nasty or beneficial event happens to the character. Of the specfun class called Triggers, only ONE trigger can be assigned to a given door in a room. These specfuns, along with the Prevent Specfuns, are placed together in the TRIGGERS block.

The layout of an Allow Specfun is as follows:

A: This must be a A.

B: This is the room's vnum where the door is.

C: This is the door to attached the specfun to. 0 means north, 1 means east, 2 means south, 3 means west, 4 means up, and 5 means down.

D: This is the name of the allow specfun off the approved allow specfun list.

E: This usually would contain the room's name and the door's direction.