>>3964265He stores all the story events in a giant array and iterates through it via giant switch case. He could've at least used enums man. But that's not even the problem, state machine is not a solution for games with diverging story lines depending on your choices.