SugarCube.state.active.variables
eg.
SugarCube.state.active.variables["money"] = 100
SugarCube.State.variables
eg.
SugarCube.State.variables["money"] = 100
u just did what i was gonna do .... good job :biggrin:@quill89 It would help if you state which Twine based game you are trying to use that Chrome web-browser plugin on, so that whoever answers your question will be able to determine:
a. If the game was built using the SugarCube story format.
b. Which series (1.x or 2.x) and which version of SugarCube was used.
c. If the game is doing something with it's story variables that that plugin doesn't support.
d. If the game is intercepting the relevant hotkeys used by the plugin
You can use the Console built into the Web Developer Tools that come with modern web-browsers to manually edit the values of the story variables for the current passage in any SugarCube based game.
If the game was built using the SugarCube 1.x series then the console command looks like:
and if built using the SugarCube 2.x series:Code:SugarCube.state.active.variables eg. SugarCube.state.active.variables["money"] = 100
You can generally tell which series of SugarCube was used by running the game and looking at the style of the left side bar, if the side bar contains a button in the top right corner that can be used to "stow" the side bar then it is the 2.x series.Code:SugarCube.State.variables eg. SugarCube.State.variables["money"] = 100
You can also open the game's html file in a Text Editor and look for the SugarCube version number in the comment within the head element of the HTML file.
I have some background in Twine based stories/games.u just did what i was gonna do .... good job :biggrin:
I have games on both versions of Sugarcube, and the extension doesn't work on any of them. I've used twinehacker as well (same thing I'm guessing). Pressing Ctrl+Shift+H just stopped working one day.@quill89 It would help if you state which Twine based game you are trying to use that Chrome web-browser plugin on, so that whoever answers your question will be able to determine:
a. If the game was built using the SugarCube story format.
b. Which series (1.x or 2.x) and which version of SugarCube was used.
c. If the game is doing something with it's story variables that that plugin doesn't support.
d. If the game is intercepting the relevant hotkeys used by the plugin
You can use the Console built into the Web Developer Tools that come with modern web-browsers to manually edit the values of the story variables for the current passage in any SugarCube based game.
If the game was built using the SugarCube 1.x series then the console command looks like:
and if built using the SugarCube 2.x series:Code:SugarCube.state.active.variables eg. SugarCube.state.active.variables["money"] = 100
You can generally tell which series of SugarCube was used by running the game and looking at the style of the left side bar, if the side bar contains a button in the top right corner that can be used to "stow" the side bar then it is the 2.x series.Code:SugarCube.State.variables eg. SugarCube.State.variables["money"] = 100
You can also open the game's html file in a Text Editor and look for the SugarCube version number in the comment within the head element of the HTML file.
Yes, but I've kinda given up on fixing it, sorry.Still having this problem?