I'm really new to Twine, and I'm looking for documentation or advice on how to add stats using Snowman.
I basically want to be able to add or remove a stat from the player, then run a check (in later steps) with outcomes dependent on the level of the stat.
Does that make sense?
Comments
I haven't used snowman, but those are the terms you're looking for.
- setting and unsetting variables. $str = 10
- conditional statements: if x eq true, do blah blah blah
The documentation mentions that code in <% blocks %> has access to the s variable which is used to store your story's variables like so: ... You can show the current value of a variable using a <%= block %> like so: ... and you can conditionally show text by checking the current value of a variable like so:
* Note that Javascript uses a single equal sign = to assign a value to a variable, where as a double (or triple) equal sign == (or ===) is used to compare two values.