I am using Twine 2.x with Sugarcube 2.11.0 and the numberpool macro.
The problem is that after a going through a few of the entries it stops updating the span element's contents simply leaving it blank. The problem is exacerbated when clicking through the numberpool too quickly. It does this all without throwing an error.
The array in question:
and the $player object:
Which is referenced in the following code:
The problem is that after a going through a few of the entries it stops updating the span element's contents simply leaving it blank. The problem is exacerbated when clicking through the numberpool too quickly. It does this all without throwing an error.
The array in question:
<<set $eyeColors to [ "Blue", "Brown", "Gray", "Green", "Hazel", "Red", "Violet" ]>>
and the $player object:
<<set $player = { eyeColor : 1 } >>
Which is referenced in the following code:
<tr> <td> Eye Color </td> <td> <<numberpool "$eyeColors.length">> <<numberbox "$player.eyeColor" $player.eyeColor 1 $eyeColors.length>><span id="eye-color"><<print $eyeColors[$player.eyeColor]>></span> <<onchange>> <<replace "#eye-color">><<print $eyeColors[$player.eyeColor]>><</replace>> <</numberpool>> </td> </tr>