inkle / inkle/ink

Is there any way to get a count from a divert target?

Open
#242 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

I'm trying to write a function to decide whether to hide or show a choice based on two factors— how many times a given knot has been seen, and the TURNS_SINCE it has been seen. I want to do something like this:

```
=== function ValidChoice(-> startNode, minTurnsBetween, maxRepeats)
~ return TURNS_SINCE(startNode) > minTurnsBetween && COUNT(startNode) <= maxRepeats
```

Something like this COUNT function that can operate like TURNS_SINCE on a divert target doesn't exist, does it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.