I am now using SRD's pop up customizer which changes how pop ups are handled. It's a much better fit for my game but one important aspect isn't working wit it. Yanfly's "enfire" tips and tricks code fails to display any damage even though damage is visibly processed. I have no knowledge about how to try and fix this, any help would be greatly appreciated.
Here's SRD's plugin link:
http://sumrndm.site/battle-popup-customizer/
Here is yanfly's code for states:
<Custom Confirm Effect>
if (this.isHpEffect() && this.isAttack() && this.isPhysical()) {
// Get the element ID.
var elementId = 7;
// Set the damage for the effect.
var baseDamage = 20;
// Calculate the damage after applying the target's element rate.
var damage = Math.ceil(target.elementRate(elementId) * baseDamage);
// Make a copy of the target's results.
var result = JsonEx.makeDeepCopy(target._result);
// Clear the result.
target.clearResult();
// Play an animation on the target.
target.startAnimation(130);
// Deduct HP from the target.
target.gainHp(-damage);
// Start the damage popup.
target.startDamagePopup();
// Check if the target is dead.
if (target.isDead()) {
//
target.performCollapse();
}
target.clearResult();
target._result = result;
}
</Custom Confirm Effect>
Here's SRD's plugin link:
http://sumrndm.site/battle-popup-customizer/
Here is yanfly's code for states:
<Custom Confirm Effect>
if (this.isHpEffect() && this.isAttack() && this.isPhysical()) {
// Get the element ID.
var elementId = 7;
// Set the damage for the effect.
var baseDamage = 20;
// Calculate the damage after applying the target's element rate.
var damage = Math.ceil(target.elementRate(elementId) * baseDamage);
// Make a copy of the target's results.
var result = JsonEx.makeDeepCopy(target._result);
// Clear the result.
target.clearResult();
// Play an animation on the target.
target.startAnimation(130);
// Deduct HP from the target.
target.gainHp(-damage);
// Start the damage popup.
target.startDamagePopup();
// Check if the target is dead.
if (target.isDead()) {
//
target.performCollapse();
}
target.clearResult();
target._result = result;
}
</Custom Confirm Effect>