code, howto, Ink

Learning Ink: Part 6: Gather Points and Labelled Options

InkLogo

 

Learning Ink

 

Ink is a scripting language for creating interactive fiction like choose-you-own-adventures and other vast, branching stories.


 

Ink uses the concept of flow to describe how a story moves through different options and across branching paths. Within a flow, Ink also uses the idea of a weave, a section of options and gather points, that connect to each other and serve as a faster shorthand than using knots and diverts.

 

Gather Points

1_Gather

Gather Points use the minus sign, -, and serve as their name suggests, they gather. They act as the thing to run after a set of choices to “gather” their weave back together. Instead of using knots and diverts to show short text strings by bouncing between them, gather points can quickly fold back into each other.

Labelled Options

2_LabelledOptions

Like knots, options can also be labelled. Like what was done with conditional choices, labelled options can work the same way. Code can check to see if an option has been chosen and react accordingly.

3_GatherAndOptions

While knots and stitches can be used to divert into new story sections, using a weave, with gather points and labelled options, code can be reduced in complexity.

GatherPointsLabelledOptions

GitHub Gist Version:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s