This is a bit hard to explain, and i also hope this is the right place to ask this. But how can i make it so when one enemy takes damage, another one does too?
And i don't mean attacks that hit multiple enemies or something.
The best way i can explain this is... during a fight with a robot or something, the player can choose to attack the arms, when attacked the mas HP of the main body would deplete, and when the arms are destroyed one of the robot's Skills would be gone or changed. (Since it can't attack with arms anymore.)
Is there any way to do this?
You may want to try
DoubleX RMMV Linked Battlers.
Using this plugin, however, won't change the total amount of damage applied by the skill/item.
Let's say the skill/item would deal x damage to the arm, the total damage dealt to the arm and the main body will still be x.
If the distribution weight of the arm is y and that of the main body is z, the arm will take x * y / (y + z) damage, and the main body will take x * z / (y + z) damage.
Such setup can be done with this notetag:
<linked battlers: LBC1, LBS1, LBW3>
LBC1 is:
// Sets the linked battler condition to include all linked battlers
LBC1: function(battler) { return true; },
Meaning the damage distribution will always take place for all battlers having states using this notetag.
LBS1 is:
// Sets the linked battler stat to include hp, mp and tp
LBS1: function() { return ["hp", "mp", "tp"]; },
Meaning the damage distribution will be applied for hp, mp and tp damage(actually it can work with healing as well).
LBW3 is:
/* Sets the linked battler weight to be multiplied by x if the linked
* battler is the one having a stat to be changed
*/
LBW2: function(battler) { return battler.enemyId === armId ? y : z; },
Meaning the distribution weight of the enemy with enemy id armId(i.e., that enemy is the arm) will be y and that of each of the rest of the battlers having states with this notetag will be z.
If the rest of the battlers are only that main body, y is significantly greater than z, and the mhp of the arm is significantly smaller than that of the main body, the arm will certainly be destroyed before the main body.
About changing the robot's skills when the arm's gone, you can use battle event and the main body's action patterns to do that.
Basically, you'd set some skills to be used when a switch's on and some to be used when that switch's off.
When the arm's gone, just toogle that switch(it's possible to call an event to do that right after the arm's gone without using any custom plugin, although the setup could be really complicated and convoluted).