Damage pop-up on enemy in battle

Hey guys!

I made a coin toss skill, following this amazing tutorial pretty much to the letter:


Everything works great, but I would like the skill's damage to be visible during battle, much like regular attack's. So when I hit the enemy or enemies, a damage number appears on their sprites.

Anyone has any idea where/how to do that?
does this work with yanfly's battle engine core? If yes, problem solved.
Alright, I'm looking at the battle engine core and I can't quite figure it out.

The best I've come up with is adding this in the damage formula:

if (v[26] >= v[27]) {v[27]} else {v[26]}

and this in the skill notes:

<Target Action>

action common event

action effect: target

</Target Action>

It does show the correct damage. However, it seems to be running the common event twice.

Original thread: https://forums.rpgmakerweb.com/threads/damage-pop-up-on-enemy-in-battle.88378/