Hello! This is my first post so I’m a little bit nervous!
Sorry if this has been answered already. I’d like to give players the option to manually enter their own pronouns, but…
Basically, the issue I’m having is that there ends up being a lot of text boxes prompting the player to enter their own pronoun info, which works, but ends up looking kinda clunky. This would only be an issue for players that choose to enter their own pronoun info, rather than picking from the list, but I’d still like to make it as smooth as possible.
For reference, here’s the code. Don’t judge me too harshly, I’m very new to this:
#Something more [i]me.[/i]
*set pcsibling "sibling"
*set pcyoung "child"
*set custompronouns true
Responses are case-sensitive. Instead of something like "they" or "she", you prefer:
*input_text pcthey
Instead of "them" or "him", you prefer:
*input_text pcthem
Instead of "their" or "hers", you prefer:
*input_text pctheir
Instead of "theirs" or "his", you prefer:
*input_text pctheirs
When referring to yourself, instead of using "themselves" or "herself", you instead say:
*input_text pcself
What do people use when addressing you formally? e.g. Miss, Mr., Mx….
*input_text pctitle
Finally, when referring to you, would someone say [i]"$!{pcthey} [b]is[/b] pure evil!"[/i]
Or would they say [i]"$!{pcthey} [b]are[/b] pure evil!"[/i]
*choice
#The first one.
*set pcsays "says"
*goto pronouns_done
#The second one.
*set pcplural true
*set pcsays "say"
*goto pronouns_done
Yes I’ve seen the guide! Sorry, I suppose I should clarify that I’m not having issues with getting pronouns to work properly or anything like that.
The code I posted is just the relevant bit, but with what I have right now, players can select a number of preset options for pronouns and neopronouns. Some people might want to enter their own though! And in that case they would have to type in a bunch of prompts. I’m just wondering if there’s a way to do that that doesn’t involve quite so many text boxes.
You could, I suppose, have the player input it all in the same box with a separator (/ or , or something) and then run some magic to separate it to multiple variables, but multiple textboxes is what all of the games I’ve seen that allow inputting your own pronouns use.
This is incorrect. Use “his” here and use “hers” in the next one.
If you use *create s "s" you can do this instead which can be used for every verb rather than just one:
# The first one.
*set s "s"
# The second one.
*set s ""
"S is my favourite letter," ${pcthey} say${s}. $!{pcthey} @{s="s" has|have} spoken.
That last little bit (@{s="s" has|have}) is called multireplace. It uses @ as its symbol. Then, the formula is defined with {} curly braces. Set a condition (e.g. s="s") and then separate two options with a | vertical line. The first option (e.g. has) is displayed if the condition is true, and the second option (e.g. have) is displayed if the condition is false.
You can also do it with number variables and put any number of options in the multireplace, but at some point it’s better to separate it out into if/else blocks so you can review it more easily.