Needing help with a "favorite foods" mechanic.

in my game, i wanted to add 7 items listed as a favorite food for specific party members. when given to anyone else in the party, it heals them regularly, but when given to a specified character, they get a boost in a stat they're weak in. im struggling to figure out how to event this, any advice?
- bzg
This is going to require scripting because you have to store and fetch actor data from the database, have scripts parse that data, and run calculations on it. You're going to have to store this like list data somewhere, probably in a notetag in the actor's database entry, e.g. <likeList:1,8,15,17,22,23,40>.
Then in a common event on item use you see if the item id you just used on the actor you selected is in that list, grab that actor's stat data and determine which is the lowest, increase that stat (permanently?temporarily?)
This is going to require scripting because you have to store and fetch actor data from the database, have scripts parse that data, and run calculations on it. You're going to have to store this like list data somewhere, probably in a notetag in the actor's database entry, e.g. <likeList:1,8,15,17,22,23,40>.
Then in a common event on item use you see if the item id you just used on the actor you selected is in that list, grab that actor's stat data and determine which is the lowest, increase that stat (permanently?temporarily?)
thanks so much, i got it working!

Original thread: https://forums.rpgmakerweb.com/threads/needing-help-with-a-favorite-foods-mechanic.174877/