Hi, I'm new to the forum and new to rpg maker. I'm creating an interactive fiction game with rpg maker mz. I would like to know if there is a possibility for me to insert a "switch on" (which would allow a condition) if one of the characters dies in battle, as this would create two plot options right after the end of the battle. It is possible?
Help: Battle event
RPG Maker MZ SupportThere is probably a better solution, but what I can tell you is that you can definitely do this.
One of the 1st things that comes to my mind is, setting a conditional branch under the "Win" condition in your Battle Event.
You can have it to where it checks if an actor is under the State (Knockout state), then turn your Switch on if that condition is true.
One of the 1st things that comes to my mind is, setting a conditional branch under the "Win" condition in your Battle Event.
You can have it to where it checks if an actor is under the State (Knockout state), then turn your Switch on if that condition is true.
OK. I think it can be done with variables or conditions, but since I'm a beginner, things get a little more complicated. Are there any video tutorials here on the forum explaining these two contents?
That could work perfectly, but it's making a few presumptions. One is that the battle processing is being called by an event, which...is a fair assumption based on the "interactive fiction" description, but wasn't explicitly said by the OP 😉
It also presumes there are no revival items, as it only checks whether someone is dead at the end of battle, not whether anyone died during the battle.
If Poptart's suggestion doesn't 100% work for you, I would use battle events inside the troop you're fighting.
You click on the condition and one of the options is Actor HP. So you make two events - one for each actor, HP is <= 0%, and the only actual event command is to turn your switch on. Make the Span Battle as you only care about this happening once in the whole fight.
The forum only has text, it doesn't host video. But you can do a simple search on YouTube for "RPG Maker events," or "variables," or "switches," etc. There are a bunch of channels that have made content. Anything that was made for MV will also be the same for you.
Off the top of my head, Echo607, SRDude, Driftwood Gaming, Level Up all come to mind.
Ok. Thank you very much!
Original thread: https://forums.rpgmakerweb.com/threads/help-battle-event.153563/