Help: Battle event

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?
There 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.
There 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.
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?
One of the 1st things that comes to my mind is, setting a conditional branch under the "Win" condition in your Battle Event.
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.

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
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.

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?
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.
Isso poderia funcionar perfeitamente, mas está fazendo algumas suposições. Uma é que o processamento da batalha está sendo chamado por um evento, o que é uma suposição justa com base na descrição de "ficção interativa", mas não foi dito explicitamente pelo OP😛iscadela:

Ele também presume que não há itens de renascimento, pois apenas verifica se alguém está morto no final da batalha, não se alguém morreu durante a batalha.


Se a sugestão de Poptart não funcionar 100% para você, eu usaria eventos de batalha dentro da tropa que você está lutando.

Você clica na condição e uma das opções é Ator HP. Portanto, você cria dois eventos - um para cada ator, HP é <= 0% e o único comando de evento real é ligar o interruptor. Faça a Span Battle, pois você só se importa com isso acontecendo uma vez em toda a luta.


O fórum só tem texto, não hospeda vídeo. Mas você pode fazer uma pesquisa simples no YouTube por "eventos do RPG Maker" ou "variáveis" ou "interruptores" etc. Existem vários canais que criaram conteúdo. Qualquer coisa que foi feita para o MV também será para você.

De cabeça, Echo607, SRDude, Driftwood Gaming, Level Up vêm à mente.
Ok. Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/help-battle-event.153563/