Hi,
I need to re-create a simple script I had in zmud for dealing with doors/gates/archways/trapdoors, etc.
When I'm moving via the keypad, (so command history is out) I want to always have the last direction I moved stored in a variable. (This is *not* coming from a speedwalk.)
Then when I trigger on text such as "* is closed", where * is a door/gate/arch/trapdoor I can issue a command to "open varLastDir". If I next get a message saying "* is locked." I can resend that variable to "bash varLastDir".
I'm open to other approaches for this problem, but there are other uses which having last direction stored for is handy, so I'd really like to figure out how to do that.
Thanks!
I need to re-create a simple script I had in zmud for dealing with doors/gates/archways/trapdoors, etc.
When I'm moving via the keypad, (so command history is out) I want to always have the last direction I moved stored in a variable. (This is *not* coming from a speedwalk.)
Then when I trigger on text such as "* is closed", where * is a door/gate/arch/trapdoor I can issue a command to "open varLastDir". If I next get a message saying "* is locked." I can resend that variable to "bash varLastDir".
I'm open to other approaches for this problem, but there are other uses which having last direction stored for is handy, so I'd really like to figure out how to do that.
Thanks!