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


Joined: 12 Jul 2001
Posts: 9
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
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