Auto lower/upper-case of variables in dialogue ?
Posted: Fri Jan 29, 2021 7:13 am
Hi Tony,
I've searched the forum but didn't find a mention of it, so this will probably turn into a feature suggestion.
There's one nice thing from Adventure Creator, that goes like this...:
This is referred to a Hotspot. You can use their names in dialogues in a similar fashion as Dialogue System variables. This setting in particular does as it says, though, giving extra control.
That's a nice feature to have, because if we want to use a pronoun variable (she, he, they, etc), we'd also need to account for the upper-cased version at the start of sentences.
In DS (unless I'm missing something), I'd need to create two variables (pronoun and Pronoun) and remember to use the correct one when writing dialogue and/or changing the position of those pronouns (from the start to the middle of a sentence).
I think it would be dope if we could write the value of the pronoun in lower-case, and then DS turning the first letter to upper-case if at the start of a sentence (or using AC's approach, the opposite).
Examples:
[var=pronoun] wouldn't do that!
The last time [var=pronoun] did it was just this morning.
He wouldn't do that!
The last time he did it was just this morning.
Granted, determining what would constitute the start of a sentence could a bit tricky at times, but a good starting point would be to declare a word's first letter upper-case, if...:
- it's after a dot and a space
- it's at the start of the subtitle text
- it's after a colon character (so "Mike: [var=pronoun] wouldn't do that!" would still work as intended).
Your thoughts?
Thank you!
I've searched the forum but didn't find a mention of it, so this will probably turn into a feature suggestion.
There's one nice thing from Adventure Creator, that goes like this...:
This is referred to a Hotspot. You can use their names in dialogues in a similar fashion as Dialogue System variables. This setting in particular does as it says, though, giving extra control.
That's a nice feature to have, because if we want to use a pronoun variable (she, he, they, etc), we'd also need to account for the upper-cased version at the start of sentences.
In DS (unless I'm missing something), I'd need to create two variables (pronoun and Pronoun) and remember to use the correct one when writing dialogue and/or changing the position of those pronouns (from the start to the middle of a sentence).
I think it would be dope if we could write the value of the pronoun in lower-case, and then DS turning the first letter to upper-case if at the start of a sentence (or using AC's approach, the opposite).
Examples:
[var=pronoun] wouldn't do that!
The last time [var=pronoun] did it was just this morning.
He wouldn't do that!
The last time he did it was just this morning.
Granted, determining what would constitute the start of a sentence could a bit tricky at times, but a good starting point would be to declare a word's first letter upper-case, if...:
- it's after a dot and a space
- it's at the start of the subtitle text
- it's after a colon character (so "Mike: [var=pronoun] wouldn't do that!" would still work as intended).
Your thoughts?
Thank you!