LGP - Better Damage Popup

Jufry_A

Villager
Member
Joined
Sep 27, 2018
Messages
8
Reaction score
2
First Language
Indonesia
Primarily Uses
RMMV
I want to show 0 damage, how to do it?
Thanks
 

Jrrkein

Insert Witty Title Here
Veteran
Joined
Apr 20, 2014
Messages
132
Reaction score
19
First Language
Indonesia
Primarily Uses
RMMV
Hey, I got an error again its about length thing
 

RespectWomen

Acoustic Child
Veteran
Joined
Apr 24, 2018
Messages
57
Reaction score
14
First Language
English
Primarily Uses
RMMV
How exactly are elemental popups done? that's the only part I'm missing.
 

Nectar

Bees love me.
Veteran
Joined
Jul 7, 2017
Messages
143
Reaction score
20
First Language
English
Primarily Uses
RMMV
It's amazing, thank you for sharing!
 

Iqus

inVictor
Member
Joined
Oct 17, 2013
Messages
27
Reaction score
11
First Language
Spanish
Primarily Uses
RMMV
Any way to deactivate state popups?
 

Gregaur

Veteran
Veteran
Joined
Jan 3, 2017
Messages
102
Reaction score
13
First Language
french
Primarily Uses
It seems that LGP left the forum for a while... That's is sad as his plugin is great but miss a few function.

Does anyone with JS skill wanna complete it ?
 

Zemtax

Secret Open World Game Dev
Veteran
Joined
Jul 17, 2014
Messages
42
Reaction score
21
First Language
German
Primarily Uses
RMMV
If anyone wants to disable the state popups:

Find the following code:
Sprite_Damage.prototype.drawState = function() {
var result = this._result;
var code = LGP.Param.BDPdrawStateCode;
this._spriteIds["state"] = this.children.length;
if (code !== '') {
try {
eval(code);
} catch (e) {
LGP.Util.displayError(e, code, "DRAW CUSTOM STATE POPUP ERROR")
}
} else {
this.drawDefaultState();
}

};
Just comment out what's inside the function like so:
Sprite_Damage.prototype.drawState = function() {
/* var result = this._result;
var code = LGP.Param.BDPdrawStateCode;
this._spriteIds["state"] = this.children.length;
if (code !== '') {
try {
eval(code);
} catch (e) {
LGP.Util.displayError(e, code, "DRAW CUSTOM STATE POPUP ERROR")
}
} else {
this.drawDefaultState();
}
*/
};

I'm no JS expert, but it seems to work just fine without any issues, if not, maybe someone more experienced with JS can chime in.
 

BreakerZero

Veteran
Veteran
Joined
Jul 8, 2018
Messages
726
Reaction score
298
First Language
English (USA)
Primarily Uses
RMMV
It seems that LGP left the forum for a while... That's is sad as his plugin is great but miss a few function.
There also seems to be an issue with the popups themselves. Text is being partially cut off (specifically meaning that the top of the text is cut off) and the effect up/ineffective/critical seem to completely ignore the font size. Not sure if it's my setup or something else (this also affects the SRD version somewhat but not VE which is not as effective with Yanfly which is a requirement at this point in my project) but if someone could look into this I'd appreciate it.
 

Ashfell

Veteran
Veteran
Joined
May 31, 2017
Messages
82
Reaction score
28
First Language
english
Primarily Uses
RMMV
awesome plugin but do you have any links to older versions or is the 1.6 the only version you made?
if you have older versions for like 1.5.2 or older would be awesome to add to a dl list for some of us that dont want to risk updating
 

Gregaur

Veteran
Veteran
Joined
Jan 3, 2017
Messages
102
Reaction score
13
First Language
french
Primarily Uses
All right,

As I am really pride of my self, I will share what I did to have a specific color acording to the skill element. I don't know how to code so, if I did it, you can also do it.

The Yanfly Element core is required.

First, you need to edit the JS file with a software like Notepad ++.

Then I add those six line for the six element I use :

LGP.Param.Earth = 'rgb(94,208,56)';
LGP.Param.Fire = 'rgb(239,125,7)';
LGP.Param.Water = 'rgb(7,97,239)';
LGP.Param.Thunder = 'rgb(254,255,0)';
LGP.Param.Light = 'rgb(131,241,234)';
LGP.Param.Dark = 'rgb(164,56,208)';

You can add more ligne as you need more element (or delete some).
For each element you need to change the rgb code acording to the color you want for the element (the same way you did in the parameters)

Then you need to look for the : if (result.hpAffected)

The next "if" will determine what color will be the pop-up.
The plugin has The barrier color, the critical color or the basic color.
We will add the number of if we need according to the number of element you are using (in my case 6) :

So it will look like this :

if (result.hpAffected) {

if (value > 0) {
if (Imported.YEP_AbsorptionBarrier && result._barrierAffected) {
bitmap.textColor = LGP.Param.BDPshC;
bitmap.outlineColor = LGP.Param.BDPshOC;
} else {
if (result.critical) {
bitmap.textColor = LGP.Param.BDPcritC;
bitmap.outlineColor = LGP.Param.BDPcritOC;
} else {
if (result.itemElements == 2) {
bitmap.textColor = LGP.Param.Fire;
bitmap.outlineColor = LGP.Param.BDPcritOC;
} else {
if (result.itemElements == 4) {
bitmap.textColor = LGP.Param.Thunder;
bitmap.outlineColor = LGP.Param.BDPcritOC;
} else {
if (result.itemElements == 5) {
bitmap.textColor = LGP.Param.Water;
bitmap.outlineColor = LGP.Param.BDPcritOC;
} else {
if (result.itemElements == 6) {
bitmap.textColor = LGP.Param.Earth;
bitmap.outlineColor = LGP.Param.BDPcritOC;
} else {
if (result.itemElements == 8) {
bitmap.textColor = LGP.Param.Light;
bitmap.outlineColor = LGP.Param.BDPcritOC;
} else {
if (result.itemElements == 9) {
bitmap.textColor = LGP.Param.Dark;
bitmap.outlineColor = LGP.Param.BDPcritOC;
} else {
bitmap.textColor = LGP.Param.BDPhpDmgC;
bitmap.outlineColor = LGP.Param.BDPhpDmgOC;
}}}}}}}
}

result.itemElements == n is the test to see if the element ID is 2 in my system. You have to change it acording to your project.

And here we are. It may be easy for lot of your, but as I said, I don't know how to code and people may be in my situation so I feel it may be useful to share. This plugin is very nice and it's nice that it was abandon.
 

MikaTeapot

Villager
Member
Joined
Mar 25, 2019
Messages
12
Reaction score
2
First Language
English
Primarily Uses
RMMV
I wondered if anyone could help me with something; I'm trying to add a "resist" message when a state fails to apply to an enemy/actor with <100% state rate, and an "immune" when applied to someone with a state immunity, I figure I can add/edit something here but I have 0.1% JS knowledge and would really appreciate a hand ^^
 

DavePerry

Villager
Member
Joined
Jul 18, 2019
Messages
7
Reaction score
0
First Language
english
Primarily Uses
RMMV
I love this plugin but for some reason the damage pop ups wont show up on my actors with Rexal's Visual equipment plugin. it shows up fine for the enemies but not my party. I can't figure it out.
 

decinbr

Veteran
Veteran
Joined
Mar 20, 2015
Messages
42
Reaction score
3
First Language
brazil
Primarily Uses
Can i show damage popup outside battle with this plugin?
 

GLHSonicstar

Villager
Member
Joined
Jul 18, 2016
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMV
I tried using this plugin with VE_SFont and whenever the damage popups showed up it only showed the default GameFont. Is there any way you could fix it?
 

Jrrkein

Insert Witty Title Here
Veteran
Joined
Apr 20, 2014
Messages
132
Reaction score
19
First Language
Indonesia
Primarily Uses
RMMV
Sadly, the developer have left for unknown time
 

BreakerZero

Veteran
Veteran
Joined
Jul 8, 2018
Messages
726
Reaction score
298
First Language
English (USA)
Primarily Uses
RMMV
Even then, it would probably require a compatibility patch. Further to the point is that I'm not personally aware of anyone who's knowledgeable enough to analyze how the original developer structured this, not to mention that another Victor plugin can do the same thing. Barring that (or if you still want to use this one) your best bet is to ask in either the requests or support sections related to plugin servicing.
 

GLHSonicstar

Villager
Member
Joined
Jul 18, 2016
Messages
7
Reaction score
1
First Language
English
Primarily Uses
RMMV
Even then, it would probably require a compatibility patch. Further to the point is that I'm not personally aware of anyone who's knowledgeable enough to analyze how the original developer structured this, not to mention that another Victor plugin can do the same thing. Barring that (or if you still want to use this one) your best bet is to ask in either the requests or support sections related to plugin servicing.
I tried that one too but for some reason it doesn't use the SFonts either.

EDIT: Nvm, it does work, it's just that for some reason I can't get it to show different colors besides white.

EDIT AGAIN: Ok I found a solution within the plugin's help page in the plugin itself. I'm stupid.

Ok, problem averted.
 
Last edited:

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

Latest Posts

Latest Profile Posts

so, ive been gone for too long when i log in and see that everything is where is shouldn't be. XD
Steam killing my eyes.. I forgot why I use it only when I have no other choice
Making a map, my brain went "Look, Mjölnir!" as I plotted out a sacrificial entrance.

Actually, it went, "Look, hammer. Wait, Thor's hammer!"
CG tile rendering, take 3: windows.
which section you guys think looks more accurate to the perspective? left or right?

for reference, this is what it looks like "at street level"
Okay, Animal Crossing is remarkably addictive and exceptionally calming. I've been playing it pretty exclusively... like... 6 hours a day. Been a while since I've been this engrossed.

Forum statistics

Threads
95,402
Messages
928,924
Members
125,623
Latest member
Victastico
Top