MV Yanfly Mastery Level adding damage to Damage / Healing over time

I have skills that I've level up and such but the ones that use states upon allies or enemies the numbers stay the same.

Example is Attack Spell level 0 does 55 damage first hit and next 3 turns the DoT is 17

The Attack Spell level 1 does 65 damage first hit and next 3 turns the DoT is 17.

The DoT damage never changes and that is the goal is to increase that.

Now take note I have very little understanding of JS.

So if come to help just tell me which Notes field I need to adjust and such.

I am having fun learning and researching for my game just very grateful for those with the knowledge.
It would be helpful if you writen what exactly you use to do the Leveling of the skill and the DoT.
Maybe they aren't even connected with one another.
It would be helpful if you written what exactly you use to do the Leveling of the skill and the DoT.
Maybe they aren't even connected with one another.

using several of the Yanfly JS plugins.

Skill Core
Skill Cooldowns
Skil Cost Items
SkillMastery Levels


Skills [ note box]

<damage formula>

value = a.luk * 1 - b.mdf;

var dot = (value / 2) - value * 0.05;

$gameVariables.setValue(600, dot);

</damage formula>

States [note box]

<Custom Regenerate Effect>

if (origin.isAlive()) {

var dot = $gameVariables.value(600);

dot = Math.floor(dot);

target.gainHp(-dot);

target.startDamagePopup();

target.clearResult();

if (target.isDead()) {

target.performCollapse();

}

}

</Custom Regenerate Effect>
I might be using the wrong code for these if so please give me a better direction.
Maybe try adding what you have on the <damage formula> box to the <Custom Regen> instead.
Another thing could be that it doesn't work with <Custom Regen>.

There's also something for Turn Start/End or Action Start/End as an alternative if that doesn't work.
Also if you put the information from inside the <damage formula> into <Custom Regen> or one of the things i suggested you won't need the $GameVar to keep the DoT in it.
Sorry if this didn't help.
Maybe try adding what you have on the <damage formula> box to the <Custom Regen> instead.
Another thing could be that it doesn't work with <Custom Regen>.

There's also something for Turn Start/End or Action Start/End as an alternative if that doesn't work.
Also if you put the information from inside the <damage formula> into <Custom Regen> or one of the things i suggested you won't need the $GameVar to keep the DoT in it.
Sorry if this didn't help.
well I get the damage over time since using the Var
it just does not add the damage that Mastery Level gives the skill and does not add the new numbers to the status per damage tick.
Try this inside the Damage Formula.
var dot = ((value / 2) - value * 0.05)*user.skillMasteryLevel(skillId);

Replacing skillid with the number of the skill

If it doesn't work try replacing user with $gameActors.actor(number)

If it works you can also adjust how much power the skill level matters
Example:
*(user.skillMasteryLevel(skillId)*1.25);
Try this inside the Damage Formula.
var dot = ((value / 2) - value * 0.05)*user.skillMasteryLevel(skillId);

Replacing skillid with the number of the skill

If it doesn't work try replacing user with $gameActors.actor(number)

If it works you can also adjust how much power the skill level matters
Example:
*(user.skillMasteryLevel(skillId)*1.25);



Code below works only 1 small issue which I can fix from start but if no mastery level earned than first level 0 DoT = 0 damage or healing. but your coding for this works 🙂 thank you.

<damage formula>

value = a.luk * 1.35 - b.mdf;

var dot = ((value / 4) - value * 0.05)*$gameActors.actor(5).skillMasteryLevel(75);

$gameVariables.setValue(599, dot);

</damage formula>
with skill mastery just needed to adjust on actor [note box] starting mastery level to be Level 1 instead of zero for the DoT and HoT skills... thanks again @Johnny_Ray
with skill mastery just needed to adjust on actor [note box] starting mastery level to be Level 1 instead of zero for the DoT and HoT skills... thanks again @Johnny_Ray
Variables used in damage formulas always need to be initialized, by setting to anything other than zero, before they can be used in the formula.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-mastery-level-adding-damage-to-damage-healing-over-time.131367/