Force use item inside of the inventory

Hello everyone, is there a way to force the player to use an item such as potions whenever certain conditions have been met? If the player's HP is below 30%, the item will pop up and make the player use an item be used.

The event that I'm trying to make is to force a player into battle-processing and make them answer certain questions when the player chooses the wrong answer forced action of the enemy will be played, and if the player has reached low hp, they will be forced to use an item/potion to replenish their hp meter.
Inside battle you can make a troop event conditioned to actor HP.
Will need a number of events (one each actor) and you might want to use a base troop plugin to prevent from having to manually create the events in every troop.

Outside of battle you'll need a parallel process common event to check the HP with control variable and conditional branch. will need some experimenting to find the correct number of waits to reduce lag.

In both cases you'll have to simulate the item use by giving event commands with the same result and then remove the potion or whatever as if it had been used

Original thread: https://forums.rpgmakerweb.com/threads/force-use-item-inside-of-the-inventory.163282/