This is my first time posting, and I was hoping my first topic would be something more exciting than “help I broke my game” but here we are.
So I have a scene written that chains together multiple if/elseif/if statements, like so…
*if (icecream = "yes") You have ice cream *if (toppings = "chocolatesyrup") with chocolate syrup. *goto beach *elseif (toppings = "strayberrysyrup") with strawberry syrup. *goto beach *else with no toppings. *goto beach *else You have no ice cream. *goto icecream
(This is not my real code, in case anyone was wondering)
The problem is that whenever I quick/random test, I get an error saying that it is illegal to fall out of an if statement, and that I must goto or finish before the end of the indented block. I am confised because I thought that was what I had done. Do the *goto links in my nested if statements not count?
To make things even more confusing, I had playtested this part of the game previously, and everything seemed to work fine there…it was just quicktest that was erroring out.
Any help would be hugely appreciated! Thank you!!!