Having trouble with a best friend's gender

Hiya~

I’m creating a game wherein your best friend accompanies you throughout. Early on you’re asked what your best friend’s gender is, and I’ve written the following:


*label Flashback

Memories float unbidden to the forefront of your mind, of the bright lights and drunken haze of the night before. Your best friend, grinning and leaning on your shoulder as you both stumble down the streets towards what you can only assume to be home. 

What gender is your friend?

*choice
	#Male, same as me. 
		So you're both males?
		*choice
			#Yep!
				Right you are.
				*set gender Male
				*set friendgender Male
				*page_break
				*goto Test
			#No, that's not right. 
				*goto Flashback
	
	#Female, wandering down the street with her smashed guy friend. 
		So you're male, and your friend is female?
		*choice
			#Yep!
				Cool.
				*set gender Male
				*set friendgender Female
				*page_break
				*goto Test
			#No, that's not right.
				*goto Flashback

	#Male, here to escort a lady out drinking. 
		So you're female, and your friend is male?
		*choice
			#Yep!
				Good to hear.
				*set gender Female
				*set friendgender Male
				*page_break
				*goto Test
			#No, that's not right. 
				*goto Flashback

	#We're both girls, of course! 
		So you're both female?
		*choice
			#Yep!
				Awesome.
				*set gender Female
				*set friendgender Female
				*page_break
				*goto Test
			#No, that's not right.
				*goto Flashback


#label Test

The creates section is:

*create Name ""
*create Strength 20
*create Speed 20
*create Stamina 20
*create Intelligence 20 
*create Magic 20
*create Dominance 50
*create Submissiveness 50
*create gender ""

*create friendname ""
*create friendgender ""

But when I try to run it, it tells me about a non-existent variable “male”.
Isn’t it just supposed to put “male” into the friendname area, and I can go on from there?

It’s case sensitive so be careful of those capitals. It’s generally easier to just keep all of your variables in lower case.

So male and Male are actually considered different.

Oh. I’ll rectify that. :3 Thank you.

Might also want to put quotes around “Male” and “Female”. Otherwise, ChoiceScript tries to treat those as stats.

Awesome, that worked. <3 Thank you very much.

No problem. Good luck with your coding. :slight_smile: