inkle / inkle/ink

TagsAtStartOfFlowContainerWithPathString skipping tags for knots with a parameter

Open
#854 2 comments 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 have encountered an issue when tags are ignored by TagsForContentAtPath(string path) for a knot that contains a parameter.
Example:

> === Util_DigMound(container_id) ===
#MiniNarrative
"It looks like something's buried here," PARTY_RAND said<>

I have narrowed the problem to TagsAtStartOfFlowContainerWithPathString in Story.cs. If the content begins with a variable assignment, the initial tags will be ignored. I have fixed the issue by adding:

`var v = c as Runtime.VariableAssignment;
if (v != null) { continue; }`

just before

`var command = c as Runtime.ControlCommand;`

in the foreach loop.

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.