Lesson 10: Adding Conditional Logic to Your Twine Game
Use the lesson materials below in the order your teacher assigns.
Make your Twine game remember what the player did and change the story because of it. Use a variable to store a choice with (set:), then show different text or choices with (if:), (else-if:) and (else:). The DMV story is the example. Open the Lesson Notes for the full steps.
Required: Add 10 new passages to your story. At least one path must change because of a variable.
Twine 2.3: Harlowe 3: Conditional Statements
YouTube loads only when you press play.
Watch on YouTube (opens in a new tab)Twine Tutorial 2 - Variables and If Statements
YouTube loads only when you press play.
Watch on YouTube (opens in a new tab)After the video: open this lesson's Lesson Notes. They cover the same skills you just watched, step by step, so keep them open while you add conditions to your game.
Open Twine (twinery.org) (opens in a new tab)
Harlowe manual (opens in a new tab)
KDE student outcomes (planned alignment, Course 113605): #24 Compare conflict and outcomes. #38 Explain basic logic statements such as if/then and cause/effect.
Learning materials
Key Terms — Adding Conditional Logic to Your Twine Game
Lesson Notes — Adding Conditional Logic to Your Twine Game
Student Handout — Adding Conditional Logic to Your Twine Game
Discuss and submit in Google Classroom
Use this site to read, watch, and get shared learning materials. Keep completed work, questions, and comments in your class on Google Classroom.
Open Google ClassroomChoose your class and the assignment named by your teacher.