(Credit to the post https://forums.rpgmakerweb.com/index.php?threads/absorb-damage-state.82101/ )
I don't know where it is and I've been looking for it...
At the current moment...
The way it's supposed to work is that...- So the question is.
What is the code that I would need to apply the effect?
The effect is : "Upon taking damage from a foe, gain an amount of SP equal to 1% of damage taken."
I'm not a great coder myself, I'm more of an artist and event type of person. But when it comes to this...
I don't know where it is and I've been looking for it...
At the current moment...
Code:
<Custom React Effect>
if (value > 0 && this.isPhysical()){
target.gainMp(value);
target.startAnimation(58); //Change x into an animation ID if you want to display animation when this effect is activated.
value = value * 0.2;
target.startDamagePopup();}
</Custom React Effect>
The way it's supposed to work is that...- So the question is.
What is the code that I would need to apply the effect?
The effect is : "Upon taking damage from a foe, gain an amount of SP equal to 1% of damage taken."
I'm not a great coder myself, I'm more of an artist and event type of person. But when it comes to this...