About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
herbster69
Newbie


Joined: 20 Nov 2009
Posts: 8

PostPosted: Mon Nov 30, 2009 3:09 pm   

Stringlists
 
Hi there,

I have a stringlist which contains the afflictions my character has (@afflictions). I have the following alias which is triggered when I either cure an ailment or get a new ailment:

#STW %expandlist( @afflictions, %char( 10))
#KEY F1 {c_%item( @afflictions, 1)}
#KEY F2 {c_%item( @afflictions, 2)}
#KEY F3 {c_%item( @afflictions, 3)}
#KEY F4 {c_%item( @afflictions, 4)}
#KEY F5 {c_%item( @afflictions, 5)}
#KEY F6 {c_%item( @afflictions, 6)}
#KEY F7 {c_%item( @afflictions, 7)}
#KEY F8 {c_%item( @afflictions, 8)}
#KEY F9 {c_%item( @afflictions, 9)}
#KEY F10 {c_%item( @afflictions, 10)}
#KEY F11 {c_%item( @afflictions, 11)}
#KEY F12 {c_%item( @afflictions, 12)}

Macros are created to run an alias which cures that particular ailment.

Ideally what I'd like to do is automatically assign the macros (F1-F12 and then SHIFT-F1 - SHIFT-F12 for a max of 24 ailments) instead of having a #KEY command for each one, and put the relevant Function key before the actual ailment in the status window.

E.G.

F1----Measles
F2----Chickenpox
F3----Diabetes
F4---- ......
F5----......
F6----......
F7----......
F8----......
F9----......
F10---......
F11---......
F12--- ......
S-F1--Flu
S-F2--Cold

I don't know a lot about programming, but if somebody could point me to the right commands and/or fuctions it would be greatly appreciated.

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