Story API functions for tagged content #62

Open
opened 2019-06-04 03:47:18 +00:00 by NQNStudios · 2 comments
NQNStudios commented 2019-06-04 03:47:18 +00:00 (Migrated from github.com)

More external-facing functions are needed for external game engines to embed Hank games and do cool stuff with them.

More external-facing functions are needed for external game engines to embed Hank games and do cool stuff with them.
NQNStudios commented 2019-06-15 22:44:17 +00:00 (Migrated from github.com)

Tag

  • getKnotsWithTags(?tagFilter):
    tagFilter is in the form of a boolean expression like "content && !hidden" which gets parsed in a little HankInterp whose variables are initialized with `[tagName] = {true or false} and undefined == false.
  • nextFrameWithTags(?tagFilter):
    Either returns next text frame that satisfies tag filter (skipping others), or HasChoices() filtered by tagFilter or NoMatchingContent
Tag - [ ] getKnotsWithTags(?tagFilter): tagFilter is in the form of a boolean expression like `"content && !hidden"` which gets parsed in a little `HankInterp` whose variables are initialized with `[tagName] = {true or false} and undefined == false. - [ ] nextFrameWithTags(?tagFilter): Either returns next text frame that satisfies tag filter (skipping others), or `HasChoices()` filtered by tagFilter or `NoMatchingContent`
NQNStudios commented 2019-06-15 23:02:29 +00:00 (Migrated from github.com)
  • skipTaggedHScript(?tagFilter): don't execute hscript that matches the given tags
- [ ] skipTaggedHScript(?tagFilter): don't execute hscript that matches the given tags
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NQN/hank#62
No description provided.