User Tools

Site Tools


triggers:aprog

AreaProgs

Area progs are attached in aedit with addaprog command.

Area progs are always lua scripts.

Script ArgumentTypeNote
ch1CHsee table
triggerstringsee table
trigtypestringsee table

The actual area to which the script is attached can be referenced in the script through 'area' global variable (type AREA).

trigtypech1triggerPhrase typeDescription
enterenterernonenumber(%chance)Fires when player enters the area.
See enter and exit triggers.
*exitexiternonenumber(%chance)Fires when player exits the area.
See enter and exit triggers.
renterenterernonenumber(%chance)Fires when player enters any room in the area.
See enter and exit triggers.
*rexitexiternonenumber(%chance)Fires when player exits any room in the area.
See enter and exit triggers.
*recallrecallernonenumber(%chance)Fires when a player recalls from the area.
See enter and exit triggers.
bootnonenonenumber(%chance)Fires after mud boots or finishes copyover
shutdownnonenonenumber(%chance)Fires before mud shutdown/copyover
connectconnecternonenumber(%chance)Fires when player connects in the area. Does not fire on reconnect.
quitquitternonenumber(%chance)Fires when player quits in the area
voidvoidernonenumber(%chance)Fires when player voids in the area
unvoidunvoidernonenumber(%chance)Fires immediately after player is returned to area from the void
deathdiernonenumber(%chance)Fires when player dies in the area. Fires before players location changes.
*preresetnonenonenumber(%chance)Fires directly before the area resets.
postresetnonenonenumber(%chance)Fires directly after the area resets.
timernonenonenumber(seconds interval)Fires at an interval of x seconds (provided as phrase)
(*)If trigger fires, command is prevented from going through unless 'return true' in the script.

When recalling, order of trigger processing is: rexit then exit then recall


triggers/aprog.txt · Last modified: 2017/06/28 02:59 by vodur