User Tools

Site Tools


checkbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
checkbox [2014/09/23 02:14]
ateyourlembas Details for how to get values back out of a list
checkbox [2017/10/10 00:39] (current)
Line 30: Line 30:
 You'll notice this looks a little different from the usual variable. That's because the values chosen by the reader are stored in the order you provided them in a "​list."​ The way to get stuff back out of a list is by asking for it by its position. In this case: You'll notice this looks a little different from the usual variable. That's because the values chosen by the reader are stored in the order you provided them in a "​list."​ The way to get stuff back out of a list is by asking for it by its position. In this case:
  
-$choice[0] is "​shoes"​ +    ​$choice[0] is "​shoes"​ 
-$choice[1] is "​shirt"​+    $choice[1] is "​shirt"​
  
 Note that the position starts at 0. Note that the position starts at 0.
Line 54: Line 54:
  
  
-As of version 1.4.2, there is no option to mark a checkbox as selected before your reader makes their choice.+As of Twine version 1.4.2, there is no native ​option to mark a checkbox as selected before your reader makes their choice
 + 
 +But if you're using the SugarCube story format, there are additional checkbox options. You can find [[http://​www.motoslave.net/​sugarcube/​docs/#​macros-checkbox|SugarCube checkbox documentation here]].
  
 Hope this helps. If you have questions, please visit the [[http://​twinery.org/​forum/​index.php/​board,​2.0.html|Twinery forum]]. Hope this helps. If you have questions, please visit the [[http://​twinery.org/​forum/​index.php/​board,​2.0.html|Twinery forum]].
checkbox.1411438468.txt.gz · Last modified: 2017/10/10 00:37 (external edit)