I have a skill where I have a 25% chance to have rage inflicted on my self. But I see no way to do this. Ideas?
Give my self rage on attack of enemy
RPG Maker MV SupportIf you have Yanfly's skill core plugin installed, you can use the following notetag on the skill to do this:
<Post-Damage Eval>
var chance = 0.25;
if (Math.random() < chance) user.addState(STATEID);
</Post-Damage Eval>
Replace STATEID with the id of your rage state.
<Post-Damage Eval>
var chance = 0.25;
if (Math.random() < chance) user.addState(STATEID);
</Post-Damage Eval>
Replace STATEID with the id of your rage state.
Thank you
Original thread: https://forums.rpgmakerweb.com/threads/give-my-self-rage-on-attack-of-enemy.80411/