You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
matchChars.john_talk_count:
0:
John: Hey, nicetomeetyou!1:
John: Hey, {{Chars.player_name}}, right? Goodtoseeyouagain!2:
John: Hey!I've already talked to you twice. Isn'tthatenoughfornow?
_:
John: {{Chars.player_name}}... please, we've talked {{Chars.john_talk_count}} times already... I need a break.Chars.john_talk_count += 1
Which is way nicer and faster to write than:
ifChars.john_talk_count==0:
John: Hey, nicetomeetyou!elifChars.john_talk_count==1:
John: Hey, {{Chars.player_name}}, right? Goodtoseeyouagain!elifChars.john_talk_count==2:
John: Hey!I've already talked to you twice. Isn'tthatenoughfornow?
else:
John: {{Chars.player_name}}... please, we've talked {{Chars.john_talk_count}} times already... I need a break.Chars.john_talk_count += 1
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:
I've been thinking of adding match statements but it's not a small task - it's definitely on the todo list but I'm not entirely sure how long before I'll get to it.
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: