Skip to content
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

Can't use Switch syntax on a Divert variable #878

Open
AwesomeGameConcepts opened this issue Nov 3, 2023 · 0 comments
Open

Can't use Switch syntax on a Divert variable #878

AwesomeGameConcepts opened this issue Nov 3, 2023 · 0 comments

Comments

@AwesomeGameConcepts
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant