Test as you build
Play the scenario from the after every piece you add: spawns, then the first task, then its trigger, then its . When something breaks you will know it was the last thing you added. Check the for script errors each time; a framework piece with a missing link usually says so there.