Chapter 3: Sequences, Cycles, and Shuffling Text
This chapter introduces the concept of alternatives, programmable ways of introducing additional text, and advanced code that can react to loops. We will cover each type of alternative (sequence, cycle, and shuffle) in turn and look at how they can be combined with looping structures in ink. Next, we will examine multi-line alternatives, functionality for defining more complex structures based on the type of alternative used to create them. Finally, we will close the chapter with nested alternatives, the use of one or more alternatives inside each other.
In this chapter, we will to cover the following main topics:
- Using alternatives
- Creating multi-line alternatives
- Nesting alternatives
Technical ...
Get Dynamic Story Scripting with the ink Scripting Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.