Im wondering if there is a clean way to use the Skill Learn system to have progressive skills?
For one, I want to have stats require items that progressively require more of, to my knowledge only JP can have a progressive formula.
So I did this, on 4th purchase it keeps the skill but hides it which allows me to learn MAX HP +300, which requires 3 items instead of 1.
Skill:
MAX HP +200
It works so far but in the Learn System it still shows MAX HP +200 "learned", and if I have another progression at HP +500, it would have both +200 and +300 on screen.
This applies to skills as well, id like to have a few key skills that can be upgraded for a total of 3. If I do Ice, then learnt Ice 2 and finally Ice 3, I can hide the first and 2nd Ice but they will be on the learn menu as learnt.
7 main stats * 3 for each progression = 21
10 skills * 3 levels each = 30
Thats 51 skills cluttering the data base and menu! Its doable yes but is there an easier cleaner way where I dont need one actor to have 50 different skills lol.
For one, I want to have stats require items that progressively require more of, to my knowledge only JP can have a progressive formula.
So I did this, on 4th purchase it keeps the skill but hides it which allows me to learn MAX HP +300, which requires 3 items instead of 1.
Skill:
MAX HP +200
Code:
<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[id] += 200;
// Adjust the number of times upgraded by 1.
user._upgradeParam[id] += 1;
// Make the user forget the skill if upgraded 4 times.
if (user._upgradeParam[id] <= 3) {
user.forgetSkill(skill.id);
}
else {
}
// 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] * 200;
</Custom Learn JP Cost>
<Learn Cost>
Item 5: 1
</Learn Cost>
<Custom Cost Display>
\}Passive\{
</Custom Cost Display>
<Hide in Battle>
<Hide in Field>
It works so far but in the Learn System it still shows MAX HP +200 "learned", and if I have another progression at HP +500, it would have both +200 and +300 on screen.
This applies to skills as well, id like to have a few key skills that can be upgraded for a total of 3. If I do Ice, then learnt Ice 2 and finally Ice 3, I can hide the first and 2nd Ice but they will be on the learn menu as learnt.
7 main stats * 3 for each progression = 21
10 skills * 3 levels each = 30
Thats 51 skills cluttering the data base and menu! Its doable yes but is there an easier cleaner way where I dont need one actor to have 50 different skills lol.