It is illegal to fall in to an *else statement

Code in question:

"That was
*if athletics >30
 not bad."
*elseif athletics >40
 pretty good."
*elseif athletics >50
 amazing."
*else
 not the worst I've had."
 *goto asht_ace

Don’t get it. (Lines 855-864, error on 858.)

I’ve had this problem too… if you’re using *elseif or *else, every if, else, and elseif has to have it’s own *goto after it. So…
*if athletics >30
not bad."
*goto (insert where you want to go)
*elseif athletics > 40
*goto (insert where you want to go)
etc etc etc
It’s annoying, so I try to avoid using elseif now, because if you only you *if, you don’t have to goto after every single line

1 Like

Quickest way to fix this is just to put in a *goto link:

*rand athletics 20 60

"That was
*if athletics >30
	not bad."
	*goto next
*elseif athletics >40
	pretty good."
	*goto next
*elseif athletics >50
	amazing."
	*goto next
*else
	not the worst I've had."
	*goto next
*label next
Wow you made it to scene 2?!
*goto finish

*label finish
This is the finish, I hope you saw a scene before this
3 Likes

That worked, thank you.