# Can someone tell me why this isn't working?

**URL:** <https://forum.choiceofgames.com/t/can-someone-tell-me-why-this-isnt-working/71584>\
**Category:** ChoiceScript Help\
**Created:** [January 3, 2020, 2:58am UTC](https://forum.choiceofgames.com/t/can-someone-tell-me-why-this-isnt-working/71584 "2020-01-03T02:58:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreakyTheFruitBat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/freakythefruitbat/32/108594_2.png) [@FreakyTheFruitBat](https://forum.choiceofgames.com/u/FreakyTheFruitBat)\
**Post date:** [January 3, 2020, 2:58am UTC](https://forum.choiceofgames.com/t/can-someone-tell-me-why-this-isnt-working/71584/1 "2020-01-03T02:58:46Z")

</div>

I am useing the stats machanic to set the players gender I am trying to use  
\*create she true/false  
to create the stat but it wont work, it is saying it is an invaid create instruction, why?

---

<div class="post-metadata">

**Author:** ![sviyagin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/sviyagin/32/50885_2.png) [@sviyagin](https://forum.choiceofgames.com/u/sviyagin)\
**Post date:** [January 3, 2020, 3:30am UTC](https://forum.choiceofgames.com/t/can-someone-tell-me-why-this-isnt-working/71584/2 "2020-01-03T03:30:04Z")

</div>

There are three types of variables: number, boolean, and string. So there are multiple ways to do pronouns and gender. This is what I do in my games.

```
*choice
  #"Man."
    *set gender "m"
    *set princex "Prince"
    *set mx "Mr."
    *set person "man"
    *set child "son"
    *set they "he"
    *set them "him"
    *set themselves "himself"
    *set their "his"
    *set theirs "his"
    *set they_are "he is"
    *set theyre "he's"
    *set they_were "he was"
    *set they_have "he has"
    *set theyve "he has"
    *goto ch1_first_name
  #"Woman."
    *set gender "f"
    *set princex "Princess"
    *set mx "Ms."
    *set person "woman"
    *set child "daughter"
    *set they "she"
    *set them "her"
    *set themselves "herself"
    *set their "her"
    *set theirs "hers"
    *set they_are "she is"
    *set theyre "she's"
    *set they_were "she was"
    *set they_have "she has"
    *set theyve "she's"
    *goto ch1_first_name
  #"Person."
    *set gender "nb"
    *set princex "Princex"
    *set mx "Mx."
    *set person "person"
    *set child "child"
    *set they "they"
    *set them "them"
    *set themselves "themselves"
    *set their "their"
    *set theirs "theirs"
    *set they_are "they are"
    *set theyre "they're"
    *set they_were "they were"
    *set they_have "they have"
    *set theyve "they've"
    *goto ch1_first_name

```

There are other ways to do this of course, but first you have decide how _you_ want to proceed. Some people prefer to use \*multireplace and denote gender with numbers. I don’t think I’ve seen many people use boolean variables for gender, but there’s no reason why you couldn’t

Edit: the reason you were having trouble with

```
*create She/Her

```

Is because you didn’t give it a value

You need to do one of the following things:

```
*create gender ""
*create gender 0
*create gender false

```

That’s just example code of course. You have to change it to cater to your needs (gender = false doesn’t make much sense after all)

---

<div class="post-metadata">

**Author:** ![hgbird](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hgbird/32/103777_2.png) [@hgbird](https://forum.choiceofgames.com/u/hgbird)\
**Post date:** [January 3, 2020, 3:38am UTC](https://forum.choiceofgames.com/t/can-someone-tell-me-why-this-isnt-working/71584/3 "2020-01-03T03:38:19Z")

</div>

> [@sviyagin](#):
>
> Edit: the reason you were having trouble with
> 
> ```choicescript
> *create She/Her
> 
> ```
> 
> Is because you didn’t give it a value

Additionally, ChoiceScript will reject She/Her as a variable name because of the capital letters and the slash. This boolean name would work, however:

> \*create she\_her true

I suggest poking around on the ChoiceScript wiki for more beginners’ tips! You can start here with data types, if you like:

> **[Data types](https://choicescriptdev.fandom.com/wiki/Data_types)**
>
>       This article is aimed at beginners to ChoiceScript. However, if you have not already done so then the best place to start would be with the very first article in this Introduction To ChoiceScript Game Development series of linked...

---

<div class="post-metadata">

**Author:** ![sviyagin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/sviyagin/32/50885_2.png) [@sviyagin](https://forum.choiceofgames.com/u/sviyagin)\
**Post date:** [January 3, 2020, 4:46am UTC](https://forum.choiceofgames.com/t/can-someone-tell-me-why-this-isnt-working/71584/5 "2020-01-03T04:46:04Z")

</div>

> [@FreakyTheFruitBat](#):
>
> it is saying it is an invaid create instruction, why?

Since you deleted your last post, I don’t know if that means you’re still having trouble or not, but to reiterate, as hgbird said:

> [@hgbird](#):
>
> ChoiceScript will reject She/Her as a variable name because of the capital letters and the slash

If you rename your variable to she\_her and give it an assigned value (either a string “xyz,” a number, or true/false), then the error should go away.
