I need help Non-Existent variable error

Please i need help i’m new to choice script and i keep getting this error "Non-existent variable ‘name’ "

this is my choicescript_stats
This is a stats screen!

*stat_chart
text Name
text Gender
percent Strength
percent Magic
percent Stealth
percent Health
percent Mana
text Money

and this is what’s in Mygame

*title My First ChoiceScript Game
*author Grimm Nightcore
*scene_list
TheBeginning
startup
animal
variables
gosub
ending
death

*create name “”
*create gender “Unknown”
*create strength 10
*create magic 10
*create stealth 10
*create mana 100
*create health 100
*create money 0

i don’t know what’s wrong with it maybe someone could help me

I think you need to put the variables before the *scene_list command :slight_smile:

Okay thanks ill try that

Tried it it did not work :frowning:

*title adfgh
*author Ludi

*create name “Unknown”
*create surname “Unknown”
*create mcgender “Non-specified”

*scene_list
    startup
    chapter1

For example, here is a sample of the code of the game I’m currently working on.

Nghmmm…
On the *scene_list, try moving the “TheBeginning” down and put the “startup” at the first order.

FYI, if you’re about to paste your code, you can use grave accent (the one with tilde, at the top-left keyboard “`”) as a tag. This way, your code will look clean.

1 Like

Try using the search function.