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