How can i make an item have some different effect in an specific character?

For example, if i have different types of foods that heals characters, and in the party we have Char A, that is addicted to chocolate, now, Chocolate usually heals 25% HP of any party member, but if i gave it for Char A, It will heal 100% because of this feature.
how can i make that? i tried using common events but i have no ideia what kind of conditional branche i would use in this case
...
I don't see any reason to use common events for this, it can pretty easily be put into your damage formula for the item:

So, in your case, you'd put:
Code:
b==$gameActors.actor(X) ? b.mhp : Math.floor(b.mhp*.25)

That will fully restore the HP if the target is actor ID X, otherwise heal 25%.
I don't see any reason to use common events for this, it can pretty easily be put into your damage formula for the item:

So, in your case, you'd put:
Code:
b==$gameActors.actor(X) ? b.mhp : Math.floor(b.mhp*.25)

That will fully restore the HP if the target is actor ID X, otherwise heal 25%.
IT WORKED!, THANK YOU!!
In case you need more allies having different heal effects you could make chocolates (and other healing items) to heal based on an "element", for example, an element called "chocolate".

So, all you need is make you characters (or jobs, states, etc) a different rate for that element, this way you could even make a "chocolate intolerant" state which makes the character heal half, or make a robot who can not eat chocolate and when you try to give him a chocolate he doesn't heal.

or even make it more complex, add another element called "fruit" and other called "soda", and every hero could have a preference (and a food they hate) 😂

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-an-item-have-some-different-effect-in-an-specific-character.142973/