Tracking monsters killed... when some of them can split into two?

I have a relatively complex problem here... I'm implementing a bounty system that tracks the number of monsters you kill of a certain type. The only twist is, the Slime enemy in my game splits into two if you hit it with certain attacks.

The way this split works is: when the split event is triggered, the "Slime" enemy is transformed into a "Mini Slime," and a second "Mini Slime" is appeared next to it. For the bounty, split Slimes still only count as one, so you have to kill BOTH Minis to gain 1 credit toward the bounty.

I'm not sure how exactly to program this. I have an experimental script working that looks like this. When Enemy #1 is reduced to 0, first it checks to see if it's split (by checking if the second Mini Slime (#5) has appeared). If false, it adds 1 to the bounty. If true, it checks to see if it's already dead, and if so, adds 1 to the bounty; if not, the variable is not affected.

Code:
if #5 is appeared {
if #5 is affected by knockout {
control variables: #0043 bounty slime +=1
}
}
else {
control variables: #0043 bounty slime +=1
}

When it comes to the Mini Slime, the script merely checks to see if the main Slime is already dead, and if so, adds 1 to the bounty.

Code:
if #1 is affected by knockout {
control variables: #0043 bounty slime +=1
}

So basically, killing either Mini Slime only adds 1 to the bounty if the other is already dead. If you just kill 1 Mini Slime, then escape from the battle, you gain nothing toward the bounty.

This method works just fine when they're killed one at a time. The only problem is what will happen when the deaths are simultaneous. I'm using Yanfly's Action Sequences, which causes multiple enemies struck by the same attack to die simultaneously. When this happens, each script detects the other as being dead when they both run, causing them to add 2 to the bounty.

Perhaps I'm going about this the wrong way. Can anyone help me out with this?
Game mechanics design is not for project specific feedback or implementations, but instead for IF you should implement things and such. As such:

I've moved this thread to MV Support. Thank you.

I found a tutorial on how to do this in ACE without plugins. I'm sure it would work in MV as well

https://forums.rpgmakerweb.com/index.php?threads/how-to-clone-enemies-in-a-troop-no-scripts.15092/
If you split the Slime at, say, spot #3 in the troop, into two Mini-Slimes at spots #3 and 7, and you're using Troop events to track monster kills - then simply track it for the enemy at Slot #3 in that troop, and don't track it for #7. The one place that would give wonky results is if the player kills one Mini-Slime or the other and then escapes battle, but I feel like that will happen so rarely (and even then, the result could be seen as "reasonable" in that you did kill one enemy, or didn't kill the whole thing) that it will be forgivable in almost any setup. Trying to track whether both were killed without super-specific coding would probably require creating a new property for every enemy, and that's a hassle. I say go easy on yourself!

Alternatively, you could just allow both Mini-Slimes to count as kills. I do that when tracking KO's in my game, for a boss fight where a giant slime can split itself into two multiple times when it reaches low health. Any time you actually KO a slime of any size (not counting when it splits, which is not a KO), the characters gets credit for a KO. That makes things far easier.
Perhaps add 1 when a switch is off and turn it on. That would be the simplest solution that comes in my head.
Alternatively, you could just allow both Mini-Slimes to count as kills. I do that when tracking KO's in my game, for a boss fight where a giant slime can split itself into two multiple times when it reaches low health. Any time you actually KO a slime of any size (not counting when it splits, which is not a KO), the characters gets credit for a KO. That makes things far easier.

I will probably end up doing this. It's a bit to complicated to try and and make them both count as one. Also I think it will end up balancing out that splitting slimes extends the fight, so you should get some extra reward for it.

Thanks for the advice!

Original thread: https://forums.rpgmakerweb.com/threads/tracking-monsters-killed-when-some-of-them-can-split-into-two.113778/