- Jun 4, 2018
- 10
- 36
This is a fairly simple script for Twine/SugarCube games that let you modify and freeze game variables.
I used it for a while with a few rewrites, and now it looks more or less presentable to release into the wild.
On example of Degrees of Lewdity table I use
Features
Beta V2 version with new features/better compat: Changelog post
Usage
I used it for a while with a few rewrites, and now it looks more or less presentable to release into the wild.
On example of Degrees of Lewdity table I use
Features
- Lookup and editing of the Twine variables.
- Freeze the variable to prevent it from changing
- Additionally it's possible to freeze variable to only increase or decrease if it's a numeric value.
- Prefixing value with
_
will enable lookup in thetemporary
variable storage (in case primary storage have variables starting from_
- use$
prefix to specify it's a primary storage). - Supported types are: Numbers, text, dates, booleans.
- Ability to save your table into local storage so you don't have to re-insert them on new sessions.
- Additionally lets you share the table data as JSON.
- When writing the variable names, lookup provides autocomplete and current value of the variables. Press tab to cycle through them.
- Minor UX: Using mouse wheel while hovering over the numeric value will increment/decrement it.
- Minor UX: When panel is minimized, it's still possible to toggle freeze state of the variables, and they will show their current value when hovered over.
- Uses Twine debug panel as a basis, and can break in some games due to lack of debug CSS or game author absolutely demolishing the general CSS that breaks the panel. I'll need to rewrite entire CSS part to make it work.
- Some games do weird obfuscation and rename
State.variables
, for example I've seen it being changed toState.__getUpperName__
, not much I can do about it other than add an exception lookup. - Finicky to launch, since you need to copy the script text, open console, and paste it here, and only then you get the panel. I may end up making it a userscript with wildcard loading rules, and then attempt to scan if it's a twine game, but I frankly don't want to do that, since it would cause it being loaded to every single website you visit, which is not good. I'm open to suggestions.
- If I will find such a case, I'll add a limited support to function types.
- May not work with old Twine versions that don't expose
State.variables
and instead useState.current.variables
. - I probably will add some extra controls such as how much history snapshots Twine will hold (as that heavily impacts performance), and back/forward buttons regardless if they are enabled by game settings.
- Copy the script text into your clipboard (Ctrl+C)
- Open the developer console in your browser (Ctrl+Shift+I for Chrome / Ctrl+Shift+J for Firefox)
- Paste your script into the console and press Enter.
- Done! Enjoy your cheating experience. If I am to cheat, I'm doing so with comfort.
You must be registered to see the links
Beta V2 version with new features/better compat: Changelog post
Usage
- Write variable path in the input field and press Enter/plus button to add it to watch list.
- Modify the variable from here. Not all variable types are supported.
- Click on snowflake button to freeze/unfreeze the value.
- Click the button near the snowflake to toggle between full freeze or to allow value to increase/decrease while frozen.
- Press red cross to delete value from watch list.
- Don't forget to press Save as to not loose your table on next session
- Press bug icon to toggle compact and full panel.
- While in compact mode, you still can toggle the freeze state of the variables.
- Cog button shows extra settings as well as sharing buttons.
- Press Copy button to copy current table into clipboard.
- Press Paste button and allow access to clipboard in order to load table from clipboard (it will use prompt if it won't get access)
- Press Clear button to wipe the watch list clean.
- Press Load button to load previously saved table from local storage.
You don't have permission to view the spoiler content.
Log in or register now.
Last edited: