Common Event and Battling same time

Is it possible for me to trigger a common event WHILE the actor is currently casting and performing his attacks via the script?
I can't seem to process this as the picture from the common event only comes out after the attack is performed. 


I'm trying to flash the picture on screen while at the same time, the actor is attacking. 


Here's my script, and what should happen here is the actor will punch out the opponent, but the picture always comes late, only after 


the actor finished attacking.
 

<setup action>


display action


immortal: targets, true


wait: 40


hide battle hud


opacity not focus: 0%


wait for opacity


camera focus: user, front center, 45


zoom: 1.5, 45


wait: 40


motion chant: user


motion wait: user


se: Launch


opacity user: 95%, 20


camera focus: target, center, 5


zoom: 100%, 10


wait: 5


</setup action>


<target action>


wait: 100


se: Wind10


opacity user: 0%, 5


move user: target, front, 5


wait for opacity


opacity user: 100%, 5


wait for opacity


motion attack: user


action animation


shake screen: 9, 9, 30


ani wait: 5


action effect


immortal: target, false


Wait 30


move user: home, 5


face user: forward


</target action>


<follow action>


wait: 60


opacity not focus: 100%, 60


wait for opacity


show battle hud


</follow action>
That is not a script, that is an action sequence - please link to the plugin that processes your action sequences.


If you're using yanfly's plugins, then yes - one of its plugins contains an action sequence for calling common events, but I don't remember which ones.


If you're using a different battlesystem, it will depend on which plugins you use.
Oh sorry, my bad. And yes, I was using yanfly's. I'll be checking that out.
Place : 


common event: x


within your action sequence. Replace X with your Common Event ID. 


However, the Common Event will be executed until its finished before proceeding to the next line of Action Sequence. 


To get your result, (attacking and show picture flashing), just reverse the order. (put motion attack first, don't put wait for motion in between, and then call the common event)

Original thread: https://forums.rpgmakerweb.com/threads/common-event-and-battling-same-time.63185/