Automated Battle Trouble

Hiya!

I'm having a bit of trouble working out a automatic battle scene for a certain event within my story. The event would entail a character and two opposing characters:

Spoiler: Map
Annotation 2020-02-15 141231 (3).png

I'm trying to have a scene where after some dialogue with the two characters at the bottom (After they've walked up to the middle of the room), the Crystal glows and transports a character (The one at the top right) in front and cause a battle scene to occur:

Spoiler: Battle Processing
Annotation 2020-02-15 141018.png
Annotation 2020-02-15 141018 (2).png

I've tested the code so far and it does work in my favor, although I'm having a bit of trouble creating a Actor with a similar look to the Fairy sprite:

Fairy.png


When I tested the overall events using the main cast, after the character dies, it ends up triggering a game over after everything finishes running.

Can anyone help me out? I'm aiming to create a scene involving an actor landing a hit and failing to do any damage, then taking several hits from one of the enemies without dropping their health to 0.
When you start the fight, check can lose. That way it will continue if you hit 0.

Also as for the damage, that is math. Check your damage formula, and the stats of the enemy and character, and then calculate how much you can do before you KO them.
@bgillisp Ah I see! Now it works.

I'm still learning all the ins and outs of RPG Maker in general, so this really helps a lot. Thank you again!

Original thread: https://forums.rpgmakerweb.com/threads/automated-battle-trouble.118261/