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
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Tue Jan 07, 2003 8:34 pm   

expand aliases
 
Is there a way to expand an alias if it is the second or third word in the command line?

Example:
give gold meg
and it expands to :
give gold megamog75
and sends that to the mud?

megamog75
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jan 07, 2003 9:06 pm   
 
#ONINPUT

LightBulb
Senior Member
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Tue Jan 07, 2003 9:35 pm   
 
I had to play with it but it works good.

seems the word you want to expand has to have either a $ after it or another wild card

example: give gold meg
Trigger: #trigger {(*) meg$} {megamog}
expands to: give gold megamog

however if you needed one that does one of this: tell meg hi
or : give meg hi five
trigger: #trigger {(*) meg (*)} {%1 megamog %2}
expands correctly but if you dont put something at the end of meg it wont expand?
Is this right?


megamog75
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jan 08, 2003 4:42 am   
 
For a better solution, just put megamog in your #TAB list.
#TAB megamog
Then, whenever you're feeling lazy, you can type give gold meg You won't have to worry about looping. You won't have problems when you try to "kill meg" (the megamonster mob) that you'll end up attacking megamog (your suddenly ex-friend). You'll have total control over whether "meg" turns into megamog or not.

LightBulb
Senior Member
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