|
admonius Newbie
Joined: 12 Jul 2001 Posts: 9 Location: USA
|
Posted: Wed Dec 01, 2004 6:20 am
#PICK and lists |
I am using the pick command to select a string of spells I would like to recast multiple times. The problem I'm having is getting the spells to target the tank alias, and instead of choosing each time the sames spells over and over, if possible to save the list selected to the F12 key.
Here is what I have so far.....
#VAR protlist {madr|midr|maar|miar|mafr|mifr|mair|maer|mier|maxr|mixr|macr|micr|mapoir|mipoir|masr|mahr|mihr|mapr|mipr|pfh|ad|iw} {_nodef} "Guilds|Abjurer"
#BUTTON 11 {Prot List} {#VAR plist "p:Select an action|@protlist";#PICK {@plist}} {} {} {} {} {} {} {} {} {Pos} {1} {396} {12} {} {} {} "Guilds|Abjurer|Timers" {} {} {}
Not sure if this enough to help, but been stuck for a few days now on this....
Admonius |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Dec 01, 2004 9:56 am |
First you need to store the selected list, to do this I changed #PICK to %pick. Second you need a way to tell whether that list targets you or the tank, this is handled by the addition of TANK to your protlist. Then you need to make a variable that holds your tanks name.
#KEY F12 {#FORALL @plist {#IF (%i="TANK") {#NOOP} {#EXEC {%i %if(%item(@plist,1)="TANK",@tank)}}}}
#VAR protlist {TANK|madr|midr|maar|miar|mafr|mifr|mair|maer|mier|maxr|mixr|macr|micr|mapoir|mipoir|masr|mahr|mihr|mapr|mipr|pfh|ad|iw} {_nodef} "Guilds|Abjurer"
#BUTTON 11 {Prot List} {#VAR plist "p:Select an action|@protlist";#VAR plist {%pick(@plist)}} {} {} {} {} {} {} {} {} {Pos} {1} {396} {12} {} {} {} "Guilds|Abjurer|Timers" {} {} {} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|