Hello all,
After failing miserably to write a script myself, I come to you for help.
For localisation purposes I want to support gendered dialog.
For English, there is of course no issue, but some languages have gendered verbs, adjectives and nouns...
As it would increase the amount of dialog threefold, I cannot use the simple solution of conditional branches.
So here is what I want to do:
Using a variable, that is set to either 0, 1 or 2, I want to be able to call either neutral, male or female dialogue options.
The player will be able to choose their gender at the start of the game and the respective value will be assigned.
Then inside the dialogue it should look something like this:
"You don't know if \x[they heard|he heard|she heard] you."
And depending on the assigned value, the expected gender option will be displayed within the text.
I just about figured that variables are called and set with $game_variables[x]=y, but for actually setting conditions depending on the value, I couldn't find any reference and was thus lost very quickly.
This post I found for RPGMaker MV is similar to what I am trying to achieve, but I could not make sense of the script as a reference:
https://forums.rpgmakerweb.com/inde...the-choice-at-the-beginning.92133/post-835689
I am very intent on supporting the neutral option, so a switch would not work either.
If anyone is able to figure this out, I'd be so grateful.
After failing miserably to write a script myself, I come to you for help.
For localisation purposes I want to support gendered dialog.
For English, there is of course no issue, but some languages have gendered verbs, adjectives and nouns...
As it would increase the amount of dialog threefold, I cannot use the simple solution of conditional branches.
So here is what I want to do:
Using a variable, that is set to either 0, 1 or 2, I want to be able to call either neutral, male or female dialogue options.
The player will be able to choose their gender at the start of the game and the respective value will be assigned.
Then inside the dialogue it should look something like this:
"You don't know if \x[they heard|he heard|she heard] you."
And depending on the assigned value, the expected gender option will be displayed within the text.
I just about figured that variables are called and set with $game_variables[x]=y, but for actually setting conditions depending on the value, I couldn't find any reference and was thus lost very quickly.
This post I found for RPGMaker MV is similar to what I am trying to achieve, but I could not make sense of the script as a reference:
https://forums.rpgmakerweb.com/inde...the-choice-at-the-beginning.92133/post-835689
I am very intent on supporting the neutral option, so a switch would not work either.
If anyone is able to figure this out, I'd be so grateful.