|
jerowyn Newbie
Joined: 28 Mar 2005 Posts: 3
|
Posted: Mon Mar 28, 2005 12:05 pm
Aliases/variables |
Greetings,
I have recently upgraded from Gmud to Zmud, and ... the Power. Amazing. I love it. I'm having great fun with all the advanced features. I have read through all the tutorials, and have figured out most things that I need. There is one question that has stumped me. You might view me as a newbie, and if so, flame away, but I do have a question.
I want a trigger that enables and disables a set of aliases (that would be regular commands when the set of aliases are disabled.)
For example: when zmud recieves the text
"You enter the Shadows,"
I want "n" substitued for "sneak north" , "e" for "sneak east" (et cetera) in the command line.
when the text recieved is "You leave the shadows" I want the regular command line "n", "e" (and so forth) sent to the mud.
I have tried different things, but just cannot seem to find the command or function to do this.
any help would be greatly appreciated.
~Jerowyn. |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Mon Mar 28, 2005 2:50 pm |
don't know for sure if this will help, but under System/Directions there's the keys commands for north south etc.
Maybe if under System you make Directions_Sneaking and have it with the sneak?
For the trigger:
#TRIGGER {You enter the Shadows.} {#T- Directions;#T+ Directions_Sneaking}
#TRIGGER {You leave the shadows} {#T+ Directions;#T- Directions_Sneaking}
#CLASS {System|Directions_Sneaking}
#DIR ns {sneak n|sneak north} n
#DIR sn {sneak s|sneak south} s
#DIR we {sneak w|sneak west} w
#DIR ew {sneak e|sneak east} e
#DIR ud {sneak u|sneak up} u
#DIR du {sneak d|sneak down} d
#CLASS 0
That SHOULD work....untested |
|
_________________
|
|
|
|
jerowyn Newbie
Joined: 28 Mar 2005 Posts: 3
|
Posted: Mon Mar 28, 2005 11:11 pm |
Thanks for your help, I'll give it a whirl
~Jerowyn
EDIT: I got it to work: as well as the #DIR commands, I created aliases in the Directions_Sneaking directory.
Thanks! |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Tue Mar 29, 2005 1:15 pm |
Didn't the #DIR commands work as is?
sorry, thought they woulda :( |
|
_________________
|
|
|
|
jerowyn Newbie
Joined: 28 Mar 2005 Posts: 3
|
Posted: Wed Mar 30, 2005 3:17 am |
It's all good, I'm slipping in and out of the shadows now with no trouble :)
|
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Wed Mar 30, 2005 1:41 pm |
btw as an after thought (if ya didn't already think of it) anchor them with the ^ at the beginning and the $ at the end. (dont forget to put the ending puncuation for when u leave the shadows, a period or whatever, before the $
|
|
_________________
|
|
|
|
|
|