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
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Wed Feb 18, 2004 1:43 pm   

#pick and stringlist
 
are there any way you can #pick to work with a stringlist?.

i have an alias where i add forms to a list using this command:

#Additem forms "%-1"

now i want a pick box to come up when i press a key (that part is easy Smile)
where i can select one item on the list and press enter (ok)
i have tried this:

#pick {p:Select an action:} {o:1} @formPick

where i created a second variable called formPick using this:

#forall @forms {#additem formPick {%i:use form preference with %i}}

but this dont work.

Any help?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Feb 18, 2004 3:14 pm   
 
Yes, you can use a stringlist, but you need to add the the p and o modifiers to the stringlist too:
#VAR formPick "p:Select and action:"
#ADDITEM formPick "o:1"
#FORALL @forms {#ADDITEM formPick {%i:use form preference with %i}}
#PICK @formPick
Reply with quote
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Wed Feb 18, 2004 3:42 pm   
 
ahh that was the way.

as allways thanks for the help
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