herbster69 Newbie
Joined: 20 Nov 2009 Posts: 8
|
Posted: 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. |
|