Help With Dark Knight Skills

Hello. Right now I'm working on Generic RPG Quest 3 and trying to make all the blue magick spells. (Enemy only, you can't learn them... yet!) One of the enemies is a dark knight similar to the class dark knight from Final Fantasy and the Bravely Series. One of the final bosses is also a dark-knight type character, and of course they need custom moves to set them apart from other enemies. I have three skills in mind.

Dark Bane: Deals heavy dark damage to one random foe. Costs HP. (Uses Yanfly Skills Cost HP plugin)

Dark Nova: Deals heavy dark damage to all enemies. Costs HP. (Uses Yanfly Skills Cost HP plugin)

Dark Rage: Constantly use Dark Bane until you run out of HP or attack 6 times.

I can do the first two, but the third one (Dark Rage) is giving me trouble. Is there any way I can do this with plugins/common events? I tried making a common event that would activate when the skill is used, but there's no conditional branch for "If enemy has skill x" or "if enemy HP x" so I'm a bit stuck. Any help would be appropriated. Thanks!

-KrimsonKatt
I don’t have my laptop handy, but if you can’t set enemy HP as a conditional’s... condition...

...couldn’t you set a variable as the enemy’s HP, and then use variable as the conditional?
That would work, but I'm not quite sure on how to set an enemy's HP to a variable. Can you please walk me though it? Thanks.

-KrimsonKatt

edit: fixed spelling
no conditional branch for "If enemy has skill x" or "if enemy HP x"
you need two commands.
use control variable command, game data section (the one that defaults to map id) to load the enemy HP into the variable, then use the conditional branch to check its value
@Andar Thanks for the help! Highly appreciated.

-KrimsonKatt

Original thread: https://forums.rpgmakerweb.com/threads/help-with-dark-knight-skills.110418/