Hello!
They're not incompatible, but works with separated mechanics. YEP_ExtDot make specific damage formula for the State, while my Plugin use the default HRG rate. The example Notetag you provide above would work, but the elementRate(3) and Elemental popup would occurs only if the State have a HRG trait. and if so, 2 popups would show: the one from Yanfly with damage set by the notetag formula (not modified by element unless you place also an ExtDot element Notetag) and the one from the HRG trait, modified by element 3 and with the according elemental popup...
My guess is you want to use the custom formula of YEP_ExtDot, but would like to show the Elemental effect (weak, resist) from my Plugin. If that's what you want, here's a simple edit to make that happen:
1) Edit to YEP_ExtDot:
Find that function:
Code:
Game_Battler.prototype.applyDamageOverTimeElement = function(damage, element) {
if (element === 0) return damage;
return damage * this.elementRate(element);
};
And add that line in the middle (it call a function from my Plugin):
Code:
Game_Battler.prototype.applyDamageOverTimeElement = function(damage, element) {
if (element === 0) return damage;
this.checkElementalPopup(damage, damage * this.elementRate(element)) //added this line
return damage * this.elementRate(element);
};
2) Edit to TSR_Popups:
Find that function:
Code:
Game_Battler.prototype.regenerateHp = function() {
if (Imported.YEP_X_TickBasedRegen) {
var value = Math.floor(this.mhp * this.hrg);
value = Math.max(value, -this.maxSlipDamage());
if (value !== 0) {
this.gainHp(value);
}
TSR.Popups._HaveElementEffect = false
} else {
let preValue = Math.floor(this.mhp * this.hrg);
preValue = Math.max(preValue, -this.maxSlipDamage());
var value = Math.floor(this.mhp * this.getTickElementRate());
value = Math.max(value, -this.maxSlipDamage());
this.checkElementalPopup(preValue, value);
if (value !== 0) {
this.gainHp(value);
}
}
TSR.Popups._StateResistRequest = false
};
And add a conditional before the checkElementalPopup function:
Code:
Game_Battler.prototype.regenerateHp = function() {
if (Imported.YEP_X_TickBasedRegen) {
var value = Math.floor(this.mhp * this.hrg);
value = Math.max(value, -this.maxSlipDamage());
if (value !== 0) {
this.gainHp(value);
}
TSR.Popups._HaveElementEffect = false
} else {
let preValue = Math.floor(this.mhp * this.hrg);
preValue = Math.max(preValue, -this.maxSlipDamage());
var value = Math.floor(this.mhp * this.getTickElementRate());
value = Math.max(value, -this.maxSlipDamage());
if (!Imported.YEP_X_ExtDoT) this.checkElementalPopup(preValue, value); //HERE
if (value !== 0) {
this.gainHp(value);
}
}
TSR.Popups._StateResistRequest = false
};
Now if you put these Notetags in the State:
<DoT Formula: 3>
<DoT Element: 3>
The damage and elemental calculation will be made according to Yanfly Plugin settings and Notetags, but Elemental Effect will pop along the way
😉
Hope that'll help!