Different Effects for Items Depending on Target

I want to have items have different effects depending on who is being targeted by the item. For example, a potion that heals my party but deals damage to the enemy target.

I also want to be able to specify the effect depending on the enemy ID. So different enemies would have different effects from the same item.

At least the targeting part is easily achieved with Hime's TargetAnyscope plugin, but I am not sure how to approach checking for the target and then applying an effect based on that check.

I wonder if action sequences in visustella's battle core plugin might be able to do it, but I am not very knowledgeable about that plugin.

I have tried doing an if statement in the damage formula for the item, but negative values don't work. So I can't simple check target and apply +100 or -100 damage/restore depending on that target, for example.

Any help would be appreciated.
For anyone looking at this in the future, I used Himeworks' Effect Conditions plugin (with FOSSIL into MZ), and you can target specific enemy IDs by creating the effect and adding a note something like this:


<effect condition: EFFECT NUMBER>

b.enemy().id === ENEMY ID

</effect condition>

Original thread: https://forums.rpgmakerweb.com/threads/different-effects-for-items-depending-on-target.182881/