I'm not sure you'll be able to achieve this. It looks like the plugin you're using colors the pop ups based on conditions it can check during the code that deals damage.
At that point, there is nothing in the code that distinguishes whether the damage is coming from reflection or countering. The engine executes those as a regular skill performed by the target out of combat order, so there's no way for you to ask "did this damage come from a counter?"
If you use Yanfly's Counter Control, it introduces some way that it internally tracks how many counterattacks have gone back and forth, so you should be able to check for that variable to be greater than 0. I don't have any thoughts regarding reflection.
I'm using Counter Control actually and I think it treats Reflection the same as Counter Attacks, does it? Maybe it's possible do have the same notification for both of them, then? I don't understand enough of js to figure out how to tackle this, though.
I just want some visual information besides the battle log to tell players what's going on, when an animation plays first on an enemy and then immediately on their characters.
Worked! Thank you!
What I meant was that Counter Control lets you set Magic Hit as a condition for a counter attack, so it can be used for both, physical and magical hits. If I don't miss anything here, I won't even need reflection as a parameter, since by default it works just the same as counter, only for magical hits. Using Yanflys & SRDs Plugins with the code you provided I should be able to set up magical & physical counters and just need to name the popup in way that covers both.
Anyway, I have lost count on how many times your posts helped me out already! Thank you once again 😀