-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Match statements for dialogue #312
Labels
enhancement
New feature or request
Comments
I've been thinking of adding |
Noted, maybe I'll take a look at the parser and see if I can find a way to add them, save you a bit of work. |
Repository owner
deleted a comment from
yawoffeh
Feb 20, 2024
Repository owner
deleted a comment from
Obasoro
Feb 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
In writing my dialogue, I frequently have dialogue that's based off of how many times you've talked to a character.
Currently the only way to write dialogue to work like this is by having long if/elif/else statements.
Describe the solution you'd like
Syntactic sugar over the if/else statement that lets you state the one variable you'd like to compare against at the start, followed by options for each of them, as an example.
Which is way nicer and faster to write than:
Describe alternatives you've considered
Just having a bunch of if statements that check the same property verbosely
Additional context
This would be a great addition for writing dialogue faster. It also means that if you want to change which variable is being checked, you only have to change the value in the match statement,
(please forgive me if this does exist, I'm new to using the plugin but I couldn't find this feature anywhere in the documentation)
The text was updated successfully, but these errors were encountered: