https://www.loom.com/share/b4abfa2a4fe24835834caf6d33a05b78
A Variable is something you give to the player to reference later. It could be narratively abstract, like whether or not a character listened to their mom’s advice, or narratively physical, like coins. Both are handled in the same way by your script.
give, take, set, and a variable label placed inside brackets. Example: [give: HEALTH 10]HEALTH would be a tracked variable if it is visible to the reader & if the reader is able to gain and/or lose HEALTH within an episode.Variables are given to a reader by using hard brackets with an opening operator, a named variable, and an optional quantity/string.
[give: ALICE] Increment inventory value ALICE by 1. Notice the 1 is implied.[give: ALICE 5] Increment inventory value ALICE by 5[take: ALICE] Decrement inventory value ALICE by 1[take: ALICE 5] Decrement inventory value ALICE by 5[set: ALICE 10] Set inventory value ALICE to 10, regardless what it was before[set: HOUSE "Stark"] Set your HOUSE to StarkQuantity can be a variable instead of constant number:
[give: ALICE LOW] Adds the variable LOW to the variable ALICE