# Code for gender and pronouns

**URL:** <https://forum.choiceofgames.com/t/code-for-gender-and-pronouns/125880>\
**Category:** ChoiceScript Help\
**Created:** [October 2, 2022, 2:34am UTC](https://forum.choiceofgames.com/t/code-for-gender-and-pronouns/125880 "2022-10-02T02:34:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Kshatriya](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kshatriya/32/168996_2.png) [@Kshatriya](https://forum.choiceofgames.com/u/Kshatriya)\
**Post date:** [October 2, 2022, 3:37am UTC](https://forum.choiceofgames.com/t/code-for-gender-and-pronouns/125880/2 "2022-10-02T03:37:17Z")

</div>

Looked up a couple of threads that might help. This one is newer and includes they/them pronouns:

> [@Gender and Pronoun Sample Code](https://forum.choiceofgames.com/t/gender-and-pronoun-sample-code/78140):
>
> Hey everyone! I’ve made an example startup file for randomising or choosing NPC genders, and PC pronouns including entering pronouns. [You can find a playable version here](https://dashingdon.com/go/5702) and [view the full txt file here](https://dashingdon.com/play/hannahps/gender-setting-example/mygame/scenes/startup.txt). There is also a newer version that uses ${npc\_they}, ${npc\_them} etc. It is playable [here](https://dashingdon.com/play/hannahps/gender-setting-example---they-default/mygame/) and the txt file can be [viewed here.](https://dashingdon.com/play/hannahps/gender-setting-example---they-default/mygame/scenes/startup.txt) Let me know if it’s useful, and if you’ve got any questions!

This thread is older and has no option for they/them, but the dropbox link has a few useful pointers like setting up relationship variables:

> [@A Basic Tutorial on Name, Relationship and Gender Variables](https://forum.choiceofgames.com/t/a-basic-tutorial-on-name-relationship-and-gender-variables/2060):
>
> I’ve been working on a very basic tutorial to try and explain how you create and set name, gender, and a few things about relationships. It may have errors. If it does please point them out and I’ll fix them. I’m not even sure if it makes sense so I’d appreciate input on that. [https://www.dropbox.com/s/vlhshjgo4psrv3t/tutorial.txt](https://www.dropbox.com/s/vlhshjgo4psrv3t/tutorial.txt) You can copy and paste it into CJW’s amazing IDE [https://dl.dropboxusercontent.com/u/7840892/CJW/choicescript/tools/IDE/main.html](https://dl.dropboxusercontent.com/u/7840892/CJW/choicescript/tools/IDE/main.html) to see how it works. I think next…

---

_[View the full topic](https://forum.choiceofgames.com/t/code-for-gender-and-pronouns/125880)._
