Twine Dynamic Commands (Patreon)
Published:
2026-06-24 12:52:46
Imported:
2026-11
Content
More than a few people have asked me about the dynamic commands option. It's not intuitive, but it's pretty simple.
All you need to do is enter a sugarcube Macro to do the thing you want to do. A common one might be:
<<run console.log($player)>>
then open your browser console and you'll see a list of all the properties of your player. Then it's simply a matter of picking the variable you want and setting it's value. IE:
<<set $player.money += 100>>
or
<<set $player.body.hips = 6>>
Not all values can be directly set, some are calculations. But 90% of what you'll want to do can be done with the above steps