Damage popup color based on damage type

Edit: I think this thread should be closed since I've found an alternative way to do what I'm asking in this post. I've modified Luna's damage popups script in order to colour damage popups according to damage type: https://forums.rpgmakerweb.com/inde...amage-pop-up-script-and-getting-error.148786/

Hello. If anyone could help, I'd like to request a script that changes the color of the damage pop up based on damage type. For example: physical damage pops red values and magical damage pops blue values.

I would also like to have a different color for "true damage". That is, damage that ignores the target's defense AND magical defense. For example, consider skills with these formulas:

Ruby:
value += 100
value += a.atk * 2

They would be true damage since the target's defenses are not contained in the formula. There is no way to mitigate the damage received.

The script could be notetag-based if it's easier for you. For example: a script that requires the user to specify manually the color of the damage for each skill in its notetag box. If you think this is easier, then you could go like this. I wouldn't mind, really.

Just for you to know, I use Yanfly's battle engine, which already has some popup features. I don't know if it would cause compatibility problems, but I'm reporting this just in case it's a important info.

Thank you in advance.

Original thread: https://forums.rpgmakerweb.com/threads/damage-popup-color-based-on-damage-type.148729/