Can someone help me with an item that is not spent when something is already full?

Does anyone know a script command that prevents the actor from using a particular item? for example: when the player is going to use a potion and it doesn't work because the actor's hp is already 100%, in this case I made a hunger system with a small hud and when I use the item that increases hunger (in the sense of increasing the bar) even with the bar full it is possible to spend the item,
but I don't want you to spend it when the bar is already full 🙁

I've moved this thread to MV Support. Thank you.

Are you using an evented system? How are you using the items? (select item command or from the menu via a common event?)
yes it is a pure event system, I wanted to create a common event that would do the following: if the hunger is greater than or equal to 100 the item that fills it cannot be used,

what is happening is that even with the hunger bar full, the item is spent.

Original thread: https://forums.rpgmakerweb.com/threads/can-someone-help-me-with-an-item-that-is-not-spent-when-something-is-already-full.126908/