MV Chrono Engine: "Wait" Tool comments until common event is finished?

So I'm using Moghunter's Chrono Engine, and what I'm ultimately looking for is the ability to call QTEs before an attack lands, either to amplify the damage if it's done by the player or to reduce it if it's done by the enemy.

Don't worry too much about the QTE functions themselves, I already found a plugin that does what I want well enough. And it turns out you can run common events (or anything, really) on a Tool event, and using the Tool (through an attack, skill, or item) will run that common event as well.

The problem is that the common event is run parallel to the Chrono Engine Tool, even if the common event isn't set to Parallel. Or maybe it's more accurate to say that the Tool is run parallel to the event. Either way, Chrono Engine just reads from the comments in the Tool event, and ignores any of the other events or scripts that are being run in the same event.

What I want is:
  1. The Tool event is called through a skill, as usual for Chrono Engine
  2. In the corresponding Tool event, it first runs a script/common event that runs a QTE
  3. The attack data stored in the Tool's comments is not processed until the QTE is over
  4. The QTE's results can determine the damage the skill does (For example, if performed by the enemy, it would add a defense buff to the player)
  5. Then the Chrono Engine would take back over and run the Tool's comments, executing the skill
What's currently happening is that the Chrono Engine runs the attack, and it plays the QTE simultaneously, rather than before. Obviously, the QTE has no effect on the attack. I've tried Wait commands, I've tried nesting the comments into an If statement, I've tried setting the Common Event to autorun/parallel, I've tried placing the common event before or in the middle middle of the comments.

I guess what I'm asking is, can I force the Chrono Engine to treat comments like event commands, and wait before running the data in those comments?



EDIT: I figured it out myself! You can set the Tool's tool_duration and tool_pose_duration properties to 9999, then run whatever code you want, and then use the plugin command force_damage : target, and then tool_turn_end.
Admittedly I'm still not 100% on the "why" of this process, so maybe this is a hackier solution than I think it is, but nonetheless the result is exactly what I want! Here's my event script if anyone wants it:
1696286120939.png

Original thread: https://forums.rpgmakerweb.com/threads/chrono-engine-wait-tool-comments-until-common-event-is-finished.161686/