Diverting to a divert
In Chapter 2, Knots, Diverts, and Looping Patterns, the concept of a divert was introduced alongside story sections called knots. Using diverts and knots, looping structures were created and other ink concepts were also revealed as alternatives (please refer to Chapter 3, Sequences, Cycles, and Shuffling Text). The use of functions and passing values to knots were covered in Chapter 4, Variables, Lists, and Functions. This section builds on those concepts by explaining how diverts can be used to create more advanced stories.
In Chapter 2, Knots, Diverts, and Looping Patterns, diverts appeared according to the following pattern:
Example 1:
For the reader, <> -> next_part == next_part this appears as one line. -> DONE
A divert can also be used multiple times. In ink, this is known as the concept of a tunnel. The flow will move to a knot and then back to its original...