Control and Branching
In order to make the jump (ha!) from writing a novel to writing a game the story has to branch into several paths. This section covers the techniques for doing that.
- Jump considered harmful?
-
How to use
jump
and why you probably shouldn't in many cases lest you tie yourself in knots. - Call and Return
-
How to use
call
to create re-useable subroutines and functions. - If, Elif, Else
- The basic conditional choices and how best to use it.
- Menus
- How to offer the player a choice with a simple menu.
- Loops
- How to repeat something multiple times.
- Menus with conditions
- How to make some options in a menu only appear when they are appropriate.
- Menus with sets
- How to offer each option in a menu only once, and how to use this when talking to an NPC.