Dear reader I am trying to make my first twine game with sugarcube settings. When trying to play the game I get the following error: " Error: <<=>>: bad evaluation: ‘constants’ is not defined <<= constants.version>>"
This is the code which calls the version
version <<= constants.version>>
This is what the passage “constants” looks like:
window.constants object for you before your code tries to display it.
<<script>> macros like this:
Also, because you’re using a non-story variable to store data, it won’t get saved in the game’s history. If you make any changes to it during the game then those changes will get reset the next time the person plays the game, and won’t be undone by hitting the “back” button or loading a saved game. (That shouldn’t be a problem if your constants really are constant.)
Hope that helps!
Will test it! Will also read the article! Thanks ! will report back if it works.
Worked! Such an easy solution, will read the article and I guess the tutorial again ! Thank you so much!