New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic tags appear to not update in JS #853
Comments
Update: I also tried
and
and those didn't work either (first one didn't interpolate, same as before; second one resulted an error about putting logic in a string) |
So I don't know how it should work.
The
that's the part where it transform the value of the literal So for it to work, you have to do some logic in the js to handle the tag, and you have to be VERY careful to write exactly the name of the variable you want. (especially you may have to rewrite how to read the current variable state, I think that changed., but the trick to interpret the value itself with the |
This is also happening in C#. For example, # {RANDOM(1, 4)} resolves in the ink player to a number, but when calling story.currentTags in C#, it just gives "{RANDOM(1,4)}" |
I've been updating CSS based on dynamic tags, but they only appear to interpolate on the inkle side of things and not in the JavaScript.
For example:
In both cases, these populate in Inky/in the gameplay text correctly, but when printing them in the JavaScript, show
{ character }
rather thanKirby
.The text was updated successfully, but these errors were encountered: