I will be going over a SugarCube as an example but this should work just fine with any other 'engine'
Ok first let's talk about how to edit variables. You start off by opening the console (Press 'F12' while in browser)
This opens up a console where you can edit and read variables and much much more. if you are on a game running SugarCube you can just use
Then press 'ENTER' this will show all variables used by the game
If you aren't using a SugarCube game
Now you can edit a variable say
Or
Building on the second example lets see how we can keep the energy updated in a nice interval without freezing the game or causing us an issue.
We start of by typing this
Then you call:
If you ever want to stop it from running or change it you can run:
To this point I can say happy cheating.
Ok first let's talk about how to edit variables. You start off by opening the console (Press 'F12' while in browser)
This opens up a console where you can edit and read variables and much much more. if you are on a game running SugarCube you can just use
JavaScript:
SugarCube.State.variables
If you aren't using a SugarCube game
You don't have permission to view the spoiler content.
Log in or register now.
Now you can edit a variable say
JavaScript:
SugarCube.State.variables.player.energy=100
JavaScript:
SugarCube.State.variables.player.energy=SugarCube.State.variables.player.energyCap
You don't have permission to view the spoiler content.
Log in or register now.
We start of by typing this
JavaScript:
var keepUpdating = async function() {
SugarCube.State.variables.player.energy=SugarCube.State.variables.player.energyCap
// Every 1000 ms = 1 s
setTimeout(keepUpdating, 5000);
}
You don't have permission to view the spoiler content.
Log in or register now.
Then you call:
JavaScript:
keepUpdating()
JavaScript:
keepUpdating = undefined