Workspace: Displaying Variable Jumps with Connection Lines #45
Replies: 2 comments 3 replies
-
Thanks for bringing this up! I hadn't even considered it. Hmmm yeah this is going to be tricky. I would be inclined to try the second method, but what if they are setting and unsetting the variable to different nodes? Do we just match all of them? Do we track what the latest set is in that point in time? That would require Chatigami to actually run the Yadda code to find out and I don't want to build an runner lol Another issue I see with the second approach is what about setting with functions? i.e. I'd rather not have the writer define the possible jumps, that seems very annoying and bothersome if I was the writer. Imagine the above scenario with the function. In every node that uses it you'd need to define I think this would be very time consuming for a nice-to-have feature. I'd rather just detect a variable jump, and indicate to the user that this node has a variable jump somehow (but not show exactly where). Unless there is another alternative, I think that would be the best path to take for the time being. Lemme know if you can come up with alternative solutions, or what you think about just indicating that there is a variable jump in this node. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Second method sounds damn near impossible. I actually would like the option to define possible jumps if I wanted to/in certain situations, but not every time. |
Beta Was this translation helpful? Give feedback.
-
Due to Yarn v2/Yadda syntax allowing for variable jumps (
<<jump $var>>
), this opens the editor up to having to display non-deterministic story-flow to assist the writer.What are your current ideas for being able to tackle this? Here are mine:
__possibleJumps
", containing an array of possible destinations out of this node, defined manually by the writer (for their own sake)<<set>>
command containing that variable, check the set value against all the nodes to find a match (honestly, sounds like hard mode. how often should this update?)React Flow also looks great at being able to help differentiate static/variable jumps with customisable lines too
Beta Was this translation helpful? Give feedback.
All reactions