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.