RPTools.net

Discussion and Support

Skip to content

It is currently Tue Dec 12, 2017 6:49 pm 






Reply to topic  [ 3 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Dragon
 
Joined: Sun Apr 29, 2007 8:28 pm
Posts: 342
 Post subject: INPUT List box with Select & Value options?
PostPosted: Tue Dec 05, 2017 8:40 pm 
Can you indicate Select and Value options in a single List entry? Tonight, I tried this:

Code:
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?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7964
Location: Bay Area
 Post subject: Re: INPUT List box with Select & Value options?
PostPosted: Tue Dec 05, 2017 9:39 pm 
There's no | in between the options and select starts at 0. So, if you want the 2nd position, then put select=1.

_________________
Downloads:


Top
 Profile  
 
 Offline
Dragon
 
Joined: Sun Apr 29, 2007 8:28 pm
Posts: 342
 Post subject: Re: INPUT List box with Select & Value options?
PostPosted: Wed Dec 06, 2017 6:24 am 
Awesome!! Thanks again for the help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 3 posts ] 

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 post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: TheIneffableCheese and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman