User Tools

Site Tools


triggers:aprog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
triggers:aprog [2015/01/07 06:04]
vodur
— (current)
Line 1: Line 1:
-====== AreaProgs ====== 
- 
-Area progs are attached in aedit with addaprog command. 
- 
-Area progs are always lua scripts. 
- 
-^Argument ^Type ^Note | 
-|area |[[:​lua:​area:​members|AREA]] |the area to whom the script is attached | 
-|ch1 |[[:​lua:​ch:​members|CH]] |see table | 
-|trigger |string |see table | 
-|trigtype |string |see table | 
- 
-^trigtype ^area ^ch1 ^trigger |Phrase type |Description | 
-|enter |area |enterer |none |number(%chance) |Fires when player enters the area | 
-|<​nowiki>​*</​nowiki>​exit |area |exiter |none |number(%chance) |Fires when player exits the area | 
-|renter |area |enterer |none |number(%chance) |Fires when player enters any room in the area | 
-|<​nowiki>​*</​nowiki>​rexit |area |exiter |none |number(%chance) |Fires when player exits any room in the area | 
-|<​nowiki>​*</​nowiki>​recall |area |recaller |none |number(%chance) |Fires when a player recalls from the area | 
-|boot |area |none |none |number(%chance) |Fires after mud boots or finishes copyover | 
-|shutdown |area |none |none |number(%chance) |Fires before mud shutdown/​copyover | 
-|connect |area |connecter |none |number(%chance) |Fires when player connects in the area. Does not fire on reconnect. | 
-|quit |area |quitter |none |number(%chance) |Fires when player quits in the area | 
-|void |area |voider |none |number(%chance) |Fires when player voids in the area | 
-|unvoid |area |unvoider |none |number(%chance) |  \\ Fires immediately after player isreturned to area \\  | 
-|[[:​triggers:​timer|timer]] |area |none |none |number(seconds interval) |Fires at an interval of x seconds (provided as phrase) | 
-|(<​nowiki>​*</​nowiki>​)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.1420610695.txt.gz ยท Last modified: 2015/01/07 06:04 by vodur