Problem with Stats. Help!

Ok for some reason I can’t seem the get the gender stat set. It keeps saying variable exists but has no value.

Here’s my code.

This is a stats screen!
*create gender

*stat_chart
text Gender

Then Startup

*create gender
Your driving down another dirt road. This has become your life now, driving. You never stop, except for food, gas, and rest. You’re not driving anywhere, its just that you can’t stay in one place. You never look back, but sometimes you think back.

This is one of those times.
*page_break

Day after receiving driver’s liscense:
“Hold up a sec dad, I need to use the restroom”
*choice
#You head to the Men’s Restroom.
*set gender “Male”
*finish
#You head to the Women’s Restroom.
*set gender “Female”
*finish

And the My game

/*
* Copyright 2010 by Dan Fabulich.
*
* Dan Fabulich licenses this file to you under the
* ChoiceScript License, Version 1.0 (the “License”); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.choiceofgames.com/LICENSE-1.0.txt
*
* See the License for the specific language governing
* permissions and limitations under the License.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied.
*/

// Specify the list of scenes here, separated by commas, with no final comma

nav = new SceneNavigator([
“startup”
,“choicescript_stats”
,“animal”
,“variables”
,“gosub”
,“ending”
,“death”

]);

// Specify the default starting stats here

stats = {
gender: “unknown”

};

// Specify the stats to use in debug mode

debugStats = {
gender: “unknown”
};

// or just use defaults
// debugStats = stats

If you use mygame.js, you don’t need to create the variable in your scene. Just set gender

*set gender “female”

In your choicescript_stats file use this code:

*stat_chart text name text gender

@JimD Thank you so much, oh and would you mind looking at my other post I need advice.

In most games, gender will be a binary. Therefore, you could also set male as a boolean, and change it to false if the reader decides to be female. Less chance of stupid typographical errors that way.