I want for my DoT status effects, instead of reducing the HP Regen stat (which would make them scale off enemy HP, which sounds underpowered on normal enemies and ridiculously OP on bosses), to deal a specific amount of damage (either static or scaling on the appying character's Attack/Luck), and for it to be of a specific element (e.g. Burn applying Fire damage, and Shock applying Electrical damage). I have VisuStella's plugins, allowing me to use JS in Status notetags.
How to make a status effect deal static elemental damage over time?
RPG Maker MZ SupportThe Skills and States Core has a whole section in the instructions on Slip Damage notetags.
To make it "have an element," you reference the target's elementRate() for the appropriate ID.
If you need help with the specific code, then you need to decide whether it's doing a static number or based off one of the attacker's parameters.
To make it "have an element," you reference the target's elementRate() for the appropriate ID.
If you need help with the specific code, then you need to decide whether it's doing a static number or based off one of the attacker's parameters.
Thank you, that's exactly what I was looking for!
Though, one more thing: the instructions tell that "The
Though, one more thing: the instructions tell that "The
user variable refers to the origin of the state." - does it mean that the user variable refers to the unit that applied the state on another unit? And if yes, then how can I acces the Attack/Luck parameters of it, like in the case of target.elementRate()?The same way do you anyplace else, such as the damage formula.
user.atk or user.lukOriginal thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-status-effect-deal-static-elemental-damage-over-time.171348/