Help with Party Death alternative Event.

I noticed that when individual party members die they are still able to walk around on the map. That didn't make sense to me so I wanted to remove the dead party members and spawn them in at a basecamp where they could be picked up again later by the active party members. That worked like intended. Here's how I had that set up:

Ind Death Common Event.png


Here's the party members at camp and what happens when you pick them up again:

Party at Camp.png


I then wanted an event that happens when the entire party dies, because if I didn't create one the player becomes invisible and can't do much besides move and travel to the camp to get the party members back.
I wanted the player to respawn at camp with their entire party healed. I knew I likely needed Control Variables for that. So I set them up:

Full Party Death Variables.png


And here's what happens when you talk to the respawned party members and how I set up the Common Events on the map with the possibility of death:

Party is Dead Common Event.png



I don't understand where I went wrong, but as soon as one party member dies, the whole party gets teleported to the camp as if the Control Variable is = 4. The Control Variable for one dead party member should only be +=1, right?
And one more thing, I set up the possibility of on map death, so it's not just death through combat. setting up a "Can Lose" condition won't give me the results I want.

I have tried a few more things, such as script commands to check if Switches 0015 to 0018 are on (I don't think I did it right because it gave me a syntax error), I tried nested Conditional Branches, no effect.

I'm new at all of this, so please explain it to me in simple terms and step by step instructions. In engine pics are greatly appreciated, in English please.

Edit: Please refer to post #17 for exact examples and pics of what I want to occur and the problem that I'm having.
I only gave it a quick look, but I think it's because you have the events that check deaths on parallel. So if you have only 1 character dead, the parallel event keeps running and calling the common event that says: "remove character X", "control variable +1" etc. And then the variable raises to 4 in an instant and that causes the 2nd parallel event to run.
I only gave it a quick look, but I think it's because you have the events that check deaths on parallel. So if you have only 1 character dead, the parallel event keeps running and calling the common event that says: "remove character X", "control variable +1" etc. And then the variable raises to 4 in an instant and that causes the 2nd parallel event to run.

I see what you're saying. But how do I fix it?
I see what you're saying. But how do I fix it?
What if you would check if the Actor is actually in the Party before checking if the actor is dead?
Bccause then it should just skip the 2nd If State, If the Party member is Dead. So it would only trigger if the actor is in the party and Dead.
Maybe like this. Bit I couldnt test it at the moment.
1716675124876.png
Ok, it works, thank you! But how do I do the respawn at camp if all the party members are dead event?
Ok, it works, thank you! But how do I do the respawn at camp if all the party members are dead event?
I think turning your 'Soul At Camp' switch ON (the ones who need to respawn, however you named them) will have them at the camp ready to go.
I think turning your 'Soul At Camp' switch ON (the ones who need to respawn, however you named them) will have them at the camp ready to go.
I know that, but I meant if everyone in the party dies. Because in my original post, I said that if everyone in the party dies the player becomes invisible and can't do much besides move and travel to the camp to get the party members back. I want the player to respawn at camp with their entire party healed if all of the party members die. How do I do that?
I know that, but I meant if everyone in the party dies. Because in my original post, I said that if everyone in the party dies the player becomes invisible and can't do much besides move and travel to the camp to get the party members back. I want the player to respawn at camp with their entire party healed if all of the party members die. How do I do that?
Maybe I am missing something, but wouldn't you just do this?

Edit: Sorry, the posting messed up and double posted, but here is the link (read the After Game Over Common Event ID Section):

Hope this helps!
I know that, but I meant if everyone in the party dies. Because in my original post, I said that if everyone in the party dies the player becomes invisible and can't do much besides move and travel to the camp to get the party members back. I want the player to respawn at camp with their entire party healed if all of the party members die. How do I do that?
Isn't that what you are doing with one of the events? Is it not working? (I'll have to re-read and respond later, my apologies if this questioning is redundant).

Edit: Double-post error - I only edited the page but it posted twice
Isn't that what you are doing with one of the events? Is it not working? (I'll have to re-read and respond later, my apologies if this questioning is redundant).

Yes, I tried that but it isn't working. If there was a way to check in a conditional branch if the entire party is effected by dead I would do that.

The link you gave me is sending me to an inactive page.
Yes, I tried that but it isn't working. If there was a way to check in a conditional branch if the entire party is effected by dead I would do that.

The link you gave me is sending me to an inactive page.
1716746540075.png

With enough If States you could write an Event that checks if everyone is dead.
And if you want the player to be invisible just use " Transparency on" just remember to turn "transparency off"
1716746713998.png

For the Respawn it depends on where you are. for the combat via Event you just allow lose. and then just teleport your character to your map and "recover all" I guess.
If your party dies outside of Combat or via random Encounter you might need a Plug In. at least I have one for that occasion.
View attachment 306428
With enough If States you could write an Event that checks if everyone is dead.
And if you want the player to be invisible just use " Transparency on" just remember to turn "transparency off"
View attachment 306429
For the Respawn it depends on where you are. for the combat via Event you just allow lose. and then just teleport your character to your map and "recover all" I guess.
If your party dies outside of Combat or via random Encounter you might need a Plug In. at least I have one for that occasion.
This is what I just tested out, in and out of combat death:


FPD.png


For in combat death it just spits me back out of combat with 1 HP back where the combat started. For out of combat it just plays the regular Game Over scene.

And I do not want the player to become invisible. Once all party members are dead in my previous testing, the player has no more party members and is controlling a glitched out invisible thing. This is not what I want to happen.
You don't really need to reinvent the wheel, there are already plugins designed to offer you alternatives to Game Over.

I Googled "rpg maker mz game over plugin" and this is the second result:

You specify a common event to be run when the entire party dies, and the plugin takes care of all of the checking for you - it will only run when the entire party dies, and it won't display Game Over if you tell it not to.
You don't really need to reinvent the wheel, there are already plugins designed to offer you alternatives to Game Over.

I Googled "rpg maker mz game over plugin" and this is the second result:

You specify a common event to be run when the entire party dies, and the plugin takes care of all of the checking for you - it will only run when the entire party dies, and it won't display Game Over if you tell it not to.

I downloaded and am using that plugin now. But I here's what I actually want to happen: Say there are four members in the party, if party member one dies, party member one respawns at the camp and members two to four can go and get them back. If party members two and three die, party members one and four go back to the camp to get them back. That scenario works.

But as I have it set up, if all four party members die the game glitches and the player controls an invisible, non-existent actor because there are no party members left. This is not what I want. The Game Over plug-in cannot fix this as far as I know. I'm trying to find a solution for this specific problem.

When party members are dead and they get out of combat, in vanilla RPG Maker MZ they can still walk around on the map, that's what I was trying to fix this entire time.
But as I have it set up, if all four party members die the game glitches and the player controls an invisible, non-existent actor because there are no party members left.
Then you shouldn't be removing the actors from the party during the battle.

Put the checks and removal into a parallel event that place on each map where you can have fights. At the bottom of the event, put the Erase Event command so it only runs once each time the map is loaded.

Alternately, you can use a plugin that runs a common event at the end of battle and put the stuff there. Any such plugin should distinguish between a victory and defeat end of battle.
I downloaded and am using that plugin now. But I here's what I actually want to happen: Say there are four members in the party, if party member one dies, party member one respawns at the camp and members two to four can go and get them back. If party members two and three die, party members one and four go back to the camp to get them back. That scenario works.

But as I have it set up, if all four party members die the game glitches and the player controls an invisible, non-existent actor because there are no party members left. This is not what I want. The Game Over plug-in cannot fix this as far as I know. I'm trying to find a solution for this specific problem.

When party members are dead and they get out of combat, in vanilla RPG Maker MZ they can still walk around on the map, that's what I was trying to fix this entire time.
so you want at least 1 party member left in the party? you could create a variable and name it for example "party size", always increase it by 1 if you add a party member to your party and decrease if one leaves. then you could check before removing one party member if the party size is 1. if yes, then don't remove the character. if no then remove the character.

For special things you will need a plug in I guess.
Then you shouldn't be removing the actors from the party during the battle.

Put the checks and removal into a parallel event that place on each map where you can have fights. At the bottom of the event, put the Erase Event command so it only runs once each time the map is loaded.

Alternately, you can use a plugin that runs a common event at the end of battle and put the stuff there. Any such plugin should distinguish between a victory and defeat end of battle.


I am not being understood, which is my fault because I didn't provide adequate examples.

When any death happens in vanilla RPG Maker, the Actors can walk around on the map like nothing happened. Like so:

Dead Actors Van Game.png


I do not want that to happen. I want the dead actors to be removed to simulate them being too hurt to continue and they're being sent to camp to recover. Then the living actors must go back to camp to retrieve the now healed actors. Like so:

Ind Death Common Event.png

Want.png
In or out of combat, with or without the plugin, the above is the result.

What I want to happen is something like this. But it doesn't work:

FPD.png


The plug-in does not fix my problem. Can you, or anyone, tell me how to make my desired outcome happen? I am a visual learner and need exact pictures of how your code looks in engine in English, I can't follow paragraphs of vague instructions well.
so you want at least 1 party member left in the party? you could create a variable and name it for example "party size", always increase it by 1 if you add a party member to your party and decrease if one leaves. then you could check before removing one party member if the party size is 1. if yes, then don't remove the character. if no then remove the character.

For special things you will need a plug in I guess.

When you have the time, can you post pics in engine/in game so I could see how that's done? Because that sounds like exactly what I want to do.
I am not being understood, which is my fault because I didn't provide adequate examples.
No, I understand you, but I don't think you understood me 😉

I understand you don't want actors that die in battle to be in your party afterward, walking as followers.

But in my previous post I said you shouldn't remove them during the battle.

If you use either of the solutions I mentioned - a parallel event that runs on the transition back to the map, or a plugin that runs a common event at the end of battle - then you will still be removing dead actors from your party, but not during battle.

That means if everyone dies during battle, the normal game over process will kick in, which is what I gave you the plugin to address, which means you'll never have a situation where your party has all actors removed from it.

If any fewer than the entire party die, and you manage to complete the battle, then your other event takes the corpses out of the party.
No, I understand you, but I don't think you understood me 😉

I understand you don't want actors that die in battle to be in your party afterward, walking as followers.

But in my previous post I said you shouldn't remove them during the battle.

If you use either of the solutions I mentioned - a parallel event that runs on the transition back to the map, or a plugin that runs a common event at the end of battle - then you will still be removing dead actors from your party, but not during battle.

That means if everyone dies during battle, the normal game over process will kick in, which is what I gave you the plugin to address, which means you'll never have a situation where your party has all actors removed from it.

If any fewer than the entire party die, and you manage to complete the battle, then your other event takes the corpses out of the party.

Ok, I think I understand. Can you show me how that can be achieved in engine? Like post screenshots? I want to make sure I know exactly what I'm doing and that there are no more misunderstandings.

And I want this to work out of battle too.

Edit: I have the plugin, but as I've said it does not fix my problem.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-party-death-alternative-event.168987/