getting an enemy to attack with timed intervals

i have this idea for a boss that attacks every 10 seconds, or lowers your hp every 10 seconds (it doesnt have to go through the motions saying it attacked and stuff), all the while in order to survive you need to keep doing this healing minigame. however, i cant for the life of me figure out how to get the enemy to attack (ill figure out what the healing minigame is later) and if its even possible, since it seems to me you would need to run events in parallel in a battle which doesnt work.

if you use the wait command in the troop event it doesnt let you have a turn until that wait is over, and if you use a timer and check if the timer is below a value using moment as the setting, then it also doesnt let you have a turn until the if statement is fulfilled and you turn the switch off or whatever.

is this idea possible in base rpg maker, is there a plugin that can do this, or would i need to make/commission a plugin for this?

thanks for reading
losing 10HP per 10 seconds is doable by 2 things.
either on map parallel process or inside the battle troop editor.

make a switch to turn on and OFF, lose 10hp, wait 10seconds. (600frames)
but that should basicly do it.

if you want it to everytime, you could use [YEP_BaseTroopEvents] it runs
on every battle, and you do it only ones (plugin is in a free pack).

I didn't test it, but it should do the trick though.
losing 10HP per 10 seconds is doable by 2 things.
either on map parallel process or inside the battle troop editor.

make a switch to turn on and OFF, lose 10hp, wait 10seconds. (600frames)
but that should basicly do it.

if you want it to everytime, you could use [YEP_BaseTroopEvents] it runs
on every battle, and you do it only ones (plugin is in a free pack).

I didn't test it, but it should do the trick though.
it works fine as a parallel process on the map, but i want it to be a parallel process in the battle, as in the time for the 10 seconds is ticking as you are taking your turn, and as the enemy takes its turn. i tried using wait inside the battle troop editor and it just makes it so you cant have a turn until the wait is over, which is the opposite of what i want.
than it require a plugin in order to do so, but you should explain
exactly what happen when the 10hp ticks down by x frames and
who's turn, so they can help you out to achieve what you want.

Original thread: https://forums.rpgmakerweb.com/threads/getting-an-enemy-to-attack-with-timed-intervals.146688/