-
Book Overview & Buying
-
Table Of Contents
Dynamic Story Scripting with the ink Scripting Language
By :
Displaying only the text of an ink story has limited usefulness. Most advanced ink stories use weaves to present different options. Along with the Continue() method and the canContinue property, the Story API also has another property called currentChoices that contains a list of the options generated by the most recent weave.
As was demonstrated in the Checking whether a story can continue section, the canContinue property is affected by the Continue() method. After each line is loaded and returned as a string, the Story class will update the canContinue property if there is more story to load. This is also true of the currentChoice property. When the Continue() method is used, it will load the next line and any weaves.
Note
Any previously used game objects or C# files created as part of this chapter can safely be deleted. This section will create a new game object and script component, and use different code for working with weaves...