So, I’ve run the quick test before and never had this issue until recently. The file in question hasn’t been changed in a long while so I’m not sure why this is an issue now.
The quick test fail states that the code is attempting to fall out of a *choice statement without a *goto or *finish or the like, but that’s simply not true. The *Choice code is extremely simple and straightforward so I can’t figure out why it’s tripping up the quick test.
*choice
#Go to the Galaxy Map
*gosub_scene routines event_roll
*if (event_chance <= 80)
*goto_scene Galaxy_Map
*elseif (event_chance >= 81)
*rand event_choice 1 2
*label event_reroll
*if (event_choice = 1)
*if (roy_and_rebel_event = 0)
*set roy_and_rebel_event 1
*set num_events_visited +1
*goto_scene interaction_events roy_and_rebel_event
*elseif (num_events_visited < 2)
*set event_choice +1
*goto event_reroll
*else
*goto_scene Galaxy_Map
*if (event_choice = 2)
*if (roy_and_penelope_event = 0)
*set roy_and_penelope_event 1
*set num_events_visited +1
*goto_scene interaction_events roy_and_penelope_event
*elseif (num_events_visited < 2)
*set event_choice +1
*goto event_reroll
*else
*goto_scene Galaxy_Map
*elseif (num_events_visited < 2)
*set event_choice 1
*goto event_reroll
*else
*goto_scene Galaxy_Map
#Go to the Cargo Bay
You head inside the ship's elevator and select "Cargo Bay." Once the elevator doors close, you feel the slight shift as it begins descending.
*goto_scene cargobay
*selectable_if (demo_version = false) #Talk to Penelope
*goto_scene Penelope
*selectable_if (demo_version = false) #Talk to Argile
*goto_scene Argile
*selectable_if (demo_version = false) #Talk to Roy
*goto_scene Roy
The error is for the choice “Go to the Cargo Bay”. As you can see, it’s pretty basic, there’s a short description following the choice and a *goto_scene right after. And yes, the file for that scene exists.
If I delete that choice segment and run the quick test, the test succeeds, no errors. The indentation is all fine, I’ve typed it and retyped it to check… but it fails every time. I haven’t yet tried moving the choice’s position in the order but it really shouldn’t matter if I did, right?
Am I missing something obvious?