MV I need a permanent death system

I need a permanent kill system, either through a plug in or with a script.
If possible I need a way to check which members of the group are being affected by the "Death" effect and that only the affected members disappear from the group.
I know there are ways to achieve a permanent death system by specifying the ID of the actors, but I use a plug-in that duplicates the actors and adds another ID, that's why I need another way to achieve this system, any idea or something that can help me?

I use RPG Maker MV.
What do you mean you're using a plugin that duplicates the actors and adds another ID?
I have moved this thread from General Discussion to JS Plugin Requests.
I have moved this thread from General Discussion to JS Plugin Requests.
What do you mean you're using a plugin that duplicates the actors and adds another ID?
I use this plug-in: http://sumrndm.site/copy-actors/ [Mod edit: cleaned link.]

I have moved this thread from General Discussion to JS Plugin Requests.
I clarify that this is not just a plug-in request, any kind of solution that solves this problem works for me.
I need a permanent kill system, either through a plug in or with a script.

Either way, it is not a general discussion. That section is for non-game specific RPG Maker topics. People will frequently note any solution in this section as you’ve requested, though. I’ve also merged your double post.
I don't understand your problem.

The SRD plugin assigns copied actors their own ID which is retrieved through the same actorId() any code should always be using.

I put it in a test project, added an actor with the CopyActor plugin command, then did the regular
Code:
$gameParty.removeActor($gameParty.members()[1].actorId())
and it worked perfectly.

The copy actors plugin should be compatible with anything else you use.
that's why I need another way to achieve this system, any idea or something that can help me?
You're overthinking it.
A player can only revive a dead actor if you as the developer give him that option.
No actor can be revived without you allowing it.

Don't make a skill to remove the death state or that targets dead actors, and the player can't heal them that way.
and either don't use inns and recover commands, or modify them with checking for dead actors with conditional branches to prevent events from reviving your actors.

then all you would have to do is removing the actors from the party, which was explained how to above.
What you might want to do is remove actors from the party after they have been killed. This can be done after battles, for instance by a parallel event. (Parallel events don't do much during battles.)

Set a common event to be a parallel event. Make sure that you have a 'Wait' command in the parallel event. (I suggest trying a wait of about 30 frames.) Check each member of the party to see whether they are dead (the conditional branch lets you check whether a particular actor has a particular state). If so, use 'Change Party Member' to remove them from the party.

Things get a bit more complicated if you have a lot of actors and you don't know who the player has in the party, but it can still be done fairly easily by eventing. Having permanent death is much easier than keeping track of removed, dead former party members so that you let the player restore them to life.

If you are using a parallel event to keep track of time then you could just call the casualty processing event from that instead of making the casualty process event parallel.
I don't understand your problem.

The SRD plugin assigns copied actors their own ID which is retrieved through the same actorId() any code should always be using.

I put it in a test project, added an actor with the CopyActor plugin command, then did the regular
Code:
$gameParty.removeActor($gameParty.members()[1].actorId())
and it worked perfectly.

The copy actors plugin should be compatible with anything else you use.
The script you provided works, but now I need one that will help me determine when group members are dead, i.e. a conditional script.

Edit: I found the solution

imagen_2023-12-04_201351127.png


This is the formula for success, I just have to copy and paste this script, changing that number up to 3 and that's it, thank you very much for your collaboration. ^_^

Either way, it is not a general discussion. That section is for non-game specific RPG Maker topics. People will frequently note any solution in this section as you’ve requested, though. I’ve also merged your double post.

The issue is already solved, you can close it if you want.
This is the formula for success, I just have to copy and paste this script, changing that number up to 3 and that's it, thank you very much for your collaboration. ^_^
You...could do that. If you're using some code, I dunno why you wouldn't use a bit more to do it all in one step.

Code:
$gameParty.deadMembers().forEach(member => $gameParty.removeActor(member.actorId());

That will remove all dead members from your party. But that should be basically what any existing permadeath plugin you might've found does.

Anyway, good luck.
You...could do that. If you're using some code, I dunno why you wouldn't use a bit more to do it all in one step.

Code:
$gameParty.deadMembers().forEach(member => $gameParty.removeActor(member.actorId());

That will remove all dead members from your party. But that should be basically what any existing permadeath plugin you might've found does.

Anyway, good luck.
Sorry I don't know much about scripts, I do what I can, the important thing is that we found a solution 👍

Edit:

index.php


This crap solves the problem but I have seen that it causes a lot of lag to the game, to solve this I bring you the real formula for success:

1702070709812.png


I comment this in case someone else finds it useful.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-a-permanent-death-system.163564/