MV Aoe help! TwT

1. I want to make an aoe attack that targets multiple enemies, but not all enemies. Maybe three adjacent enemies, maybe any 3 of the players choice.
2. I want the damage to be evenly divided between targets, that way attacks that hit all enemies wont be too overpowered in battles against large groups of enemies.
(also, is it possible to make an enemy inpossible to target/damage/affect with player's skills until another enemy/enemies are defeated? Is it possible to have the same be applied to a player so enemies can't target a healer type unless the tank is defeated?)
(I know about target rate btw)
Did you check Yanfly's stuff like 'Area of Effect', 'Selection Control', 'Target Core', 'Battle A.I.'? Might not be exactly what you're looking for, but they have area of effect effects. For the damage divide, maybe just a damage formula that you divide by BattleManager._targets.length

Original thread: https://forums.rpgmakerweb.com/threads/aoe-help-twt.180447/