MZ VisuMZ BattleCore Healing Variable doesn't work
Javascript/Plugin SupportAnyone 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.
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?
- 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:
So it should work in the middle of the action?
So it should work in the middle of the action?
Original thread: https://forums.rpgmakerweb.com/threads/visumz-battlecore-healing-variable-doesnt-work.164645/