Repository navigation
Manipulating read count or "simulating" choices? #983
|
I will preface this by saying I do not program, so this is all very new to me. If I am missing the obvious answer, please let me know. My question: Can the read count of a knot or a stitch be manually changed without the player actually seeing that knot or stitch? A follow-up in case that answer is no: How can I best simulate a choice being picked (well, multiple choices being picked) without that specific choice being chosen? I am lazy and declaring a whole host of global variables to represent every choice in the game seems...like a lot of work. Further context in case my wording isn't clear: I am attempting to implement a "chapter select" feature, so someone booting up the game for the nth time (hi, it's me, the developer) can skip the beginning chapters and just be assigned a history of "default" choices up to that point in the story without having to actually scroll through and make each individual choice. Any help appreciated, TYSMIA! |
Replies: 1 comment 1 reply
|
1. Can you change a read count by hand? No, not from ink. A knot or stitch name used in a test is "actually an integer variable containing the number of times the content at the address has been seen by the player" (Writing with Ink, "knot/stitch labels are actually read counts"). The story can read it but can't assign it, and the runtime only increases it when the story actually passes through that content. 2. How to fake a history without a pile of variables: use one LIST as a record of decisions. You don't need a global per choice, just one list with a name for each decision that matters later: LIST history = spared_guard, took_sword, told_truth, burned_letter
=== chapter_1 ===
* [Spare the guard]
~ history += spared_guard
...
* [Take the sword]
~ history += took_sword
...Later in the story, test the list instead of the knot: {history ? spared_guard: The guard nods at you as you pass.}
* {history ? took_sword} [Draw the sword]Your chapter select can then set a whole default history in one line, and jump: === chapter_select ===
* [Start from the beginning] -> chapter_1
* [Skip to chapter 3]
~ history += (spared_guard, took_sword)
-> chapter_3A few notes:
|
1. Can you change a read count by hand? No, not from ink. A knot or stitch name used in a test is "actually an integer variable containing the number of times the content at the address has been seen by the player" (Writing with Ink, "knot/stitch labels are actually read counts"). The story can read it but can't assign it, and the runtime only increases it when the story actually passes through that content.
2. How to fake a history without a pile of variables: use one LIST as a record of decisions. You don't need a global per choice, just one list with a name for each decision that matters later: