Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
jerowyn
Newbie


Joined: 28 Mar 2005
Posts: 3

PostPosted: 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.
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: 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
_________________
Reply with quote
jerowyn
Newbie


Joined: 28 Mar 2005
Posts: 3

PostPosted: 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!
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Tue Mar 29, 2005 1:15 pm   
 
Didn't the #DIR commands work as is?
sorry, thought they woulda :(
_________________
Reply with quote
jerowyn
Newbie


Joined: 28 Mar 2005
Posts: 3

PostPosted: Wed Mar 30, 2005 3:17 am   
 
It's all good, I'm slipping in and out of the shadows now with no trouble :)
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: 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 $
_________________
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net