How to make scripts run in battle?

So im making a boss fight. And theres a script that activates a mini game unbder the common events tab in troops that reads SceneManager.call(Scene_Invaders). But i want it to run only for a certain amount of time, Then go back to the battle? Is there anyone that can help? Thank you so much. 

Dwm 2016-06-25 11-27-49-85.jpg
I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.


Tutorials is for presenting tutorials you wrote


The battle is a scene in itself, which means you'll need a script to solve this problem.
Is there a line of code that is like this? That can call off the script? And if i need a script what do you suggest?
Nvm ive got it covered! Tnx!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-scripts-run-in-battle.64125/