Damage over time effects using Yanfly States/Buff core has a problem when it comes to collapsing/dead, it doesn't function the same way as a normal kill nor does it activate events like when the enemy is at 0% life.
To counter this bug, I had to rewrite everything an enemy does when he die by a normal skill like this on every DoT state:
if (target.hp === 0 && !target.isStateAffected(38)) {
target.gainHp(target.mhp);
target.addState(27);
target.removeState(27);
target.transform(3);
target.hide();
var x = $gameVariables.value(83);
$gameVariables.setValue(83, x + 1);
$gameSwitches.setValue(29, true);
target.startAnimation(1,false,0);
}
So far I was able to do this for everything without problems but now I just got a problem I can't solve.
When all actors die, a common event should happen before the game over screen.
I'm using a plugin that works very well for that (Cv2 Death Common Event), the problem is again, if the last actor died from DoTs then the common event wont happen at all.
I'm looking for a solution to this problem or at least just the common event part.
I'll probably have to commission it in classified though as it's a bug.
To counter this bug, I had to rewrite everything an enemy does when he die by a normal skill like this on every DoT state:
if (target.hp === 0 && !target.isStateAffected(38)) {
target.gainHp(target.mhp);
target.addState(27);
target.removeState(27);
target.transform(3);
target.hide();
var x = $gameVariables.value(83);
$gameVariables.setValue(83, x + 1);
$gameSwitches.setValue(29, true);
target.startAnimation(1,false,0);
}
So far I was able to do this for everything without problems but now I just got a problem I can't solve.
When all actors die, a common event should happen before the game over screen.
I'm using a plugin that works very well for that (Cv2 Death Common Event), the problem is again, if the last actor died from DoTs then the common event wont happen at all.
I'm looking for a solution to this problem or at least just the common event part.
I'll probably have to commission it in classified though as it's a bug.