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:
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:
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:
- The Tool event is called through a skill, as usual for Chrono Engine
- In the corresponding Tool event, it first runs a script/common event that runs a QTE
- The attack data stored in the Tool's comments is not processed until the QTE is over
- 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)
- Then the Chrono Engine would take back over and run the Tool's comments, executing the skill
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: