Chapter 5: Tunnels and Threads

This chapter begins with the concept of a tunnel. Created using multiple diverts and at least two knots (please refer to Chapter 2, Knots, Diverts, and Looping Patterns), tunnels serve as a faster way in which to create complex structures than previously discussed in the last chapters. Following this, we will move on to review threads, which is another way of using diverts to connect multiple parts of an ink project dynamically. Finally, we will look at combining tunnels and threads to make even more complex structures based on the simple rules of how ink understands knots and diverts within a story.

In this chapter, we will cover the following main topics:

  • Diverting to a divert
  • Pulling on threads
  • Combining tunnels ...

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.