MV Looking for an enemy swapper plugin with extra functionality.

I'm looking for an enemy swapper plugin with more functionality than what I've been able to find for MV.

I'm guessing everyone's familiar with this classic plugin from yanfly which allows you to set up dummy enemies which are randomly swapped out for a list of other specified enemies when a battle starts. I'm hoping to find a similar plugin or add-on for yanfly's plugin which allows for more dynamic selection of replacement enemies via the note tag field.

Here's the specific functionality I'm hoping for: dummy enemies can have "type", "level range" and "environment" tags (i.e. "normal, 1-5, cave" or "boss, 10-15, forest"), and will then be swapped for enemies with matching note tags.

For example, say my game's starting dungeon is a volcanic cave, I might set up the normal enemy in that dungeon as a swap dummy with the tags "normal, 1-5, cave or fire" - this would then be replaced with a normal enemy of level 1-5 with either the cave of fire environment tags. I could then create, say, a fire crab enemy with the enemy tags "normal, 3, fire and beach", which now has a possibility of showing up in my fire cave since it is the specified enemy type, within the specified level range, and shares at least one environment tag.

The above is the minimum functionality I'm hoping for. The ability to specify rarity for specific enemies, or to specify level ranges/environments via variables would be excellent as well but aren't necessary for this request. My end goal is to use this in conjunction some other available scripts to emulate the treasure map/grotto system from Dragon Quest IX.

I realize this is a fairly specific request - thanks in advance for any help rendered.
How do you determine the level of your enemies? Do you use something like Yanfly's enemy levels (http://www.yanfly.moe/wiki/Enemy_Levels_(YEP))? Should specifying a level for a replacement enemy be part of the swapping plugin?
How do you determine the level of your enemies? Do you use something like Yanfly's enemy levels (http://www.yanfly.moe/wiki/Enemy_Levels_(YEP))? Should specifying a level for a replacement enemy be part of the swapping plugin?
Literally just with the note tags. I'm not doing any enemy level scaling like Yanfly's enemy levels plugin does. The "fire crab" in the above example is a level 3 enemy, is always a level 3 enemy, and has static stats assigned to it (I have my own method for determining what stats an enemy of a specific level should have).

Basically I'm looking for the ability to randomize to enemies with specific note tags, "Level 3" being potentially one of those tags
Took me a bit longer than anticipated , but there you go. Merry Christmas!

Usage:
- Give every dummy enemy you want to swap out the notetag <EOMdummyEnemy>.
- Give every enemy you want to exclude from the swapping system the notetag <EOMnoSwap>.
Every enemy that has neither of these two tags is considered a potential candidate for swapping.

Restrict swapping by category:
You can give both dummy enemies and swap enemies the notetag <EOMenemyCategory: some category>. This is intended for categories such as 'Boss' or 'Normal'. However you are free to use any text as categories. As long as it is written the same (excluding leading and trailing whitespaces; case insensitive), they will register as the same category.
Dummy enemies will only be swapped for swap enemies from the same category.
Dummy enemies without this tag will pull from all categories. Swap enemies without this tag will be included in all categories.

Restrict swapping by level:
You can give dummy enemies one of these notetags <EOMenemyLevelRange: x - y>, <EOMenemyLevelRange: x to y> or <EOMenemyLevelRange: x through y>. A dummy enemy with this tag will only be replaced by swap enemies with a level greater than or equal to x and less than or equal to y. Dummy enemies without this tag will pull from all levels.
You can set the level for swap enemies using the notetag <EOMenemyLevel: x>. If this notetag is not specified, a level of 1 is assumed.

Restrict swapping by environment:
You can give both dummy enemies and swap enemies the notetag <EOMenemyEnvs: some environment>. This is intended for categories such as 'forest' or 'beach'. However you are free to use any text as categories. As long as it is written the same (excluding leading and trailing whitespaces; case insensitive), they will register as the same environment.
You can give an enemy multiple categories by separating them with a , like so: <EOMenemyEnvs: environment 1, environment 2>.
Dummy enemies will only be swapped for swap enemies that share at least one environment.
Dummy enemies without this tag will pull from all environments. Swap enemies without this tag will be included in all environments.

Influence swapping probabilities:
You can give swap enemies the tag <EOMenemyWeight: x>. Whenever a swap happens, the weights of all potential swap enemies will be added up and a random value between 0 and this sum will be determined. Then the weight of the first swap enemy gets subtracted from the random value. If it is now less than or equal to 0, this enemy will be swapped in. Else this process gets repeated for the next enemy.
This is analogous to how target rate gets factored into random targeting.
If this notetag is not specified, a weight of 1 is assumed.

Terms of use:
non-commercial: free, but credits are required
commercial: free, but credits are required (a free copy of your game as a token fee will be appreciated but is not required)
edits for use in your projects are allowed
redistribution in any form (edited or otherwise) is NOT allowed (please link back to this thread instead)

I should really get around to make a thread for my plugins 😅
Took me a bit longer than anticipated , but there you go. Merry Christmas!

Usage:
- Give every dummy enemy you want to swap out the notetag <EOMdummyEnemy>.
- Give every enemy you want to exclude from the swapping system the notetag <EOMnoSwap>.
Every enemy that has neither of these two tags is considered a potential candidate for swapping.

Restrict swapping by category:
You can give both dummy enemies and swap enemies the notetag <EOMenemyCategory: some category>. This is intended for categories such as 'Boss' or 'Normal'. However you are free to use any text as categories. As long as it is written the same (excluding leading and trailing whitespaces; case insensitive), they will register as the same category.
Dummy enemies will only be swapped for swap enemies from the same category.
Dummy enemies without this tag will pull from all categories. Swap enemies without this tag will be included in all categories.

Restrict swapping by level:
You can give dummy enemies one of these notetags <EOMenemyLevelRange: x - y>, <EOMenemyLevelRange: x to y> or <EOMenemyLevelRange: x through y>. A dummy enemy with this tag will only be replaced by swap enemies with a level greater than or equal to x and less than or equal to y. Dummy enemies without this tag will pull from all levels.
You can set the level for swap enemies using the notetag <EOMenemyLevel: x>. If this notetag is not specified, a level of 1 is assumed.

Restrict swapping by environment:
You can give both dummy enemies and swap enemies the notetag <EOMenemyEnvs: some environment>. This is intended for categories such as 'forest' or 'beach'. However you are free to use any text as categories. As long as it is written the same (excluding leading and trailing whitespaces; case insensitive), they will register as the same environment.
You can give an enemy multiple categories by separating them with a , like so: <EOMenemyEnvs: environment 1, environment 2>.
Dummy enemies will only be swapped for swap enemies that share at least one environment.
Dummy enemies without this tag will pull from all environments. Swap enemies without this tag will be included in all environments.

Influence swapping probabilities:
You can give swap enemies the tag <EOMenemyWeight: x>. Whenever a swap happens, the weights of all potential swap enemies will be added up and a random value between 0 and this sum will be determined. Then the weight of the first swap enemy gets subtracted from the random value. If it is now less than or equal to 0, this enemy will be swapped in. Else this process gets repeated for the next enemy.
This is analogous to how target rate gets factored into random targeting.
If this notetag is not specified, a weight of 1 is assumed.

Terms of use:
non-commercial: free, but credits are required
commercial: free, but credits are required (a free copy of your game as a token fee will be appreciated but is not required)
edits for use in your projects are allowed
redistribution in any form (edited or otherwise) is NOT allowed (please link back to this thread instead)

I should really get around to make a thread for my plugins 😅
Wow, you knocked this out of the park! Thanks so much!
Finally got some time to put towards my project and give this plugin a thorough test. By-and-large it's working great, though I did find a bug that through me for a loop for a bit - leaving this info here for any other users:
  • The bug: dummy enemies get swapped out for "blank" enemies
  • The source: blank enemies in the database remain in the swap pool as level-1 enemies with no category or environment (the frequency of this will scale with the number of blank enemies in the database)
  • Solution: add the <EOMnoSwap> tag to every blank enemy in the database.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-an-enemy-swapper-plugin-with-extra-functionality.143241/