Running a shop menu mid-battle

Hello, I'm looking for a way to cause a common event to trigger a shop menu during a battle, is there anyway to do that?

When I tried running a shop menu normally the game seemed to skip over the event and end the battle (due to the fact the event is set to end after the shop menu)

Your help is much appreciated.
This is because the shop processing event command is designed not to work during battle. Any solution would require you to use a script to launch the shop processing or a plugin.

I would advise finding or requesting a plugin to do this if you're not familiar with js - there's likely to be more things to do other than just launching the shop scene mid battle. For instance disabling the text message saying "Bat has appeared" etc. when you're returning from the shop scene, not having your actors run into the battle from the right of the screen again and having the background shown in the shop screen be an image of the battle scene, rather than the map scene.

Original thread: https://forums.rpgmakerweb.com/threads/running-a-shop-menu-mid-battle.119129/