I was wondering if anyone knew a way to make a state that applied damage from an element, like poison or bleed, each turn? I currently use the negative HP regeneration, but I would like to have multiple states like burn and frozen that would do different elements.
MZ Persistent damage over time, applying elements
JS Plugin RequestsIn theory I think you'd be able to rig something for this using troop events.
In practice you'd want a plugin, though, so...
Looks like VisuStella Skills & States Core has some "Slip Damage" script notetags that could do this?
www.yanfly.moe
E.g. (untested):
I.e. "20% of the target's max HP, multiplied by their element rate for element 7". (
In practice you'd want a plugin, though, so...
I've moved this thread to JS Plugin Requests (from MZ Support). Thank you.
Looks like VisuStella Skills & States Core has some "Slip Damage" script notetags that could do this?
Skills and States Core VisuStella MZ - Yanfly.moe Wiki
<JS HP Slip Damage>
damage = Math.floor(0.2 * target.mhp * target.elementRate(7));
</JS HP Slip Damage>I.e. "20% of the target's max HP, multiplied by their element rate for element 7". (
Math.floor just rounds down so you don't end up with fractions.)Thanks Caethyril! You are always so helpful, I appreciate it!
You're welcome! 👋
Original thread: https://forums.rpgmakerweb.com/threads/persistent-damage-over-time-applying-elements.153863/