Door Opening: Difference between revisions
Jump to navigation
Jump to search
m Created page with 'This trigger fires when you run into a closed door. The big ifcheck that makes up the first half just checks that the last command you entered was a direction so that it won't sp…' |
No edit summary |
||
| Line 4: | Line 4: | ||
[[Category:Tokai]] | [[Category:Tokai]] | ||
[[Category:Triggers]] | [[Category:Triggers]] | ||
[[Category:Scripts]] | |||
Latest revision as of 05:45, 6 July 2023
This trigger fires when you run into a closed door. The big ifcheck that makes up the first half just checks that the last command you entered was a direction so that it won't spam you if you just examined the door or something. If the check passes, you open that direction and move through.
#TRIGGER {The (%w) is closed} {#IF (%lastcom = "nw")OR(%lastcom = "n")OR(%lastcom = "ne")OR(%lastcom = "e")OR(%lastcom = "se")OR(%lastcom = "s")OR(%lastcom = "sw")OR(%lastcom = "w")OR(%lastcom = "u")OR(%lastcom = "d") {@lastcom = %lastcom;open @lastcom;@lastcom}}