Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Variable choices

Hi, I'm using Sugarcane 2 and I was wondering if there was a way to let the player choose a variable but by clicking text that changes each time instead of by typing it in. For example, if the question was to choose the player's name, they would click the text and it would cycle through 'Fred' 'George' 'Bob' etc; and then when they moved to a new passage it would keep whatever name they left it on.
I have seen many games do this but have not worked out how; I have checked the documentation but to no avail. Please help! I am not very experienced with raw code but will pick it up if necessary.

Comments

  • There is, as far as I am aware, no such version of Sugarcane. I'm going to assume for now that you're confusing Sugarcane with SugarCube—especially since this is in the Help! with [Twine] 2.0 section. Since you've, probably, already made one mistake here, are you actually using SugarCube v2? I ask because Twine 2 ships with SugarCube v1, so unless you've installed SugarCube v2 separately….

    Anyway, assuming for now that you are indeed using SugarCube v2. You could download the <<cyclinglink>> macro from its website (under: Downloads > Add-ons), which should do exactly what you want—be sure to read the accompanying README.
Sign In or Register to comment.