I have a small question that I can't seem to find an answer to by searching the forum or checking the documentation.
I'm using Twine 2.011 with Sugarcube 2.12.1 and I want to have a cyclinglink that shows different values from what it stores. For exmaple, when asking the player whether they are male or female I have the following code
You are <<cyclinglink '$gender' "a Man" " a Woman" "Different">>
With those words as the links, I'd like the ability to store the values "male", "female", or "other" inside $gender instead of what is displayed. I would prefer to keep a cyclinglink as that is what I use throughout the rest of the project and CSS is styled after it. What would be the best way to go about this?
Comments
You may use a <<link>> macro, which would check and reset the value, to gate all exists from the passage containing that <<link>>.
For example, let's assume that you have a single exit link like some place else. The patch up <<link>> could look like the following: If you have multiple exit links, then you could either replicate that for every one or make a widget out of the contents and then call that within each <<link>>.