Adding, Removing, and Shuffling Knots At Runtime?
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 540
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am diving into Ink to determine whether the language is capable of supporting an upcoming prototype of mine. Specifically, I am looking to model a dynamic story as though each knot were printed on individual playing cards such that a deck of knots can have knots added, removed, and shuffled at runtime, thus altering the direction of the story.
From my understanding of the Ink documentation, list blocks can be set to shuffle mode, which I can use to randomly divert flow to knots. What I do not see, however, is a straightforward way to add knots to or remove knots from the list after the list has been declared.
I have been mulling over some hacks to get around this. For adding knots, I could have a knot check if its prerequisite has been fulfilled, otherwise it immediately diverts back to the list to select another knot instead. For removing knots, I could have a knot check if it has not been visited, otherwise it will divert immediately back to the list to select another knot instead.
Is there a better way to do this?
Thanks,
Chris
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the Ink documentation sections on list blocks and shuffle mode, since those are the only entry points identified. Determine whether adding, removing, or shuffling knots at runtime is supported; done would require a documented answer or a clearly scoped implementation path.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100