How to stop an ongoing event with another one?

Hi guys! I handle RPGMMV like a certain category of people: the kind who uses ten commands for a thing because idk what the best single command would be — so that's my level skill.

Anyway, the current struggle I'm having right now is: I'm making a mini-game using Yanfly's ClickTrigger plugin. Which works fine, it's not much related. It's a 'undertale-like' combat system which requires to click on multiple actions in a certain order. Sometimes, the enemy will randomly attack the player in a qte, and so the player will have to avoid the attack by clicking on a button. Question is: how do I make this work?

The attack will happen at random so I used a common event, and when it does, the 'evade' button appears with a quick timer represented by a bar. The bar will drop as soon as the qte is launched, so you guess it: the player has to click the button before it completely drops. The evade button becomes available with a common switch when the qte launches, yet idk which command I should put so the button event actually stops the ongoing qte.

Should I use a third event that links both? I don't really want to use a timer because I don't want it to appear somewhere on the screen, since I got the time bar already (unless there is a way to hide it and then everything would be really simple).

Thanks in advance!
Try using switch that will activate qte event, if it's parallel (which it should be to work along second event) it probably will stop working once is switch is turned off.
There is also stop event processing command, but it can only be activated for the even it's in. Maybe there is a script call to stop processing of certain event?
There is also a script command to activate self-switch, in case if you don't want to waste regular one.
Try using switch that will activate qte event, if it's parallel (which it should be to work along second event) it probably will stop working once is switch is turned off.
There is also stop event processing command, but it can only be activated for the even it's in. Maybe there is a script call to stop processing of certain event?
There is also a script command to activate self-switch, in case if you don't want to waste regular one.
I don't know how I couldn't think of a switch just to cancel the event👋 probably because i thought it wouldn't stop it in the middle of the process. Anyway, it works just fine, so thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-stop-an-ongoing-event-with-another-one.176743/