triggers:rprog
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| triggers:rprog [2015/01/07 06:32] – vodur | triggers:rprog [2026/10/25 07:27] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== RoomProgs ====== | ||
| - | Room progs are attached in redit with addrprog command. | ||
| - | |||
| - | Room progs are always lua scripts. | ||
| - | |||
| - | ^Argument ^Type ^Note | | ||
| - | |ch1 |[[: | ||
| - | |ch2 |[[: | ||
| - | |obj1 |[[: | ||
| - | |obj2 |[[: | ||
| - | |text1 |string |see table | | ||
| - | |trigger |string |see table | | ||
| - | |trigtype |string |see table | | ||
| - | |||
| - | The actual room to which the script is attached can be referenced in the script through ' | ||
| - | |||
| - | ^trigtype ^ch1 ^ch2 ^obj1 ^obj2 ^text1 ^trigger ^Phrase type ^Description | | ||
| - | |enter |enterer |none |none |none |none |none |number(%chance) |Fires when player enters the room | | ||
| - | |%%*%%exit |exiter |none |none |none |none |none |number(%chance) |Fires when player exits the room | | ||
| - | |%%*%%move |enterer |none |none |none |none |direction name |string(direction name or " | ||
| - | |%%*%%open |opener |none |none |none |none |direction name |string(direction name or " | ||
| - | |%%*%%close |closer |none |none |none |none |direction name |string(direction name or " | ||
| - | |%%*%%unlock |unlocker |none |none |none |none |direction name |string(direction name or " | ||
| - | |%%*%%lock |locker |none |none |none |none |direction name |string(direction name or " | ||
| - | |[[: | ||
| - | |%%*%%look |looker |none |none |none |none |none |number(%chance) |Fires when player would see the room desc. | | ||
| - | |try |tryer |none |none |none |none |none |string(phrase or %%*%%) |Fires when player in room used try command. | | ||
| - | |connect |connecter |none |none |none |none |none |number(%chance) |Fires when player connects in room. Does not fire on reconnect. | | ||
| - | |%%*%%command |commander |none |none |none |command argument |command name |string(command name) |Fires when player uses the given command. | | ||
| - | |||
| - | |(%%*%%)If trigger fires, command is prevented from going through unless ' | ||
| - | |||
| - | When recalling, order of trigger processing is: rexit then exit then recall | ||
