# Trouble coding genders into the game

**URL:** <https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065>\
**Category:** ChoiceScript Help\
**Created:** [June 18, 2015, 12:04am UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065 "2015-06-18T00:04:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![xBD](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/xbd/32/39096_2.png) [@xBD](https://forum.choiceofgames.com/u/xBD)\
**Post date:** [June 18, 2015, 12:04am UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065/1 "2015-06-18T00:04:45Z")

</div>

I’m not sure if I worded the title correctly but nevertheless…

Hello there, everyone! My name is Bd and I’ve been hard at work trying to bring back a game I posted here a while back. The story needed some serious revamping so I took a long hiatus and took that time to completely start over from scratch and continue on from there.

That being said I’ve had to relearn the coding again. One thing I’ve been having trouble with-- and can’t seem to find a way around it-- is getting the correct pronouns of your character to pop in the game. So far the game would say that you’re a “he” when the stats clearly say that you’re “she/they”. I know how to set your gender/gender identity into the game, but I can’t seem to get the characters in the story to use the proper pronouns when speaking to/about you. Maybe I’m just being stupid and the help can easily be found in the tutorial I’ve been shaking my fists at for the past few days. If that’s the case, then I’ll appreciate it if you point me in the right direction so I can take a good hard look at it.

If not, then any help would be appreciated! Thank you!

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [June 18, 2015, 12:28am UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065/2 "2015-06-18T00:28:55Z")

</div>

I did a tutorial on this. [A Basic Tutorial on Name, Relationship and Gender Variables](https://forum.choiceofgames.com/t/a-basic-tutorial-on-name-relationship-and-gender-variables/2060) if that will help any.

If you could post a sample of your code though, or link to your game, we can point out what you’re doing wrong and help fix it.

---

<div class="post-metadata">

**Author:** ![xBD](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/xbd/32/39096_2.png) [@xBD](https://forum.choiceofgames.com/u/xBD)\
**Post date:** [June 18, 2015, 1:23am UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065/3 "2015-06-18T01:23:27Z")

</div>

No, it’s all fine here! Thank you so much, that link was extremely helpful. You’re a lifesaver!

---

<div class="post-metadata">

**Author:** ![Sashira](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/sashira/32/2899_2.png) [@Sashira](https://forum.choiceofgames.com/u/Sashira)\
**Post date:** [June 18, 2015, 10:12pm UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065/4 "2015-06-18T22:12:33Z")

</div>

@FairyGodfeather always has good advice. If you start getting more complex than male and female (adding third-gender pronouns, keeping track of whether a character is trans, etc.) hit me up. I have a chart of variations and a scene coded to set them. 😄

---

<div class="post-metadata">

**Author:** ![bumblebree](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@bumblebree](https://forum.choiceofgames.com/u/bumblebree)\
**Post date:** [July 1, 2015, 4:25pm UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065/5 "2015-07-01T16:25:49Z")

</div>

I am having a similar problem, but even copy and pasting the code from @FairyGodfeather’s tutorial doesn’t fix it.

In my startup.txt file I have:

\*create gender “unknown”

And then in the scene I have:

```
Is it a boy’s name or a girl’s name?
*choice
  #I’m a girl.
    *set gender “female”
    *goto orientation
  #I’m a boy.
    *set gender “male”
    *goto orientation

```

But I keep getting the error message:  
_Invalid expression, couldn’t extract another token: “female”_  
or if I choose “I’m a boy”  
_Invalid expression, couldn’t extract another token: “male”_

I’m so stuck. I can’t tell what is going wrong. Anyone have any ideas?

Thanks in advanced!

---

<div class="post-metadata">

**Author:** ![bumblebree](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@bumblebree](https://forum.choiceofgames.com/u/bumblebree)\
**Post date:** [July 1, 2015, 4:37pm UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065/6 "2015-07-01T16:37:04Z")

</div>

Please disregard my previous message. I figured it out 😄

Something wonky happened when I opened the code in a different text editor. Just had to delete and retype that part and it works perfectly now.

Thanks anyway!

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [July 1, 2015, 7:43pm UTC](https://forum.choiceofgames.com/t/trouble-coding-genders-into-the-game/10065/7 "2015-07-01T19:43:30Z")

</div>

It’s probably the quotes. ( " ⬅ Those things) Some text editors automatically change them to a curly version of them, and those don’t work with choicescript.
