Page 1 of 1

INPUT List box with Select & Value options?

Posted: Tue Dec 05, 2017 8:40 pm
by ziltmilt
Can you indicate Select and Value options in a single List entry? Tonight, I tried this:

Code: Select all

INPUT("dice|1,2,3,4,5,6,7,8,9,10|Select number of dice to roll for each attacker (normally is 1)|LIST|SELECT=2|VALUE=STRING"
And, the value of my listbox was set to the 3rd option ('3'). If I switch the position of VALUE and SELECT, the default values aren't properly referenced; Maptool just uses the first entry as default.

It's as if I can't have both options for Select and Value specified in a single control, but that can't be right. Any idea what's going on?

Re: INPUT List box with Select & Value options?

Posted: Tue Dec 05, 2017 9:39 pm
by aliasmask
There's no | in between the options and select starts at 0. So, if you want the 2nd position, then put select=1.

Re: INPUT List box with Select & Value options?

Posted: Wed Dec 06, 2017 6:24 am
by ziltmilt
Awesome!! Thanks again for the help!