MV Popup Numbers when using gainHp/etc

Hello!
I tried looking everywhere and I can't seem to find an answer if it's possible for the numbers to popup like how it usually does when you're using a normal skill.

The thing I'm doing is that I have a state that has this notetag from Yanfly Buffs&States:

Code:
<Custom Victory Effect>
user.gainHp(2);
</Custom Victory Effect>

And it does work, but there's no animation nor popup numbers to visually show the effect(besides the boring hp bar went a little bit up).
Hopefully there's a solution to this, I also tried using forceaction:

Code:
<Custom Victory Effect>
BattleManager.queueForceAction(user, 7, user);
this.setWaitMode('action');
</Custom Victory Effect>

But this one does not work at all, the battle just ends.
I want to note that I am using Yanfly's Victory Aftermath & SRD's BattleEndEvents, if that helps.
add this after your gainHp
Code:
user.startDamagePopup();

I'm assuming your second wouldnt work because by then, the fight is already over. there wouldnt be any further actions
add this after your gainHp
Code:
user.startDamagePopup();

I'm assuming your second wouldnt work because by then, the fight is already over. there wouldnt be any further actions
Works amazingly!

Somehow I didn't find that script and I've been looking for at least 2 hours now..

Anyway, thank you very much!
add this after your gainHp
Code:
user.startDamagePopup();

I'm assuming your second wouldnt work because by then, the fight is already over. there wouldnt be any further actions
Sorry for the ping, I just want to ask another question.
So I know that if you use Absorption Barrier by Yanfly, it has it's own damage number popup.
Is there a way to have another popup for, let's say if a variable increase or decrease?
Sorry for the ping, I just want to ask another question.
So I know that if you use Absorption Barrier by Yanfly, it has it's own damage number popup.
Is there a way to have another popup for, let's say if a variable increase or decrease?
You could set the hpDamage property of the battler's result and do another startDamagePopup() call to "simulate" it without actually dealing damage, but that would potentially mess with anything that was using that value to track cumulative damage totals and things like that.
You could set the hpDamage property of the battler's result and do another startDamagePopup() call to "simulate" it without actually dealing damage, but that would potentially mess with anything that was using that value to track cumulative damage totals and things like that.
Yeah I figured.
I was going to use it for a skill that does damage and if lethal, you gain gold. so there might be a problem.
Yeah I figured.
I was going to use it for a skill that does damage and if lethal, you gain gold. so there might be a problem.
Im assuming you wanted the gold earned from the kill to be the popup for the skill? You could make it display in the message box or make a gab to display it if the popup route doesnt come up with anything usable.
Im assuming you wanted the gold earned from the kill to be the popup for the skill? You could make it display in the message box or make a gab to display it if the popup route doesnt come up with anything usable.
That was another solution I found, but unfortunately I wasn't using a message box in my game or a gab, so it would look really weird if that single skill is the only one that has it.
I wish there was a way to trigger mog's treasure drop plugin to work though.

Original thread: https://forums.rpgmakerweb.com/threads/popup-numbers-when-using-gainhp-etc.163412/