Combining tunnels and threads
Tunnels allow the flow of a story to move to a knot or a stitch and then return. Threads act as the inverse, moving the content from the knot or the stitch to the current flow position. Together, they form a powerful way in which to craft a story composed of different parts. Often, in advanced projects, these two concepts are paired together with weaves and gathering points to expand or contract the number of possible branches.
Tunnels can be reused, and threads can be repeated. In this topic, we will explore how threads and tunnels can be combined to create more complex stories using less overall code.
Reusing tunnels and repeating threads
Example 4 used multiple tunnels, and Example 5 showed the same result using multiple threads. It is also possible to combine multiple tunnels and threads by breaking up content into stitches as part of multiple knots for each part of a story. For example, many role-playing video games start by presenting dialogue...