Can i make certain party members reject certain items?

Hey every 🙂 like the post says, i'm wondering if i can make certain characters reject certain consumable items. think of it like the cheese mechanic in mother 3 ( for those who don't know, each character in mother 3 heals differently when consuming the cheese item depending on wether they love or hate cheese (cough cough KUMATORA cough cough), inly i want to make it so that certain characters can reject said item. maybe include a little text message too. thanks 🙂
easy way to set it up the healing is to is to make an element for the cheese, make the cheese heal based on it, and then give each actor their own element rate for it.

for the messages, you could make a common event to save the target actor ID to a variable, use conditional branches to show text based based on the actor id, and then have the cheese play the common event
1740959712553.png

Something I did in my game is make the item inflict a 1 turn state on the user, and then call a common event. The common event checks which actor has the state, and will change depending on if the state is found on the actor who can use it or if its found on one who cant. This has a message box, too.

If you're planning on using this item multiple times per round, you can just make it to where it's not 1 turn and the state gets removed at the end of the common event.
I think I know how to do it, and I like the idea of setting up items with different effects depending on the character!

you can add an common event in your item settings so it will play the common event when you use the item each time.
In the common event,what you need is make variable = the last target actor's ID,if the ID is the character that dislike the item,then make a branch to play the text message you like.

(sorry for my example image not in Engilish,I hope you can get what I am saying.)
1740977825157.png

1740977948836.png
I use Aerosys' Item Restrictions. It's free and pretty easy to set up using a few notetags. So far I haven't encountered any compatibility issues with other plugins, either.

I use it for all my characters to determine which categories of food they can't eat. In my game Outcasts of the Rift, all the characters are animals, and some can only eat certain types of food. While there are generic healing items that work on all species, the diet-specific items have greater effects.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-make-certain-party-members-reject-certain-items.175947/