MV DAMAGE POPUPS WONT SHOW! (YEP & LETBS)

Hey all!

Ran into an interesting snag in development. I am using YEP Absorption barrier, together with LETBS, while there were no major loss of function. The plugins operate together, to the extent that a barrier is still created, and said barrier will still mitigate damage.

However, when "shielded" there is no damage pop from shield damage. nor will the animations from YEP's Absorption barrier proc when the shield is destroyed. My initial hypothesis is LETBS DamagepopupEX and YEP Absorption barrier are conflicting with how to handle the shield pops. Or perhaps DAMAGEPOPUPEX was never written with the intent of shields.

In either case I am in need of assistance, I have tried moving said plugins to multiple places above and below other plugins, to no avail.

Does anyone have any ideas? Because not having a visual indicator that a shield is gone is kinda bad design
in the absorption barrier plugin setup, there's a parameter to define a "Barrier State", do you have that setup?

In my project, the barrier state I set is 23, and then this is what's setup within State 23:
In the notebox:


<Custom Deselect Effect>
var points = target.barrierPoints();
if (points !== target._currentBarrierPoints) {
target.setStateCounter(23, points);
}
</Custom Deselect Effect>

<Custom Regenerate Effect>
var points = user.barrierPoints();
if (points !== user._currentBarrierPoints) {
user.setStateCounter(23, points);
}
</Custom Regenerate Effect>
in the absorption barrier plugin setup, there's a parameter to define a "Barrier State", do you have that setup?

In my project, the barrier state I set is 23, and then this is what's setup within State 23:
In the notebox:


<Custom Deselect Effect>
var points = target.barrierPoints();
if (points !== target._currentBarrierPoints) {
target.setStateCounter(23, points);
}
</Custom Deselect Effect>

<Custom Regenerate Effect>
var points = user.barrierPoints();
if (points !== user._currentBarrierPoints) {
user.setStateCounter(23, points);
}
</Custom Regenerate Effect>


Thanks for the reply, but this is not what I need. It is because i'm using a non standard battle system.
I am using Lecode Tactical Battle System. LETBS.

It has a problem handling overlay because the core mechanics for LETBS are still in 0.77 and 0.8 has yet to be released, which were to support sprite overlays, which I could have settled for, as it would have been a visual que to see the shield is gone.

However Im willing to settle for getting different color numbers to display when you are hit with a shield.
in the absorption barrier plugin setup, there's a parameter to define a "Barrier State", do you have that setup?

In my project, the barrier state I set is 23, and then this is what's setup within State 23:
In the notebox:


<Custom Deselect Effect>
var points = target.barrierPoints();
if (points !== target._currentBarrierPoints) {
target.setStateCounter(23, points);
}
</Custom Deselect Effect>

<Custom Regenerate Effect>
var points = user.barrierPoints();
if (points !== user._currentBarrierPoints) {
user.setStateCounter(23, points);
}
</Custom Regenerate Effect>

Looking more into this, its nifty that it shows the shield portion as a counter, I would also like to get a popup if possible.
bump
Hello, I wanted to share this thread w/ you as it may contain the solution you seek. I will also be testing out the popups for Absorption Shields in LTBS tmrw, since I'm going to need to get that working for my project as well. In the meantime, you can try this: BattleManagerTBS.activeEntity().addPopup(); as that will function similarly to the startDamagePopup() function.

My only concern is that Absorption Shields usually have a popup number that's a different color (purplish-pink?) so I'm hoping to get it working as such. I will let you know my results soon...

Re: necropost
Go for it - just add a comment in your post saying I said it'd be okay for you to necropost.

Edit: Alright, so it looks like we're gonna have to "trick" the game into thinking _result has the same value as the barrier points being given. If we can manage that, we can use BattleManagerTBS.activeEntity().addPopup() to force a popup showing the amount of said barrier points. The font wouldn't be that pink color though, just the normal damage color. I'm still trying to figure out a way for the pink text... Edit2: lol I'm a derp... the barrier numbers are just recolored normal damage numbers defined in the plugin parameters.

So now I just need the addPopup() function to register that _result is accounting for the barrier points. Then we should be able to use BattleManagerTBS.activeEntity().addPopup() in a <Custom React Effect> notetag.

I'm currently debating if I should mess w/ the functions in the AbsorptionBarrier plugin directly or try to set the value into _result in a notetag. This is what I've noticed so far:
Using the following will get the dmg popup to show.
  • target.gainHp(-1337);
  • BattleManagerTBS.activeEntity().addPopup();
So I looked into the gainHP() function:
JavaScript:
Game_Battler.prototype.gainHp = function(value) {
    this._result.hpDamage = -value;
    this._result.hpAffected = true;
    this.setHp(this.hp + value);
};
However, I think we need to get the result into BattleManagerTBS.activeEntity()._battler or at least some kind of entity (_battler) under BattleManagerTBS. Here is the addPopup() function btw:
JavaScript:
Lecode.S_TBS.DamagePopupEX.oldTBSEntitySprite_addPopup = TBSEntity_Sprite.prototype.addPopup;
TBSEntity_Sprite.prototype.addPopup = function () {
    var result = this._battler.result();
    Lecode.S_TBS.DamagePopupEX.oldTBSEntitySprite_addPopup.call(this);
    var addedStates = result.addedStateObjects();
    var removedStates = result.removedStateObjects();
    while (addedStates.length > 0) {
        this.addExtraPopup("addedState", [addedStates.shift()]);
    }
    while (removedStates.length > 0) {
        this.addExtraPopup("removedState", [removedStates.shift()]);
    }
    this._popupsInfo.movePoints = this._entity.getMovePoints();
};

Original thread: https://forums.rpgmakerweb.com/threads/damage-popups-wont-show-yep-letbs.127640/