I want to modify the popup movement of LGP - Better Damage Popup to be identical to the default system.

I'm currently using LGP - Better Damage Popup.

I use this plugin because it displays "Weak" and "Resist" when a character attacks with effective or ineffective attributes, and when damage is dealt from status effects, the damage displays properly when calling StartDamagePopup() through a Script Call.

However, I don't like the default damage popup movement of this plugin.

Without the plugin, damage popups stack upward sequentially each time they occur, but with this plugin, they appear in the same position. This means when damage is applied continuously at high speed, the numbers overlap and become unreadable.

I'd like to find a solution. Which parameters should I modify to make it work the same way as the default damage popup system?

I'm also aware of VE - Damage Popup, but this plugin has the same issue, and it also has a problem where StartDamagePopup() doesn't display properly when damage is taken from status effects.

BB.gif

LGP

AA.gif

Defualt

+ This is a different issue, but I'll add it here just in case.
In the gif above, when taking damage from status effects using YEP_BuffsStatesCore, I used gainHP and startDamagePopup() to apply additional damage.
However, as you can see, although the skill damage is 5 and the status effect damage is 4, both popups show the status effect damage amount.
I'll write the formula below. What could be the problem?

JavaScript:
<Reapply Add Turns>
<Category: debuff>

<Custom Respond Effect>
if (this.isDamage() && value > 0) {
 target.gainHp(-Math.ceil((origin.mdf * origin.atk)/100 * target.elementRate(3)));
 target.startDamagePopup();
 if (target.isDead()) {
  target.performCollapse();
 }
 target._stateTurns[21] -= 1;
}
</Custom Respond Effect>
Hm, I'm not seeing the difference.

The code in LGP's plugin
1735544543917.png


and the default code
1735544563138.png


The plugin references the battler's sprite position rather than the popup's default, but that doesn't matter for what you're asking about; it still has the same offset being added to it, and damageOffsetY() isn't being modified in the plugin at all.

That is, if you didn't type anything into the Popup Position Code plugin parameter.
Hm, I'm not seeing the difference.

The code in LGP's plugin
View attachment 327399

and the default code
View attachment 327400

The plugin references the battler's sprite position rather than the popup's default, but that doesn't matter for what you're asking about; it still has the same offset being added to it, and damageOffsetY() isn't being modified in the plugin at all.

That is, if you didn't type anything into the Popup Position Code plugin parameter.
Oh, I made a mistake. ;0
It seems that the feature where Damage Popups rise to avoid overlapping isn't actually a basic RPG MV function, but rather the Popup Overlap Rate feature from YEP_BattleEngineCore.


It appears this feature doesn't apply when LGP - Better Damage Popup is activated...Would it be possible to transfer that feature's code to the LGP - Better Damage Popup plugin??
It appears to be included

1735546593684.png


There's only a minor difference between the function in that plugin and the one in the Battle Engine Core - which is lower in your plugin manager? The LGP wants to be below Yanfly's.

If that's where it is and you're getting this bug, you can try reversing them just to see what the change does to the rest of the popup system.
This was actually on my todo list for myself. i had added a lazy change a while back where i just slightly randomized starting position for the popups, but it doesnt actually eliminate the the possibility of overlapping.

try this in the position parameter code. it should be good
Code:
sprite.x = this._battler.spritePosX() + this.damageOffsetX();
sprite.y = this._battler.spritePosY() + this.damageOffsetY() * this._damages.indexOf(sprite);

If that's where it is and you're getting this bug, you can try reversing them just to see what the change does to the rest of the popup system.
I had the same issue, but i made zero attempt at troubleshooting 😛
i immediately went for randomized positions cause i thought it looked nicer for faster attacks

edit: now that ive tried it, this might be better. if your fontsize is larger you might have to replace this.damageOffsetY() or overwrite it
This was actually on my todo list for myself. i had added a lazy change a while back where i just slightly randomized starting position for the popups, but it doesnt actually eliminate the the possibility of overlapping.

try this in the position parameter code. it should be good
Code:
sprite.x = this._battler.spritePosX() + this.damageOffsetX();
sprite.y = this._battler.spritePosY() + this.damageOffsetY() * this._damages.indexOf(sprite);


I had the same issue, but i made zero attempt at troubleshooting 😛
i immediately went for randomized positions cause i thought it looked nicer for faster attacks

edit: now that ive tried it, this might be better. if your fontsize is larger you might have to replace this.damageOffsetY() or overwrite it

Using "this._damages.indexOf(sprite);" I was able to implement something similar to what I wanted! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-modify-the-popup-movement-of-lgp-better-damage-popup-to-be-identical-to-the-default-system.174288/