florodude

Crucible Gaming
Member
Joined
Jul 7, 2014
Messages
18
Reaction score
19
First Language
English
Primarily Uses
RMMZ
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!
 

florodude

Crucible Gaming
Member
Joined
Jul 7, 2014
Messages
18
Reaction score
19
First Language
English
Primarily Uses
RMMZ
I'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?
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
582
Reaction score
286
First Language
German
Primarily Uses
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^^
 
Last edited:

florodude

Crucible Gaming
Member
Joined
Jul 7, 2014
Messages
18
Reaction score
19
First Language
English
Primarily Uses
RMMZ
You may be on to something! Thank you!
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
657
Reaction score
185
First Language
English
Primarily Uses
RMMZ
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)
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,601
First Language
English
Primarily Uses
RMMV
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.
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.
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
657
Reaction score
185
First Language
English
Primarily Uses
RMMZ
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
 

Attachments

  • TDW_ElementColoredDamage.js
    7.9 KB · Views: 4
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Does anyone know of NPC sprites for RMMZ? I know of Flirion's RMMV recolours, but RMMZ's sprites are slimmer and more detailed, so I'm a bit on the edge to use Flirion's im RMMZ...
I can't believe that after all those years, KH Union X Dark Road is closing the services.

Due to a situation in which I thought plugin adaptations had stopped for the QPlugins, I "ghetto" converted these 7 over yesterday. They appear to work perfectly as long as you use old style plugin commands. I am uncertain if I will have a lot of free time in the future to work on this, but if you'd like them, here they are.
Was there a thread that you could share a screenshot of your game? I feel like I found it once but can't locate it again.

I was being lazy and just copied a map to test a new parallax, but I forgot to delete all the events. This was the result. :o

Forum statistics

Threads
108,818
Messages
1,039,788
Members
141,277
Latest member
FeatherStone
Top