Open full view…

Gender Choice?

Mon, 04 Jun 2018 02:41:16 GMT

I'm relatively new to Fungus (and Unity for that matter), but picked up on the various stuff it has to offer. Though what I couldn't really find anything about was letting the player pick their pronouns for the story, with additional neutral ones (they/them) to go with the usual she/her and he/him. I'm guessing one would make these via string like with $PlayerName, but replace that with something such as $xir, $xe, and $xirs, but I can't quite figure out how to achieve this. How would one go about giving the option for three separate options to choose from a menu-type selection at the beginning that would permanently take effect on the game dialogue, which in turn also require an additional three other variations to fit the dialogue's demand?

Steve Halliwell
Mon, 04 Jun 2018 07:36:50 GMT

If you wanted to let players choose their own then having a look at the player name example would be your starting place. It would then also need to ask for desired pronouns and set $xir etc. as you've said. If you only wanted to offer a certain set then GUI Buttons that run a few Set Variable commands would be an approach there.

Mon, 04 Jun 2018 08:21:58 GMT

Note that this will get -very -complex -very- fast with translations, but it's still probably the best option. Remember you'll also need two versions of each pronoun for a capital starting letter or not, but $Xir and $xir read as the same variable to Fungus (variable names are case-insensitive). I think I added an underscore to one of them, and you can still WRITE it with a capital (i.e. $xir and $_Xir). Good luck!

Tue, 05 Jun 2018 21:56:47 GMT

Ah, alright I'll give the GUI buttons a go. Didn't think of needing two versions for capitalisations as well. Good thing you mentioned it or I would've probably ended up scratching my head over it for a while. Thank you both for the help!