Ok, so I have some DoT states that deal damage via <Custom Regerate Effect> notetags. The formula I use within the notetag accounts for the target's element rate as well. However, that only affects the damage/result value. I'd like to know how I can "tag" the DoT so that the game knows it's of a certain element. That way, if a character had a passive skill that did something whenever they are damaged by Fire, for example, the DoT from a Burn state would proc it. Btw, the <DoT Element: x> & <DoT Formula: x> notetags won't work in my case due to some plugin incompatibilities, so that's why I use <Custom Regerate Effect> instead.
Edit: Here's a highly simplified DoT formula to show what I got so far...
So if the target had a notetag like the following, the above DoT should trigger the effect...
Edit: Here's a highly simplified DoT formula to show what I got so far...
JavaScript:
<Custom Regerate Effect>
var value = Math.round(target.elementRate(4) * 100);
target.gainHp(-value);
</Custom Regerate Effect>
So if the target had a notetag like the following, the above DoT should trigger the effect...
JavaScript:
<Custom React Effect>
if (value > 0 && this.isHpEffect() && this.getItemElements().contains(4)) {
//Do stuff...
}
</Custom React Effect>