I hope you have a happy day dear RPG maker community.
I have been struggling to find a way how to play an animation whenever an actor lands an elemental weakness hit in battle.
The animation should play BEFORE the actor does the action.
It already works for critical hits by calling a common event (which plays the animation):
But if I try it with this, it doesn't play the animation BEFORE, but AFTER the action has been done.
So I think I need a script that checks if the result is going to be a weak hit BEFORE the actor does his move. Anyone knows what to do...? 😅
*I use Yanflys Battle Engine Core and DreamX ITB
I have been struggling to find a way how to play an animation whenever an actor lands an elemental weakness hit in battle.
The animation should play BEFORE the actor does the action.
It already works for critical hits by calling a common event (which plays the animation):
Code:
VictorEngine.CriticalHitEffects.applyGlobal = Game_Action.prototype.applyGlobal;
Game_Action.prototype.applyGlobal = function() {
VictorEngine.CriticalHitEffects.applyGlobal.call(this);
this.earlyCriticalCheck(); //JA
Game_Action.prototype.isCritical = function() {
if (this._isCritical) {
$gameTemp.reserveCommonEvent(11);
}
};};
But if I try it with this, it doesn't play the animation BEFORE, but AFTER the action has been done.
Code:
Game_Action.prototype.handleElementalExtraActions = function (user, target) {
if (this.calcElementRate(target) > 1) {
$gameTemp.reserveCommonEvent(11);}
};
So I think I need a script that checks if the result is going to be a weak hit BEFORE the actor does his move. Anyone knows what to do...? 😅
*I use Yanflys Battle Engine Core and DreamX ITB