Student Handout — Adding Conditional Logic to Your Twine Game
Course 2: Game Design & Development Principles / Unit 5: Game Design Storytelling & Nonlinear Narratives / Lesson 10: Adding Conditional Logic to Your Twine Game
Conditional Logic Planner
Name: ____________________ Date: ____________________
My variable
| Variable name (starts with $) | Starting value | Passage where it changes | New value |
|---|---|---|---|
| $__________ | __________ | __________ | __________ |
| $__________ | __________ | __________ | __________ |
My condition
Passage where I check the variable: ______________________
If ______________________ then the player sees ______________________
Else the player sees ______________________
Write the Harlowe code
________________________________________________________________
________________________________________________________________
________________________________________________________________
Test both paths
| Path I played | Value of my variable | What I saw | Correct? |
|---|---|---|---|
| __________ | __________ | __________ | ☐ |
| __________ | __________ | __________ | ☐ |
Before you leave
- ☐ My variable has a starting value in my first passage.
- ☐ A player choice changes my variable.
- ☐ I used (if:) and (else:) in a later passage.
- ☐ I played both paths and each outcome showed when it should.
- ☐ I exported my story and saved it to Google Drive.