Error Messages


#1

In the first chapter the player would choose the name for their character but when the game does the randomtest it comes up saying “non-existant variable” and then the name choice

This is the code incase I put something in wrong

*choice
	#Jennifer
		*set name Jennifer
		*goto paragraph1
	#Emily
		*set name Emily
		*goto paragraph1
	#Violet
		*set name Violet
		*goto paragraph1
	#Sarah
		*set name Sarah
		*goto paragraph1
	#Other 
		*input_text 
		*set name
		*goto paragraph1

Thanks for the help


#2

Did you *create the variable “name” in your startup file? It should be *create name “none” (or whatever you want as a placeholder between the quotation marks).

Also, put string variables in quotation marks. “Violet” rather than Violet.

Also, also, that input text bit isn’t right. Someone not typing on an iPad, can you help here?


#3

*input_text should have the variable name like this:

*input_text name


#4
*choice
	#Jennifer
		*set name "Jennifer"
		*goto paragraph1
	#Emily
		*set name "Emily"
		*goto paragraph1
	#Violet
		*set name "Violet"
		*goto paragraph1
	#Sarah
		*set name "Sarah"
		*goto paragraph1
	#Other 
		*input_text name
		*goto paragraph1

These are the change you should’ve done to your code.