Hi,
I'm having a minor visual problem that nontheless keeps nagging at me.
I've created a "Magic Guard" effect that works like a guard effect, except it blocks up to 75% of the incoming damage but reduces the mp by 1/4 of the original damage.
(Basically, a shield is created that absorbs the blow)
The effect is made as a react effect (http://www.yanfly.moe/wiki/Buffs_&_States_Core_(YEP)) that is attached to a "Magic Guard" State.
It works well, but there's one problem:
While the MP is reduced correctly, the mp damage is not visually displayed as it would be with a damage attack dealing mp damage. (No blue -12 MP text appearing).
While this is only a visual bug, not a functional one, is there some way I can make the mp.damage popup show above the character?
It seems inconsistent to hide the effects consequences unless the player actually watches the MP bar and sees the undisplayed mp damage.
I'm having a minor visual problem that nontheless keeps nagging at me.
I've created a "Magic Guard" effect that works like a guard effect, except it blocks up to 75% of the incoming damage but reduces the mp by 1/4 of the original damage.
(Basically, a shield is created that absorbs the blow)
The effect is made as a react effect (http://www.yanfly.moe/wiki/Buffs_&_States_Core_(YEP)) that is attached to a "Magic Guard" State.
JavaScript:
<Custom Apply Effect>
user.startAnimation(39);
</Custom Apply Effect>
<Custom React Effect>
if (value > 0 && target.mp >= 1 && this.isHpEffect()) {
var mpMod = Math.floor(value * 0.25);
var mpDmg = Math.min(mpMod, target.mp);
target.gainMp(-mpDmg);
value -= (mpDmg * 3);
if (target.mp === 0) {
target.removeState(4);
}
}
</Custom React Effect>
It works well, but there's one problem:
While the MP is reduced correctly, the mp damage is not visually displayed as it would be with a damage attack dealing mp damage. (No blue -12 MP text appearing).
While this is only a visual bug, not a functional one, is there some way I can make the mp.damage popup show above the character?
It seems inconsistent to hide the effects consequences unless the player actually watches the MP bar and sees the undisplayed mp damage.
