calling common event on item use outside of battle

ive been trying to get this to work for hours, closest ive got is being able to have the item not call the event in battle,
but out of battle the item is still consumable and is removed when it calls the event. what im trying to achieve is having
items call upon an event which has a series of choices, like "use" and "inspect" and "discard".
in short, how would i have the item stay in the inventory when used out of battle but have it be consumed when used in battle?
I don't think there's a common event command for it, but you can do
Conditional Branch -> Script !$gameParty.inBattle() -> Change Items to give one back
that works!! thanks!!!

Original thread: https://forums.rpgmakerweb.com/threads/calling-common-event-on-item-use-outside-of-battle.168785/