Hey, I hope this request would be simple for somebody who knew what they're doing. What i'm hoping for is a plugin that would change the color of the damage number text during the battle to reflect the element that was used for the damage. If you're feeling extra creative, the ability to add an icon to that damage would be huge. Thanks so much in advance for considering this!
MZ Element Damage Text Color
JS Plugin RequestsI'm wondering at this point if this plugin is easily possible. Apparently text for damage is converted to bitmap? Does anybody even know if element is stored in game result?
Hey there,
I can't really help you with a plugin currently unfortunately, but if nothing else helps you could try a somewhat tedious workaround by using variables and event message codes in your damage text:
So for example you could change the damage message to include a color-change:
%1 took \c[\v[20]]%2\c[0] damage!
And abuse the damage formula of the skill to set variable 20 to the correct color:
v[20] = 10; ( original damage formula here )
(Generally it's recommended to use $gameVariables.setValue(10, 20) over v[20] = 10 though)
Edit: The workaround is based on the RMMV, and I can only hope it works in MZ too^^
I can't really help you with a plugin currently unfortunately, but if nothing else helps you could try a somewhat tedious workaround by using variables and event message codes in your damage text:
So for example you could change the damage message to include a color-change:
%1 took \c[\v[20]]%2\c[0] damage!
And abuse the damage formula of the skill to set variable 20 to the correct color:
v[20] = 10; ( original damage formula here )
(Generally it's recommended to use $gameVariables.setValue(10, 20) over v[20] = 10 though)
Edit: The workaround is based on the RMMV, and I can only hope it works in MZ too^^
You may be on to something! Thank you!
I think I remember that you can grab element data of the item/skill used when creating the damage. If so, this could be quite an easy plugin to make. I can take look this afternoon.
Are you using any plugins that effect elements, like Visustella Element Core that may allow skills to have several elements?
(Not on my desktop while replying, thus I can't actually verify yet)
Are you using any plugins that effect elements, like Visustella Element Core that may allow skills to have several elements?
(Not on my desktop while replying, thus I can't actually verify yet)
I believe what you're looking for is
if (this.getItemElements().contains(x)) where x is the element ID. I use it for armor scaling to detect dmg type, but u can use it for this too.Okay!
Give this a shot. I've played with it a bit on my own game, but I want to make sure it works the way you want.
I added the ability to change the text color, as well as include an icon to the right of the damage popup. I consider this in "Experimental" development, so if you find things wrong let me know. Otherwise I'll consider releasing this in a more public manner.
EDIT: Found and fixed 2 new bugs
Give this a shot. I've played with it a bit on my own game, but I want to make sure it works the way you want.
I added the ability to change the text color, as well as include an icon to the right of the damage popup. I consider this in "Experimental" development, so if you find things wrong let me know. Otherwise I'll consider releasing this in a more public manner.
EDIT: Found and fixed 2 new bugs
This is awsome but seems like not compatible with visu battle core?So sad……
This thread is three years old, and the plugin author hasn't been on the site in two years.
You are unlikely to get a response.
Original thread: https://forums.rpgmakerweb.com/threads/element-damage-text-color.130013/