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


Joined: 16 Jun 2006
Posts: 3

PostPosted: Fri Jun 16, 2006 3:42 am   

Displaying Macros
 
Despite my best efforts, I haven't been able to figure out how to make an alias that will display what all my macros are currently set to. Can anyone give me some advice on how to do this?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jun 16, 2006 9:33 am   
 
Looking the page http://www.zuggsoft.com/page.php?file=zmud/comserve.htm there is a way to get the information you want.
Something roughly along the lines of:
#LOOP %sess.NumMacros {#VAR Macro {%sess.MacroNum(%eval(%i-1))};#IF (@Macro.Enabled=1) {#SHOW @Macro.Key = @Macro.Value};#VAR Macro {}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Telkar
Newbie


Joined: 16 Jun 2006
Posts: 3

PostPosted: Sun Jun 18, 2006 2:07 am   
 
Maybe I wasn't clear on what I wanted, cause that looks way too complex..

Code:
<{100%hit 100%mana 89%mv 14159tnl 3733gold night no opponent:none}> alias
Your current aliases are:
8: wear plank
5: wear sword
6: wear shield
7: dual blade
kl: dirt trea
kk: murder trea
1: quaff purple
kj: bod trea
3: sideswipe
4: wear thin

<{100%hit 100%mana 89%mv 14159tnl 3733gold night no opponent:none}> mi


See, in my example, I type 'alias' and it lists out my macro settings.
If it were a variable I'd just do '#SHOW @blargo' Is there something like that for macros? '#SHOW &MACRO' or something? Thanks for the help!
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sun Jun 18, 2006 2:47 am   
 
thats what that does i believe.

#ALIAS listmacros {#LOOP %sess.NumMacros {#VAR Macro {%sess.MacroNum(%eval(%i-1))};#IF (@Macro.Enabled=1) {#SHOW @Macro.Key = @Macro.Value};#VAR Macro {}}}

then when you type listmacros it should list your sessions macros.
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Sun Jun 18, 2006 4:37 pm   
 
why don't you just type #key in?
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sun Jun 18, 2006 8:03 pm   
 
you could if he wants a list of every macro in the overall setup. The other way only shows enabled macros i believe.
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Sun Jun 18, 2006 10:20 pm   
 
I think what he wants is a trigger set that records what his current mud based aliases are into a variable so he can then spit out the results from the variable rather than having to issue the mud command alias or possibly so he can use the variable to tell others on the mud what his mud based aliases are.

If I'm right get back to us if not then your answer has already been provided.
_________________
Taz :)
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