Is it possible to create spells that change their effect depending on the characters?

Hello, I am currently working on the combat system of my game, and I would like to know if it was possible to ensure that certain spells do not have the same impact depending on who receives the spell. Like for example if there are four characters that I would name A, B, C and D.

A sends a spell to B which has no effect.
A sends the same spell to C which gives him 15% healing.
A also sends the same spell to D which gives 35% healing.

I'm a bit racking my brains to try to do this, but I admit that given that I'm discovering a little about how the combat part of RPG Maker works, I admit that I don't know if such a thing is actually possible, but I prefer to ask! Thanks in advance !
yes, but there are limits.

your specific case of healing could easily be done with elemental damage rates - just give the healing a special element and have different actors and targets get different rates for that element.

and you might want to go through the picture here:
RPG Maker VXACE and MV Damage Flow | RPG Maker Forums
You could do it with a healing element as suggested; if there's some reason that can't work, you could also do it with code in the formula.

This post explains how to do conditionals and how to check for the actor ID of the target.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-create-spells-that-change-their-effect-depending-on-the-characters.173464/