RMMZ Element Damage Text Color

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
566
Reaction score
277
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
656
Reaction score
182
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,835
Reaction score
1,592
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
656
Reaction score
182
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

Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Who would think putting a power button on a side of a laptop is a good thing? You want to move the laptop and you suddenly press the button.
The second draft of my script is almost done, and I don't think I'm going to write a third draft. I'll make changes to dialogue here and there, but I'm happy with the series of events the way they are.
How you feel about font and dialogue box changing for every main character while the minor cast and regular npc get their own styles? Too much?
Just found an obviously custom effect (i.e. edited by me) in my resources>sounds folder called "rip jaw off". Dear Lord what is wrong with me as a person that at some point I needed a sound *specifically* for THAT??
(...rhetorical question.)

Forum statistics

Threads
107,526
Messages
1,030,279
Members
139,652
Latest member
jasasewamobilbali
Top