Hi, I’m really new at this, but i’m trying to create a game.
Basically I have two games thus far. One i’m working on is really basic, with no gender, no stats etc. And that one can run perfectly.
However I’m getting a problem with my other game.
Will post the draft code below for the section i’m having problems with. Basically every time it gets to the Master/Mistress part, it doesn’t work, and i’m not sure whats wrong.
It will say: line 62: Non-existent variable ‘male’
What does that mean?
*page_break
“BANG!”
*line_break
You hear a scream.
*line_break
Red. That’s all you see. Red.
Someone shouts your name! You turn around and see Jones, your Butler calling out to you.
*label gender
Are you a Young Master or Young Mistress?
*choice
#Master
Ah, so you’re a Young Master. It’s truly an honor.
*set gender “male”
*goto naming
#Mistress
Ah, so you’re a Young Mistress. It’s truly an honor.
*set gender “female”
*set male false
*set master “mistress”
*set he “she”
*set him “her”
*set his “her”
*set sir “ma’am”
\*goto naming
*label naming
What is your name?
*choice
*if male
#James
*set name “James”
*goto butler_call
*if male
#Evan
\*set name "Evan"
\*goto butler_call
\*if male
#Howard
\*set name "Howard"
\*goto butler_call
\*if male
#Joseph
\*set name "Joseph"
\*goto butler_call
\*if male
#I would like to decide a name for myself.
Very Well. What would it be?
\*input_text name
\*goto butler_call
\*if male = false
#Elizabeth
\*set name "Elizabeth"
\*goto butler_call
\*if male = false
#Jasmine
\*set name "Jasmine"
\*goto butler_call
\*if male = false
#Belle
\*set name "Belle"
\*goto butler_call
\*if male = false
#Victoria
\*set name "Victoria"
\*goto butler_call
\*if male = false
#I would like to decide a name for myself.
Very Well. What would it be?
\*input_text name
\*goto butler_call
*label butler_call
Master ${name}! Master ${name}!
You realize Jones is running toward you frantically. His face is wet with perspiration.
*finish