Help with a DoT formula

well... you can know if you ask? 😉  thank you very much for the formula


BTW


im trying to change the damage formula for the tick on each stack


im doing this:


<Custom Regenerate Effect>


target.gainHp(-target.mhp * 0.02 * target._dotStack)


</Custom Regenerate Effect>


but it keeps popping up with two different sets of damage popups... any ways to fix this?


Im also curious to know if i could use IF statements
if you get 2 damage popups, it would mean something else on your state make the target lose hp as well, like a hp regeneration trait.


if (target.x) { }
Huh? It is in fact very easy. But ill have to redo the entire formula.


Skills


<Before Eval>
Please don't say anything that isn't helpful. I know you're not using MV so you shouldn't say X requires a "large rewrite" when it isn't the case at all.



That is a bit strange - you give proof that I'm correct and then claim it would not be the case?


The default will require a large rewrite - the fact that Yanfly already made that rewrite does not change this simple fact.


And even with Yanfly's Plugins, you basically have to use his "lunatic mode" notetags for additional code, like you said yourself and placed it there.


And it is absolutely impossible to do what the OP wanted without using such plugins and added code.


However, you should always keep in mind that using plugins is NOT the default, especially when someone needs plugins that are incompatible to each other - there are other plugins that are incompatible to Yanfly's set, and your "solution" becomes unusable if someone wants to use those other plugins.


And don't assume that I'm not using MV - I do, but I'm also one of those developers who don't use Yanfly's plugins - in fact I'm searching for an alternative whereever I can, because Yanfly has some ideas about game mechanics that simply do not fit with my planned modifications for the engine, and his plugins make too many additional changes to make keeping my ideas compatible easy.
That is a bit strange - you give proof that I'm correct and then claim it would not be the case?


The default will require a large rewrite - the fact that Yanfly already made that rewrite does not change this simple fact.


And even with Yanfly's Plugins, you basically have to use his "lunatic mode" notetags for additional code, like you said yourself and placed it there.


And it is absolutely impossible to do what the OP wanted without using such plugins and added code.


However, you should always keep in mind that using plugins is NOT the default, especially when someone needs plugins that are incompatible to each other - there are other plugins that are incompatible to Yanfly's set, and your "solution" becomes unusable if someone wants to use those other plugins.


And don't assume that I'm not using MV - I do, but I'm also one of those developers who don't use Yanfly's plugins - in fact I'm searching for an alternative whereever I can, because Yanfly has some ideas about game mechanics that simply do not fit with my planned modifications for the engine, and his plugins make too many additional changes to make keeping my ideas compatible easy.

I'm not even a coder and l found a state stacking solution in a matter of minutes. What you think to do is irrelevant if it does requires a "large rewrite"(quick tip: it doesn't, it's all about variables).


Didn't see a single plugin that isn't gimmick and doesn't work with Yanfly's State Core yet. You must be talking about your own personal plugins then.


Just stop and accept there are other alternatives besides your own logic for once.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-dot-formula.72211/