violet.rain
New Member
- Aug 19, 2020
- 10
- 25
- 137
What it does is that it pulls out the list of all variables you can edit in the game. After that, to change stuff, you actually have to change those values. Let's say you type inI ask because it does nothing for me.
JavaScript:
SugarCube.state.active.variables
The other option (and my preferred way, as it's much faster), is to just use the console command. You can instead type in
JavaScript:
SugarCube.state.active.variables.money = 5000
JavaScript:
SugarCube.state.active.variables.
One thing to note, if you want to change something that's not numerical in value - your name, for example - make sure to wrap the text in quotes. This is for other Twine games, because I don't think this one allows you to edit any String variables, but if there was a game where you could change your name, you would have to type stuff like
JavaScript:
SugarCube.state.active.variables.playerName = 'James'