- Joined
- Aug 18, 2019
- Messages
- 121
- Reaction score
- 16
- First Language
- English
- Primarily Uses
- RMMV
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)
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)
<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>
// 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>
Last edited:
