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
relic
Newbie


Joined: 07 Jan 2002
Posts: 8
Location: USA

PostPosted: Tue Jun 08, 2004 7:23 pm   

Way to expand a variable in an alias declaration?
 
So I've got this variable -
NewSpeedwalk
and I want to add it to this alias -
#alias SW_@Area_@Mob {@NewSpeedwalk}

Is there a way to have the alias be the expanded value of @NewSpeedwalk? I've tried %eval and %expand...

Or is there another way to get a variable's contents in an alias, but not the variable name?

#alias %expand(SW_@Area_@Mob) {%prompt ("","Test")}
hits the same problem, doesn't "expand" the %prompt.
Reply with quote
Zener
Wanderer


Joined: 31 May 2004
Posts: 54
Location: USA

PostPosted: Tue Jun 08, 2004 8:31 pm   
 
I believe I saw something close to what you're describing in the zMUD Help. I can't seem to find it right now, but you may have better luck, use Search tool.
Reply with quote
Xphere
Beginner


Joined: 08 Jun 2004
Posts: 26
Location: USA

PostPosted: Tue Jun 08, 2004 8:37 pm   
 
have you tried

#alias SW_@Area_@Mob {"<"<">@NewSpeedwalk>}

not sure if that would work.... dont have time to test it
Reply with quote
relic
Newbie


Joined: 07 Jan 2002
Posts: 8
Location: USA

PostPosted: Tue Jun 08, 2004 9:22 pm   
 
No go, doesn't expand the variable :(

Haven't found a solution in the helpfiles.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jun 08, 2004 10:22 pm   
 
#AL SW_@{Area}_@{Mob} {<@NewSpeedwalk>}
Reply with quote
relic
Newbie


Joined: 07 Jan 2002
Posts: 8
Location: USA

PostPosted: Tue Jun 08, 2004 11:19 pm   
 
Thanks! It's working perfectly now.
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