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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
gukk
Beginner


Joined: 18 Aug 2009
Posts: 14

PostPosted: Mon May 12, 2014 3:28 am   

help with alias script....
 
Im trying to make this alias:

#alias gg {#alias g%1 {glance %2};#alias f%1 {cast 'heal' %2}}

so to type this:

gg r rolan
would give
gr glance rolan
fr cas 'heal' rolan


%1 Works, %2 doesnt work...
it Works in zmud, why not here?
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Mon May 12, 2014 4:37 pm   
 
You could probably work around the expanding problem with local variables if you want to experiment with that, but your best bet is probably to build your alias command as a string and execute it:
Code:
#alias gg {#execute %concat("#alias g", %1, " {glance ", %2, "}");#execute %concat("#alias f", %1, " {cast 'heal' ", %2, "}")}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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