Hi! I love these templates, but I noticed when using the character creator the eye popup doesn't work. It says that the cycle's expression is undefined. I thought maybe I was doing something wrong so I checked the original code and played through the character creator demo and had the same issue. I'm not super great with code so I can't figure out how to fix it. Any help would be super appreciated.
Viewing post in 100% Good Twine Sugarcube Templates comments
Ah dang, I forgot to re-set the temporary variable in that popup. That's my bad!
Essentially, instead of listing all options with <<option "the-option">>, I used <<optionfrom "_variable">>, but forgot to set the variable before that.
If you check the CC-Eye passage (which is almost the same passage but not in a popup), there is this line at the start:
<<set _eyecolours = ["white", "grey", "golden", "green", "blue", "maroon", "brown", "black", "red", "pink", "purple", "lime", "seafoam", "cream"]>>
(it's the line that make the cycle work!)
BTW: if you are looking for explanation on how the Cycle macro works, check out this guide!