Makes a choice and advances the story to the target node. Throws an error if the choice doesn't exist or isn't available.
ID of the choice to make
Current game state for condition evaluation
Step result after advancing
Error if choice not found or condition not met
Returns the current story step without advancing. Choices are filtered based on conditions evaluated against the provided state.
Current game state for condition evaluation
Current step result with available choices
Jumps directly to a specific knot and node. Useful for save/load, debugging, or special navigation.
Target location (knot optional, defaults to current)
Optional knot?: stringCurrent game state for condition evaluation
Step result at the new location
Error if target knot or node doesn't exist
Runtime interface for navigating and interacting with a story.