|
gukk Beginner
Joined: 18 Aug 2009 Posts: 14
|
Posted: 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? |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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, "}")} |
|
|
|
|
|
|
|
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
|
|