Door Opening

From RoDpedia
Revision as of 05:03, 7 April 2010 by Dunec (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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}}