RPG Maker Forums

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 :D

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

<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>

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top