Multiple damage instances in a single attack for a JRPG game

Godot Version

Godot 4.4

Question

Some JRPGs have characters that do an attack with an elaborate animation, but the damage it does does not happen at the end, or at a singular point, but the damage gets broken up into several smaller instances of damage that are spaced out unevenly. This is what I want to recreate in my own game, but I’m having trouble of finding a solution that works for me.

Right now I have a character class that has export variables that define the parameters of their skills (like the amount of damage they do and how it targets enemies), I have made a battle controller that will flag targeted enemies and the attack can be used by the selected character. I tried creating a series of functions that get called in the animation to send the damage amount to the battle controller so it can be dealt to the enemies that are flagged as targets, but this has severe limitations and I feel like there has to be a better way of doing it.

Any kind of help is appreciated!