I'm pretty slumped, does this script work anymore? Stat-dependent DOTs

Hi all. I saw this video:



And was interested in the possibilities... that is, until I found out it's not working. Implementation seems pretty straight forward, but for some reason it's not working correctly. I have the required plugins installed, and have checked the settings like 7 times to make sure nothing is turned off.

I'm creating a Bleed state, which would damage every turn by 15% of the caster's ATK. The debuff is applying and refreshing correctly, but it's not doing any damage. I bumped up the values to see if it had anything to do with my starting low ATK values, but it's doing it even at level 100. I'm figuring no matter how high the armor, it would at least tick for 1 damage...

I'm completely stuck. I'm certain I'm doing something wrong but the video seems so easy, my plugins are updated and I only use Yanfly so I don't see how there would be any conflicts. I'd appreciate any input you have on the matter.

Using this note tag:

Spoiler: Script
<Custom Apply Effect>



target._customDotValue = origin.atk * 0.15; //change this line to change the damage formula of the DOT.



</Custom Apply Effect>



<Custom Remove Effect>



target._customDotValue = undefined;



</Custom Remove Effect>



<Custom Regenerate Effect>



if (target._customDotValue !== undefined) {



var value = target._customDotValue;



target.gainHp(-value);



target.startDamagePopup();



if (target.isDead()) {



target.performCollapse();



}



target.clearResult();



}



</Custom Regenerate Effect>
Moved to: Javascript/plugin support
Already helping him with this on Discord, I believe.
Use this:
<Custom Regenerate Effect>
var dmgform = origin.atk * 0.15;
target.gainHp(-dmgform);
target.startDamagePopup();



if (target.isDead()) {



target.performCollapse();



}



target.clearResult();



}
</Custom Regenerate Effect>

or this:
<Custom Regenerate Effect>
var dmgform = origin.atk * 0.15;
target.gainHp(-dmgform);
/<Custom Regenerate Effect>
We figured out the problem, it was something to do with having stb selected as the default system but the STB plugin not being on so BattleManager.isTurnBased was returning false and not calling the regenerateAll function.
Yeah, that was my bad. I didn't know to what degree the discord and the forums were separate entities >_<

Thank you all for your help, problem solved 🙂

Original thread: https://forums.rpgmakerweb.com/threads/im-pretty-slumped-does-this-script-work-anymore-stat-dependent-dots.76576/