User Tools

Site Tools


triggers:rprog

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
triggers:rprog [2015/01/07 06:09] vodurtriggers:rprog [2015/09/28 03:06] (current) vodur
Line 6: Line 6:
  
 ^Argument ^Type ^Note | ^Argument ^Type ^Note |
-|room |[[:lua:room:members|ROOM]] |the room to which the script is attached | 
 |ch1 |[[:lua:ch:members|CH]] |see table | |ch1 |[[:lua:ch:members|CH]] |see table |
 |ch2 |[[:lua:ch:members|CH]] |see table | |ch2 |[[:lua:ch:members|CH]] |see table |
Line 15: Line 14:
 |trigtype |string |see table | |trigtype |string |see table |
  
-^trigtype ^room ^ch1 ^ch2 ^obj1 ^obj2 ^text1 ^trigger ^Phrase type ^Description | +The actual room to which the script is attached can be referenced in the script through '**room**' global variable (type [[:lua:room:members|ROOM]]). 
-|enter |room |enterer |none |none |none |none |none |number(%chance) |Fires when player enters the room | + 
-|%%*%%exit |room |exiter |none |none |none |none |none |number(%chance) |Fires when player exits the room | +^trigtype ^ch1 ^ch2 ^obj1 ^obj2 ^text1 ^trigger ^Phrase type ^Description | 
-|%%*%%move |room |enterer |none |none |none |none |direction name |string(direction name or "%%*%%") |Fires when a player attemps to move in given direction. Exit does not have to exist. | +|enter |enterer |none |none |none |none |none |number(%chance) |Fires when player enters the room. \\ See [[:triggers:enterandexit|enter and exit triggers]]. 
-|%%*%%open |room |opener |none |none |none |none |direction name |string(direction name or "%%*%%") |Fires when a player opens given door. | +|<nowiki>*</nowiki>exit |exiter |none |none |none |none |none |number(%chance) |Fires when player exits the room. \\ See [[:triggers:enterandexit|enter and exit triggers]]. 
-|%%*%%close |room |closer |none |none |none |none |direction name |string(direction name or "%%*%%") |Fires when a player closes given door. | +|<nowiki>*</nowiki>move |enterer |none |none |none |none |direction name |string(direction name or "<nowiki>*</nowiki>") |Fires when a player attemps to move in given direction. Exit does not have to exist. \\ See [[:triggers:enterandexit|enter and exit triggers]]. | 
-|%%*%%unlock |room |unlocker |none |none |none |none |direction name |string(direction name or "%%*%%") |Fires when a player unlocks given door. | +|<nowiki>*</nowiki>open |opener |none |none |none |none |direction name |string(direction name or "<nowiki>*</nowiki>") |Fires when a player opens given door. | 
-|%%*%%lock |room |locker |none |none |none |none |direction name |string(direction name or "%%*%%") |Fires when a player locks given door. | +|<nowiki>*</nowiki>close |closer |none |none |none |none |direction name |string(direction name or "<nowiki>*</nowiki>") |Fires when a player closes given door. | 
-|[[:triggers:timer|timer]] |room |none |none |none |none |none |none |number(seconds interval) |Fires at an interval of x seconds (provided as phrase) | +|<nowiki>*</nowiki>unlock |unlocker |none |none |none |none |direction name |string(direction name or "<nowiki>*</nowiki>") |Fires when a player unlocks given door. | 
-|%%*%%look |room |looker |none |none |none |none |none |number(%chance) |Fires when player would see the room desc. | +|<nowiki>*</nowiki>lock |locker |none |none |none |none |direction name |string(direction name or "<nowiki>*</nowiki>") |Fires when a player locks given door. | 
-|try |room |tryer |none |none |none |none |none |string(phrase or %%*%%) |Fires when player in room used try command. | +|[[:triggers:timer|timer]] |none |none |none |none |none |none |number(seconds interval) |Fires at an interval of x seconds (provided as phrase) | 
-|connect |room |connecter |none |none |none |none |none |number(%chance) |Fires when player connects in room. Does not fire on reconnect. | +|<nowiki>*</nowiki>look |looker |none |none |none |none |none |number(%chance) |Fires when player would see the room desc. | 
-|%%*%%command |room |commander |none |none |none |command argument |command name |string(command name) |Fires when player uses the given command. | +|try |tryer |none |none |none |none |none |string(phrase or <nowiki>*</nowiki>) |Fires when player in room used try command. | 
-|(%%*%%)If trigger fires, command is prevented from going through unless 'return true' in the script. |+|connect |connecter |none |none |none |none |none |number(%chance) |Fires when player connects in room. Does not fire on reconnect. | 
 +|<nowiki>*</nowiki>prereset |none |none |none |none |none |none |number(%chance) |Fires directly before the room resets. | 
 +|postreset |none |none |none |none |none |none |number(%chance) |Fires directly after the room resets. | 
 +|<nowiki>*</nowiki>command |commander |none |none |none |command argument |command name |string(command name) |Fires when player uses the given command. | 
 + 
 +|(<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 When recalling, order of trigger processing is: rexit then exit then recall
 +
 +\\
 +
triggers/rprog.1420610949.txt.gz · Last modified: 2015/01/07 06:09 by vodur