Skip to content

Story With Memory

You'll write a choice-based story that remembers what the player did, with variables, a choice that pays off much later, and text that changes the second time through.

About

Links on their own give you a maze, and variables are what turn it into a game. The step from a choose-your-path story to interactive fiction is the moment a passage reads differently because of something the player did ten passages ago. Twine's story formats all do this, with (set:) and (if:) in Harlowe or <<set>> and <<if>> in SugarCube, and Ink does it with VAR and curly braces. You'll build on a story you've already written or start a new one of about thirty passages, and the hard part isn't the code, it's keeping track of which passages assume what.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
One weekend
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Common badges in Interactive Fiction to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Track one variable that changes what a later passage says. A key you picked up, a lie you told, a name you gave. Set it in one passage, check it in another, and make the difference more than a word. Film two short runs that reach the same passage, one with the variable set and one without, so the two versions show back to back. Video
  2. 2
    Give the player a choice that looks harmless and matters later. A kindness in passage four that pays off in passage twenty is what makes players go back and play again, while a choice that matters immediately is just a fork. Take a screenshot of the later passage's code showing the check, and name the early passage it looks back to in your write-up. Photo
  3. 3
    Write a passage the player can visit twice that reads differently the second time. Most story formats can tell you whether a passage has been seen before, and a counter you set yourself always works. Change the opening line and at least one choice on the return visit. Film yourself visiting it twice in one playthrough. Video
  4. 4
    Keep a sheet of which variables exist and which passages touch them. By passage thirty you'll have six variables and no idea which passages assume the lantern is lit, and the sheet is how you find the bug. A spreadsheet or a page of a notebook both work. Take a photo of the sheet. Photo
  5. 5
    Find and fix one state bug by playing a path you didn't plan. Take the choices you'd never take, in the order you'd never take them. Somewhere a passage will refer to something that didn't happen. Take a screenshot of the broken passage as the player saw it, and say in your write-up what the fix was. Photo
  6. 6
    Publish the new version and have one player tell you the choice they regret. If nobody regrets anything, the stakes are too low. Put it on itch.io or wherever the first version lives, send it to someone, and ask them that one question. Take a screenshot of the public page and put their answer in your write-up. Photo