INPUT List box with Select & Value options?

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
ziltmilt
Dragon
Posts: 331
Joined: Sun Apr 29, 2007 9:28 pm
Contact:

INPUT List box with Select & Value options?

Post 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?

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: INPUT List box with Select & Value options?

Post 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.

ziltmilt
Dragon
Posts: 331
Joined: Sun Apr 29, 2007 9:28 pm
Contact:

Re: INPUT List box with Select & Value options?

Post by ziltmilt »

Awesome!! Thanks again for the help!

Post Reply

Return to “Macros”