Help with Yanfly's 'Skill Learn System' Plugin

I'm using Yanfly's 'Skill Learn System' to raise a character's MaxHP by 10 every time he upgrades using this skill.

Similar to how the JP cost increases by 50 per each learning, I'd like the MaxHP to increase by an additional 5 points each time it's learned.

So it would level up like so each time.

1st) HP +10 --- 100 JP
2nd) HP +15 --- 200 JP
3rd) HP +20 --- 300 JP

I know next-to-nothing about JS, so any help would be GREATLY appreciated 😀

(the '0' below is the parameter ID for MHP)

Spoiler: Notetag
<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 0;
// Increase the parameter by this amount.
user._paramPlus[0] += 10;
// Adjust the number of times upgraded by 1.
user._upgradeParam[id] += 1;
// Make the user forget the skill.
user.forgetSkill(3);
// Refresh the user.
user.refresh();
</Learn Cost Eval>

<Custom Learn JP Cost>
// Set the param ID of the stat you wish to adjust.
var id = 0;
// Default the user's upgrade parameter times to empty.
user._upgradeParam = user._upgradeParam || [];
user._upgradeParam[id] = user._upgradeParam[id] || 0;
// Adjust the cost of
cost = user._upgradeParam[id] * 100;
</Custom Learn JP Cost>

<Custom Cost Display>
\}Passive\{
</Custom Cost Display>

<Hide in Battle>
I don't have any real experience with Yanfly's Skill Learn System, but as it's just a js eval I'll take a stab anyway.

As the first increase (level 0 -> 1) is 10 and the rest are 5, we just need to say add 5 extra on the first upgrade.

Code:
<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 0;
// If this is the first time upgrading parameter add an extra 5.
if (user._upgradeParam[id] === 0) {
   user._paramPlus[id] += 5
}
// Increase the parameter by this amount every additional level.
user._paramPlus[id] += 5;
// Adjust the number of times upgraded by 1.
user._upgradeParam[id] += 1;
// Make the user forget the skill.
user.forgetSkill(3);
// Refresh the user.
user.refresh();
</Learn Cost Eval>
I don't have any real experience with Yanfly's Skill Learn System, but as it's just a js eval I'll take a stab anyway.

As the first increase (level 0 -> 1) is 10 and the rest are 5, we just need to say add 5 extra on the first upgrade.

Code:
<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 0;
// If this is the first time upgrading parameter add an extra 5.
if (user._upgradeParam[id] === 0) {
   user._paramPlus[id] += 5
}
// Increase the parameter by this amount every additional level.
user._paramPlus[id] += 5;
// Adjust the number of times upgraded by 1.
user._upgradeParam[id] += 1;
// Make the user forget the skill.
user.forgetSkill(3);
// Refresh the user.
user.refresh();
</Learn Cost Eval>

Okay, so I put this in and replaced all the [id] with 0 but all it did was increase my HP by 10 the first time, and then added only 5 afterwards. It wasn't stacking as +10, +15, +20, etc.

I may have just done something wrong?

Was I not supposed to replace my old <Learn Cost eval> with this one you provided?
I don't have any real experience with Yanfly's Skill Learn System, but as it's just a js eval I'll take a stab anyway.

As the first increase (level 0 -> 1) is 10 and the rest are 5, we just need to say add 5 extra on the first upgrade.

Code:
<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 0;
// If this is the first time upgrading parameter add an extra 5.
if (user._upgradeParam[id] === 0) {
   user._paramPlus[id] += 5
}
// Increase the parameter by this amount every additional level.
user._paramPlus[id] += 5;
// Adjust the number of times upgraded by 1.
user._upgradeParam[id] += 1;
// Make the user forget the skill.
user.forgetSkill(3);
// Refresh the user.
user.refresh();
</Learn Cost Eval>

So I did input the custom eval incorrectly.

Thanks so much!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanflys-skill-learn-system-plugin.118013/