Enemy division

Hi, everyone!

I'm looking for a plugin to create an enemy division system. It should work like this:

  • Divisible enemies are marked with a notetag (e.g.: <divide: x, x>, where "x" is an enemy ID).
  • Skills that can trigger the division are marked with another notetag (e.g.: <divide>).
  • When a divisible enemy receives a "hit" from a skill that can trigger its division, that enemy is substituted by any other enemies specified in its notetag.



Example: Let's suppose my database has two enemies. #1 is "Big slime", #2 is "Little slime". "Big slime" is a divisible enemy with a "<divide: 2, 2>" notetag. During battle, "Big slime" casts "Mitosis" (a skill with the "<divide>" notetag), thus becoming two little slimes. There's no longer a big slime on the battlefield (so, none of it's EXP, gold or items is awarded), but two little slimes. Both of the little slimes are at full health, no matter how badly beaten the original big slime was (they're simple new enemies!).

Of course, this could be used not only for self-dividing enemies, but for forced divisions (if the skill is offensive) or even for cloning enemies (if the notetag IDs are the same ID than the original enemy). Or, and this is why I'm personally requesting this, for an enemy disarming system: dividing a "bandit" into an "unarmed bandit" and a "sword". Anyway, the self-replicating slimes sound like a lot of fun, too, so I can see a lot of people using the plugin for that.

Thanks for your time, scripters!
Slimes.png



Anyone interested?
I remember doing an boss in rpgmaker vxa that was a big slime, after dealing x amount of damage it would split into 2 medium slimes.


The medium slimes would do the same split into 2 slimes after x amount of damage.


I did this without using any scripts so i sure the same thing is possible in mv without using any plugin you just need to use battle events in the troop where the enemy is.


You can right click on an enemy in the troops and select "appear half way" after that you will need battle events and condition and probably "death state" to set the event condition to activate the event command "enemy appear" witch makes the enemy marked with "appear half way" to appear.


So if you want a bandit to drop its sword you would need to make a enemy troop where you first got the bandit, then you got a bandit without sword set to "appear half way" and a sword set to "appear half way" then you just need to set the conditions to when to "kill" the first bandit while at the same time it will run "enemy appear" event command to make the bandit without sword and the sword to appear.


When it comes to items, exp and gold, just make the "bandit without sword" to reward exp, gold and items.


Im bad at explaining things but if you need more help i can try to give a better explanation with pictures. I believe this is what you are trying to achieve.
I understand. That's a good start and, maybe, with a little scripting (a script call or a damage formula) it could be modified to fit my requirements. I can't use the "death state" to trigger the division, since not every enemy will be disarmed before it dies, but finding an alternative trigger shouldn't be too hard. The true problem is that I need the new enemies to be generated dynamically.
I mean, using hidden enemies that appear halfway can do the trick for fixed troops, but that's not my case. Enemies will be swapped, so I can't specify beforehand what the division skill should spawn in their place. I want it to generate new enemies based on whatever is on the battlefield in that moment, and not what was on the database. Furthermore, using that method would limit a lot my maximum troop size, since every enemy would require three spaces instead of one.
Maybe I could kinda do this if there was a script formula to dynamically add or remove battlers by ID... Does anyone know about something like that?

Original thread: https://forums.rpgmakerweb.com/threads/enemy-division.59824/