In event add second page and use self switch. Example self switch a = 0 (use checkbox on left of your screen).
Then on fisth page add this:
battle processing (any opponent you want)
controle selfswich a = on
and thats it
Sorry for my english. I hopeyou get the point.