state = "PLAYER_TURN"
Writing a script for Undertale style battles is notoriously buggy. Here is the debug checklist every creator needs: Undertale Boss Battles Script
Even experienced modders trip over these: state = "PLAYER_TURN" Writing a script for Undertale
"I see... you really aren't like the others." Exit: Character leaves the screen or stays to talk. Defeat Path (Killing) Fatal Hit Dialogue: "So... that's how it is." Undertale Boss Battles Script
def run_attack(pattern): for attack in pattern: start_attack(attack) wait(attack["duration"]) clear_bullets()