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


Joined: 14 Apr 2003
Posts: 4
Location: Australia

PostPosted: Mon Apr 14, 2003 1:56 pm   

#LOOP
 
hello,

zMUD 6.4 and i have an alias to make macros for all of the F-KEYS:
#AL test {#LOO 1,12 {#KE F%i {target=%item(@target_list,%i)}}}

the value of the keys end up as:
target=%item(@target_list,%i)

but i want to get:
(for macro 1) target=%item(@target_list,1)
(for macro 2) target=%item(@target_list,2)

i can get it to work for making aliases
only when entered in the command bar, not an imported script:
#LOO 1,12 {#AL %i {target=%item(@target_list,%i)}}

but just not macros or buttons
does any of this make sense?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 14, 2003 3:40 pm   
 
Is there some reason not to just make them individually? After all, the only things you have to change are the function-key number and the number in %item. That shouldn't take more than a few seconds each at the command line and you could have them all finished in under a minute. If you do them in the editor, just copy the first one to the clipboard then paste it back in eleven times and make those two changes, it still shouldn't take more than a minute or two.
#KEY F1 {target = %item(@target_list, 1)}

LightBulb
Advanced Member
Reply with quote
lYPh
Newbie


Joined: 14 Apr 2003
Posts: 4
Location: Australia

PostPosted: Mon Apr 14, 2003 3:55 pm   
 
just wanted to know; thanks anyway
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