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


Joined: 23 Feb 2004
Posts: 5

PostPosted: Tue Mar 02, 2004 12:33 am   

Multi-'state' Macros
 
A simple question:
Is it possible to assign two or more 'states' to a single macro key?
For example, I have an alias called SS that wields two swords. When I hit the f12 key, I would double slash. I also have an alias called AA that would equip two spears. What I would like to happen here is to hit the same F12 key, and have it do something different, like double jab. Is it possible to do this, and if so, then HOW so?
Thanks in advance you Zmud gurus!Very Happy
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Tue Mar 02, 2004 12:45 am   
 
Set the value of the macro to a variable. Something like @f12action. When your alias switches weapons, have it set the value of the macro.

Alias
SS
Value
wield sword1
wield sword2
#var f12action "double slash"

Do the same as above for the spears. That should work for you.
Reply with quote
element
Newbie


Joined: 23 Feb 2004
Posts: 5

PostPosted: Tue Mar 02, 2004 12:55 am   
 
Ahh, that just might work. The only problem I am having is:
I am using F1-F12 keys for my sword attacks, and I would like the same amount of F keys for my spear attacks!
How would this be accomplished? Thanks for your help!
Reply with quote
element
Newbie


Joined: 23 Feb 2004
Posts: 5

PostPosted: Tue Mar 02, 2004 1:10 am   
 
I guess I should have been more specific in my first post. I apologize.
What I need is to change the F1-F12 keys to ALL do something different when I type a certain alias. I think the sheer spam that would happen if I indeed did tie every key to a variable would just be unbearable! Perhaps there is a cleaner way?
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Tue Mar 02, 2004 3:25 am   
 
If you tie the key to a variable, it will only execute what is in that variable. Hmm... try this.

Alias
swords

Value
wield sword1
wield sword2
#var swing "slash"

Alias
spears

Value
wield spear1
wield spear2
#var swing "stab"

Then just have the buttons' value be something to the effect of:

f12
Value
double @swing
Reply with quote
element
Newbie


Joined: 23 Feb 2004
Posts: 5

PostPosted: Tue Mar 02, 2004 3:41 am   
 
Hmm, I tried that, but halfway through I decided it was simply too much, and would most likely take too long to properly set up, and even then, would not be worth the hassel of altering as my attack tactics change.
What I had to do was make about 220 little variables. I then assigned 2-10 of them to each macro. Seeing that I have 12 F keys that I will need flipped over, it isnt practical.
*sigh* Guess I am resigned to using the shift-fkeys. Was trying to avoid that.
Anyhow, your help was greatly appreciated, and I even used some of it for some other non-combat macros.
Thanks!
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Mar 02, 2004 6:26 am   
 
I believe this will work or something along these lines *not able to test*
Make your f-key macros for swords give it an IDname IE swords1....2...3 etc and put it inside of a class then disable the class and make new f-key macros for spears with IDs of spears1...2..3. etc then just disable and enable classes as you need them
Reply with quote
Zinjin
Newbie


Joined: 02 Mar 2004
Posts: 6

PostPosted: Tue Mar 02, 2004 6:30 am   
 
Heh!
I was trying to figure out the same thing.
The two seperate class response does indeed work.
Thanks!
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