Fresh Start is a Twine 2.x game built using the SugarCube 2.x story format, this story format comes with a built in Debugging feature.
You have three basic choices when it comes to cheating/modifying a game built using these tools.
1. Open the HTML file within a text editor and edit the code directly:
This can be difficult because the contents of each passage has been HTML escaped, which can make finding the correct code harder.
2. Import the HTML file into the Twine 2 application and create you're own personalised version.
You can use either the web-browser based release or the install-able release to do this, once you have modified the game as you want you simply use the
Publish to File option to create your new version of the HTML file.
3. Use your web-browser's built-in Developer Tools Console to access the story format's debug object.
The Javascript object containing the current values of all know variables at the time the current active passage was rendered can be accessed in the console using:
Code:
SugarCube.State.variables
Each variable is a property on the object returned by the above code, you can use code like the following to either see the current value of the related variable or change it's value:
Code:
SugarCube.State.variables["money"]
SugarCube.State.variables["money"] = 1000
NOTE: Changes to a variable's value will not take effect until after the next passage transition, which basically means you wont see an effect until after you select a link within the current active passage.
eg. If you open the game and view the first passage then use the Console to execute the money changing example show above, the amount of money shown in the side bar won't change until you click on a link like the
Play Game (one which causes a passage transition to the next passage).