This error is really confusing me, if it just didn’t work then that’s one thing, but it only fails under specific conditions. If the family_name variable is set to Dale it works, if it is dale, I get the error, and if it is anything else it works. If I change the *if to *if (family_name = “dale”) then it reverses, it works with dale, I get the error with Dale, and it works if it’s anything else. I’m confused because I didn’t think the variables were case sensitive? And if they’re not I’m really not sure what the problem is? Just to confuse my self even more, if I change *if (family_name = “Dale”) from Dale to Hale, it brings up the error if the variable it set to Hale, hale, or anything else.
*label name
What's your first name?
*input_text first_name
Okay, what's your family name?
*input_text family_name
Well, ${first_name} ${family_name}, this is your story…
*choice
#That's my name, let's get on with it!
Someone's impatient. That's what got you into this mess in the fist place!
*if (family_name = "Dale")
Your name's ${family_name}? You're kidding right?
*choice
#Nope
Ah ha, suit yourself.
*finish Chapter 1 - Human Drudgery
#Umm…yes?
>:[
*page_break
*goto name
*else
*finish Chapter 1 - Human Drudgery
#Who the hell is ${first_name} ${family_name}?
*goto name
To try to correct this problem I changed the code to the below. This has stopped the error from coming up and it works when the if statement is true, but when false, it is still presenting the nested choice, I’m not sure how to correct this.
Well, ${first_name} ${family_name}, this is your story…
*choice
#That's my name, let's get on with it!
Someone's impatient. That's what got you into this mess in the fist place!
*if (family_name = "Hale")
Your name's ${family_name}? You're kidding right?
*choice
#Nope
Ah ha, suit yourself.
*finish Chapter 1 - Human Drudgery
#Umm…yes?
>:[
*page_break
*goto name
*else
*finish Chapter 1 - Human Drudgery
#Who the hell is ${first_name} ${family_name}?
*goto name