Effecting control variables through items

Hi all.

I am creating a hunger and thirst system which is based off of control variables, which change via common events. How could I make it so that if you eat an item (e.g. an apple) that it will effect the control variable?

So for example

If player eats item 'Apple'
Control variable 'Hunger' increases by 10

I have looked at it but I'm not 100% sure what to do.

Thanks all!
A simple way would be to let the item call a Common Event, and in the Common Event you can increase your hunger variable.
A simple way would be to let the item call a Common Event, and in the Common Event you can increase your hunger variable.
Ah okay, I will give that a go. Thanks 🙂
A simple way would be to let the item call a Common Event, and in the Common Event you can increase your hunger variable.
u might have more items for hp and stamina

make common event lets say food hp
conrtol varable item = last used item id

use if condition item = 6 lets say [apple id = 6]
control varible hp =+10

use if condition item = 9 lets say [orange id = 9]
control varible mp or stamina=+10

Original thread: https://forums.rpgmakerweb.com/threads/effecting-control-variables-through-items.170992/