For scripting purposes I need a switch that can be off (or on -- it doesn't matter specifically) from the start of any given attack animation until the end of that specific attack's damage popup. This is because I have events in my battle that can happen at any time, no matter the phase of the fight (while command entry is happening, during player turns, during enemy turns, etc.). After plenty of prototyping, that part works flawlessly -- with the one glaring exception being that it can interrupt attacks/skills by taking place between attack animations and their associated damage popups (which ends up being confusing and flow-breaking). By having a switch that demarcates the stretch of time between attack animations and damage popups, I can pretty easily prevent it from doing that.
Unfortunately making moves execute common events or flip switches happens before damage popups, to my knowledge, so I don't think that'd work. Any ideas? Any plugins I haven't heard about that help with this?
If I were to imagin-eer a solution, making all moves call a common event that flips the switch and then having a plugin that causes the damage popup itself to call another common event of my choosing (to flip the switch back) would make this a trivial solve, but I don't really know how/where to dig into the inner workings of the engine on that front.
An alternative, but less desirable solution would be a plugin that allows multiple animations to play at once independently of one another, but I didn't find anything like that (but I would be willing to settle for it).
I am using the Yanfly plugin library, for reference.
Unfortunately making moves execute common events or flip switches happens before damage popups, to my knowledge, so I don't think that'd work. Any ideas? Any plugins I haven't heard about that help with this?
If I were to imagin-eer a solution, making all moves call a common event that flips the switch and then having a plugin that causes the damage popup itself to call another common event of my choosing (to flip the switch back) would make this a trivial solve, but I don't really know how/where to dig into the inner workings of the engine on that front.
An alternative, but less desirable solution would be a plugin that allows multiple animations to play at once independently of one another, but I didn't find anything like that (but I would be willing to settle for it).
I am using the Yanfly plugin library, for reference.