# Gender Options Help

**URL:** <https://forum.choiceofgames.com/t/gender-options-help/1763>\
**Category:** ChoiceScript Help\
**Created:** [October 4, 2013, 2:46am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763 "2013-10-04T02:46:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shobuscus](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shobuscus/32/1251_2.png) [@Shobuscus](https://forum.choiceofgames.com/u/Shobuscus)\
**Post date:** [October 4, 2013, 2:46am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/1 "2013-10-04T02:46:42Z")

</div>

So basically i was just wondering if someone can help me fix my stupidity by directing me in the right direction in terms  
of creating a gender option. whatever im doing is making errors :c  
mine looks like this  
\*title Fight or Flight?  
\*scene\_list  
startup  
1  
2  
3  
4

\*create Gender “”  
\*create name “”  
\*create human 100  
\*create heartless 0  
\*create bravery 10  
\*create intelligence 10  
\*create strength 10  
\*create agility 10  
\*create stealth 10

You birth certificate states that you where born in the year 2259  
\*line\_break  
It also states your Gender

\*choice  
#Male  
You were born a healthy male baby.

```
    \*set Gender "Male"
    \*finish

```

#Female  
You were born a health female baby  
\*set Gender “Female”  
\*finish  
Thats what it pretty much looks like (excluding some text at the start)  
and my stats

\*stat\_chart  
text Name  
text Gender  
opposed\_pair Heartless  
Human  
percent Bravery  
percent Intelligence  
percent Strength  
percent Agility  
percent Stealth  
hope i dont cause any inconveniences sorry! C:

---

<div class="post-metadata">

**Author:** ![Caddmuss](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/caddmuss/32/424_2.png) [@Caddmuss](https://forum.choiceofgames.com/u/Caddmuss)\
**Post date:** [October 4, 2013, 3:18am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/2 "2013-10-04T03:18:11Z")

</div>

Off the bat, I’d say you should haven’t the gender variable capitalized. Your stat chart is fine but I believe you can’t capitalize variables at creation or something like that. Then again I’m just returning to choicescript and it could be something else.

---

<div class="post-metadata">

**Author:** ![Shobuscus](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shobuscus/32/1251_2.png) [@Shobuscus](https://forum.choiceofgames.com/u/Shobuscus)\
**Post date:** [October 4, 2013, 3:19am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/3 "2013-10-04T03:19:02Z")

</div>

Thanks i’ll try that C:

---

<div class="post-metadata">

**Author:** ![Shobuscus](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shobuscus/32/1251_2.png) [@Shobuscus](https://forum.choiceofgames.com/u/Shobuscus)\
**Post date:** [October 4, 2013, 3:21am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/4 "2013-10-04T03:21:02Z")

</div>

I get an error like this  
line 59: increasing indent not allowed, expected 3 was 8

---

<div class="post-metadata">

**Author:** ![Caddmuss](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/caddmuss/32/424_2.png) [@Caddmuss](https://forum.choiceofgames.com/u/Caddmuss)\
**Post date:** [October 4, 2013, 3:45am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/5 "2013-10-04T03:45:51Z")

</div>

Lol. Means you have 5 extra spaces/indents or so on line 59. Using notepad ++ will help keep track of each line of code, so I recommend using that for CS coding.

---

<div class="post-metadata">

**Author:** ![Shobuscus](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shobuscus/32/1251_2.png) [@Shobuscus](https://forum.choiceofgames.com/u/Shobuscus)\
**Post date:** [October 4, 2013, 3:49am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/6 "2013-10-04T03:49:13Z")

</div>

haha nvm thanks so much dude xD

---

<div class="post-metadata">

**Author:** ![Havenstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/havenstone/32/198451_2.png) [@Havenstone](https://forum.choiceofgames.com/u/Havenstone)\
**Post date:** [October 4, 2013, 4:57am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/7 "2013-10-04T04:57:04Z")

</div>

And here’s a link to previous threads where gender options have been discussed:

> **[Is there a way to swap pronouns and descriptions?](https://forum.choiceofgames.com/t/-/1702/31)**
>
> For further ideas, have a browse in the threads where this has previously been explored: http://www.choiceofgames.com/forum/discussion/comment/70902#Comment\_70902 and below Just keep in mind that these discussions took place when you still...

---

<div class="post-metadata">

**Author:** ![P\_Tigras](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/p_tigras/32/626_2.png) [@P\_Tigras](https://forum.choiceofgames.com/u/P_Tigras)\
**Post date:** [October 4, 2013, 7:27am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/8 "2013-10-04T07:27:35Z")

</div>

Variables can be capitalized in choicescript. Choicescript isn’t case-sensitive. Just recognize that:

VAR, VAr, VaR, vAR, vaR, vAr, Var, var

are all the same variable to choicescript.

This \*used\* to be a potential problem because javascript, unlike choicescript, is case-sensitive, and global (ie. permanent) variables used to be defined in the javascript file mygame.js. It still is a potential issue if you’re still defining your global variables in mygame.js, but isn’t an issue if you’re defining them in startup.txt

In order to avoid confusion people were told to avoid using capitalized letters in variable names in the old days, but you could, as long as you defined them entirely as lowercase in mygame.js. Then you could capitalize them however you liked when you referenced them in you choicescript files. If you define them in startup.txt however, it doesn’t matter, as that’s a choicescript file. Just understand that you can’t make two different variables by changing capital letters.

I capitalize my variable names for greater legibility all the time.

---

<div class="post-metadata">

**Author:** ![CS\_Closet](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cs_closet/32/684_2.png) [@CS\_Closet](https://forum.choiceofgames.com/u/CS_Closet)\
**Post date:** [October 4, 2013, 9:26am UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/9 "2013-10-04T09:26:18Z")

</div>

@P_Tigras  
Thanks for clearing that up. It’s always good to know _why_ something will or won’t work and the capitalization thing has been confusing me since the last CS update.

Now, if I can only figure out if that blank line before the \*label issue still causes sporadic errors… :-?

---

<div class="post-metadata">

**Author:** ![jasonstevanhill](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jasonstevanhill/32/198375_2.png) [@jasonstevanhill](https://forum.choiceofgames.com/u/jasonstevanhill)\
**Post date:** [October 4, 2013, 5:23pm UTC](https://forum.choiceofgames.com/t/gender-options-help/1763/10 "2013-10-04T17:23:23Z")

</div>

I still recommend that all code be entirely in lower case.
