How do I make items with common events not close the menu

I have a system in my game where you collect healing and buffing items inside of bottles and after you use the bottle it gives you a empty bottle with a common event. However when you use the bottle it closes the menu because of the common event which makes it really annoying to apply buffs before a battle due to having to repeatedly open and close the menu. Is there either a way to have the common event not close the menu or give the bottle item without a common event?
I do it by using this script as the last line of each common event
Code:
SceneManager.push(Scene_Item);
although I'm looking forward to seeing more solutions.
Edit- Also, I just noticed you asked for MV. I use MZ, so maybe MV is slightly different?
I do it by using this script as the last line of each common event
Code:
SceneManager.push(Scene_Item);
although I'm looking forward to seeing more solutions.
Edit- Also, I just noticed you asked for MV. I use MZ, so maybe MV is slightly different?
This does work with MV although its pretty jank so hopefully theres a better way to do this.
That script just reopens the menu after it closes. There is a Triacontane plugin called ParallelCommonEventinMenu that is the only way to do this as far I know.

It's this
I wrote a quick plugin that should do the job. You can find it here.
Just add <Leftover:x,y> in an item notebox where x is the item ID of the item you want them to get and y is how many copies. For example, <Leftover:1,2> in a default project would mean using that item would give you 2 Potions since Potion is item ID 1.
I wrote a quick plugin that should do the job. You can find it here.
Just add <Leftover:x,y> in an item notebox where x is the item ID of the item you want them to get and y is how many copies. For example, <Leftover:1,2> in a default project would mean using that item would give you 2 Potions since Potion is item ID 1.
wow thanks for making a plugin for me lol 😀 this works great
I wrote a quick plugin that should do the job. You can find it here.
Just add <Leftover:x,y> in an item notebox where x is the item ID of the item you want them to get and y is how many copies. For example, <Leftover:1,2> in a default project would mean using that item would give you 2 Potions since Potion is item ID 1.
can you update the plugin so you get the left over item when you use in a battle?
can you update the plugin so you get the left over item when you use in a battle?
I've updated it to work in battle!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-items-with-common-events-not-close-the-menu.180215/