|
relic Newbie
Joined: 07 Jan 2002 Posts: 8 Location: USA
|
Posted: 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. |
|
|
|
Zener Wanderer
Joined: 31 May 2004 Posts: 54 Location: USA
|
Posted: 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.
|
|
|
|
Xphere Beginner
Joined: 08 Jun 2004 Posts: 26 Location: USA
|
Posted: 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 |
|
|
|
relic Newbie
Joined: 07 Jan 2002 Posts: 8 Location: USA
|
Posted: Tue Jun 08, 2004 9:22 pm |
No go, doesn't expand the variable :(
Haven't found a solution in the helpfiles. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jun 08, 2004 10:22 pm |
#AL SW_@{Area}_@{Mob} {<@NewSpeedwalk>}
|
|
|
|
relic Newbie
Joined: 07 Jan 2002 Posts: 8 Location: USA
|
Posted: Tue Jun 08, 2004 11:19 pm |
Thanks! It's working perfectly now.
|
|
|
|
|
|