MZ VisuMZ BattleCore Healing Variable doesn't work

1704835836309.png

1704835870526.png
1704835893279.png
This is setup for a skill I have. When it shows in combat log message, it displays 0, even if enemy recovered 30 HP. Any ideas why it's not working?
View attachment 291345
View attachment 291347View attachment 291348This is setup for a skill I have. When it shows in combat log message, it displays 0, even if enemy recovered 30 HP. Any ideas why it's not working?

Anyone please correct me if I'm wrong, but I think putting a Common Event in the Effects Tab means the Common Event happens before the skill can heal.
Anyone please correct me if I'm wrong, but I think putting a Common Event in the Effects Tab means the Common Event happens before the skill can heal.
It's the opposite. All Effects happen after the skill has entirely resolved.

However, that has nothing to do with this case where the common event is being called as the skill's action sequence.

I'm not sure why the variable is necessary - if the skill is healing a static 30 with no variance, and this action sequence is for this skill, just type in 30.

My best guess is that the damage/healing variables are not actually populated until after the skill/action sequence resolves, so trying to reference them in the middle will result in 0.

Try showing it in a window in an after eval notetag instead.
It's the opposite. All Effects happen after the skill has entirely resolved.

However, that has nothing to do with this case where the common event is being called as the skill's action sequence.

I'm not sure why the variable is necessary - if the skill is healing a static 30 with no variance, and this action sequence is for this skill, just type in 30.

My best guess is that the damage/healing variables are not actually populated until after the skill/action sequence resolves, so trying to reference them in the middle will result in 0.

Try showing it in a window in an after eval notetag instead.
Like creating separate common event to show variable that runs after that event? Tried out, doesn't work
Edit: Long story short, I managed to put up code that can do what I want, but I have problem with setting it to ignore certain skills by id. Any ideas how to fix that?
  1. if (user.isEnemy()) {
    if (user.enemyId() === 11) {
    if (this.isSkill() && this.item().id === 380 && user.isEnemy()) {
    }
    if (this.isSkill() && this.item().id === 381 && user.isEnemy()) {
    }
    if (this.isSkill() && this.item().id === 384 && user.isEnemy()) {
    }
    if (this.isSkill() && this.item().id === 349 && user.isEnemy()) {
    }
    else {
    $gameVariables.setValue(12, value * (-1));
    $gameTemp.reserveCommonEvent(289);
    }
    }
    }
Don't know that the problem is, but VisuStella page says that:

Variable: Healing:
- Variable records target healing during action.
- Variable reverts to 0 whenever an action starts.
- If multiple targets/hits are struck, the variable will record the total
amount of healing done for the remainder of the action (unless manually
reseting to 0 during an Action Sequence).

So it should work in the middle of the action?

Original thread: https://forums.rpgmakerweb.com/threads/visumz-battlecore-healing-variable-doesnt-work.164645/