 |
Erasmus Wanderer
Joined: 04 Aug 2004 Posts: 82 Location: Philadelphia
|
Posted: 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 |
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: 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
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 |
|
|
 |
|
|
|
|
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
|
|