RMMZ Element Damage Text Color

florodude

Crucible Gaming
Member
Joined
Jul 7, 2014
Messages
18
Reaction score
18
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
18
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
565
Reaction score
276
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
18
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
629
Reaction score
162
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,626
Reaction score
1,195
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
629
Reaction score
162
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 Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,447
Members
137,820
Latest member
georg09byron
Top