Can knots store metadata - YarnEditor as an alternative to Inkle (for mobile OS) #719
blurymind
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Maybe add x/y as a comment after the name of the ink knot and parse it from
there? It’d be relatively unobtrusive in the ink files.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I actually prefer to put the comment on the same line as the knot title like this:
will that be ok? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I am the developer of YarnEditor and I just added ink file support to it
https://yarnspinnertool.github.io/YarnEditor/
in the editor I am allowing the user to organise knots as nodes, search between nodes and see their connection
The ink files load/parse and can be previewed, but there is one tiny problem atm - ink knots need to somehow save x and y values, so when the user moves them around, their positions can be stored without affecting the game.
Is there a way in ink syntax to give knots extra metadata?
What would be the best way in your opinion? This data needs to not show in the text editor part, as the user is not allowed to type their x/y position - that gets assigned by them simply being dragged around.
I saw that ink devs are not the biggest fans of the node tree approach and still want to later on add support for a single text file way, but for now I want to give this a try and see how it works.
Nodes have one big advantage in yarn and that is they allow you to break down your narrative into chunks of text, rather than have one giant text file to scroll through. You can search data by knot name or knot contents/tags. Heres how it looks like with a yarn file
Beta Was this translation helpful? Give feedback.
All reactions