Trying to create a consumable key item that doesn't run out until a certain event transpires

At one point in my game, the player party needs to explore a cave. Before they can enter, however, they need a Key Item.

The item is basically a potion they can drink to counteract a Stone spell one the monsters in the cave can use. The thing is, while I want the item to be consumable, I want it to have infinite uses, at least while they're in the cave. After a certain plot point occurs, the Key Item will "run out," and they won't have access to it anymore.

I've been trying to figure out how to best execute this. I've had variables recommended to me, and I've been reading into them/watchin tutorials, but I'm not really grasping what I actually need to do for this. If anyone might have insight that could help me sort this out, I'd appreciate it.
make the item non-consumable but call a common event.
in the common event, check for the condition and if it is fulfilled, show your messages and remove the item from inventory - if not make the effect with the event commands.

If you have problems with variables I suggest you follow the link to the starting point in my signature and work through the tutorials linked there, especially the variables guide.
Because you WILL need variables for anything more complex than a "go there" quest.
or alternatively... set the item to non consumeable (same step as above)

BUT you did not need to call common event in that item usage but WHEN the plot point happen... in that Plot Point Event... use event command to remove the item from party.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-create-a-consumable-key-item-that-doesnt-run-out-until-a-certain-event-transpires.129708/