ink icon indicating copy to clipboard operation
ink copied to clipboard

Can't use Switch syntax on a Divert variable

Open AwesomeGameConcepts opened this issue 2 years ago • 0 comments

Hello, i'm developing a nodal tool on Unity to create Ink Files and logic stuff. It's really great for helping to manage a very huge story on ink. image I have my switch node configurate to export like this { x:

  • 0: zero
  • 1: one
  • 2: two
  • else: lots }

It's work like a charm, but when i change the variable type to a divert the syntax is not correct anymore : { Group: - Wake_Up: Wake Up ->END - Knot: Knot ->END - else: Unknow ->END } even with trying { Group: - ->Wake_Up: Wake Up ->END - ->Knot: Knot ->END - else: Unknow ->END } So the workaround i find is to use this syntax who work { - Group_1 == ->Stitch: Hello ->END - Group_1 == ->Knot: Hello2 ->END - else: ->END } But that still ugly to create an exception in my code for this particular type of variable. Is it possible to plan to have the switch syntax working with divert vars ? Thanks a lot :)

AwesomeGameConcepts avatar Nov 03 '23 11:11 AwesomeGameConcepts