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
Erasmus
Wanderer


Joined: 04 Aug 2004
Posts: 82
Location: Philadelphia

PostPosted: Wed Dec 29, 2004 6:13 am   

Limiting Selection Range in a %pick Function
 
I'm trying to write a %pick function that offers several choices, but the mud only allows a max of 4 arguements at one time to be entered for the command I'm trying to do (i am never sure which 4 they will be). Is there any way to limit the pick box to allow the user to select no more than x number of choices? My code is:

#SEND add %replace(%pick("p:Pick Items to Add","o:?","1","2","3","4","5","6","7","8","9","10"),|," ")

I know o:1 limits the pick box to one selection only, and I've tried o:2 but that just turns the arguement into one of the pickable options. Oh, just to clarify "add" is a command from my mud I am not trying to use the "#ADD" command in Zmud.
_________________
Erasmus
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Thu Dec 30, 2004 7:06 am   
 
You could set the trigger to do something like this:

Make the trigger to set a var to the intire list you want
then have the trigger set the pick to %item(@PICKORDER,1) through %item(@PICKORDER,4)
_________________
megamog75 Smile
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere
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