Hello, thank you for reading this post ^^
I need to make a state that when applied to an enemy, makes the actor that attacked the enemy get bonus TP (either a flat rate, or a multiplier)
The most promising lead I have is the Punish Effect 8: Drain MP from Yanfly's Lunatic States: Punishment pack
The key differences being the fact that, obviously, it affects MP instead of TP, it is triggered by MP Damage instead of HP Damage, and it doesn't recover MP to the person who dealt the damage, but the person who cast the state.
The snippet from Yanfly's Lunatic States: Punishment Package that I'm referring to.
However there might be a simpler solution to this problem that doesn't require the use of Lunatic States.
I would greatly appreciate any help!
I need to make a state that when applied to an enemy, makes the actor that attacked the enemy get bonus TP (either a flat rate, or a multiplier)
The most promising lead I have is the Punish Effect 8: Drain MP from Yanfly's Lunatic States: Punishment pack
The key differences being the fact that, obviously, it affects MP instead of TP, it is triggered by MP Damage instead of HP Damage, and it doesn't recover MP to the person who dealt the damage, but the person who cast the state.
The snippet from Yanfly's Lunatic States: Punishment Package that I'm referring to.
#---------------------------------------------------------------------- # Punish Effect No.8: Drain MP # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Best used with shock effect. Whenever user takes MP damage, the # original caster of the state will heal MP based on MP damage dealt. # # Recommended notetag: # <shock effect: drain mp x%> #---------------------------------------------------------------------- when /DRAIN MP[ ](\d+)([%%])/i return unless @result.mp_damage > 0 dmg = (@result.mp_damage * $1.to_i * 0.01).to_i if $imported["YEA-BattleEngine"] && dmg > 0 Sound.play_recovery text = sprintf(YEA::BATTLE::POPUP_SETTINGS[:mp_heal], dmg.group) user.create_popup(text, "MP_HEAL") end state_origin.mp += dmgHowever there might be a simpler solution to this problem that doesn't require the use of Lunatic States.
I would greatly appreciate any help!