(English is not my native language, sorry for my english google translate)
I came across this post a while ago, which helped me at the time, and going back to it recently I had a question about one of this effects:
Looking back at this, I tested it on my MZ project, and it works great, but I realized that it doesn't necessarily match the way I manage skills to the actors in my game.
I have a problem with the fact that it's a skill to learn, but I like the idea of using SP, or even AP, for this effect.
So here is my question :
Is there a way to use SP (or AP) as skill cost?
What I would like to have in the end is not a skill to learn, but a normal skill with the effect "Stat Upgrades", with SP (or AP) as a cost.
I want to point out that this would concern skills that can only be used outside of combat.
I know that in Skills and States Core VisuStella plugin we can configure different types of costs.
(<- Skill States Core Parameter / Skill Cost Types )
Used with the notetag
But if anyone has a better idea to achieve the same result (use SP or AP as cost), I'm certainly interested.
Given my level of coding/development, I am absolutely not capable of creating a new type of cost.
But if any generous person feels the need to help a big noob, I would be very grateful.
And please feel free to give ideas if you have any, it can always help.
I came across this post a while ago, which helped me at the time, and going back to it recently I had a question about one of this effects:
Requires the tier 2 Skill Learn System plugin.
If you wish to use Job Points for advancement, this will also require the tier 2 Class Change System plugin, but you can achieve the same effect using Skill Points or Ability Points.
The code supplied is for adding 200 to HP per upgrade.
Adjust the param ID and additional values according to your needs. (1 = MP, 2 = ATK, 3 = DEF, 4 = MAT, 5 = MDF, 6 = AGI, 7 = LUK)
If you wish to use Job Points for advancement, this will also require the tier 2 Class Change System plugin, but you can achieve the same effect using Skill Points or Ability Points.
JavaScript:
<JS On Learn Skill>
const id = 0;
user._paramPlus[id] += 200;
user._upgradeParam ??= [];
user._upgradeParam[id] ??= 0;
user._upgradeParam[id] += 1;
user.forgetSkill(skill.id);
user.refresh();
</JS On Learn Skill>
<JS Learn SP Cost>
const id = 0;
user._upgradeParam ??= [];
user._upgradeParam[id] ??= 0;
cost = 1000 + user._upgradeParam[id] * 200;
</JS Learn SP Cost>
<Hide in Battle>
The code supplied is for adding 200 to HP per upgrade.
Adjust the param ID and additional values according to your needs. (1 = MP, 2 = ATK, 3 = DEF, 4 = MAT, 5 = MDF, 6 = AGI, 7 = LUK)
Looking back at this, I tested it on my MZ project, and it works great, but I realized that it doesn't necessarily match the way I manage skills to the actors in my game.
I have a problem with the fact that it's a skill to learn, but I like the idea of using SP, or even AP, for this effect.
So here is my question :
Is there a way to use SP (or AP) as skill cost?
What I would like to have in the end is not a skill to learn, but a normal skill with the effect "Stat Upgrades", with SP (or AP) as a cost.
I want to point out that this would concern skills that can only be used outside of combat.
I know that in Skills and States Core VisuStella plugin we can configure different types of costs.
(<- Skill States Core Parameter / Skill Cost Types )
Used with the notetag
<Skill Cost: x>, that would be the solution.But if anyone has a better idea to achieve the same result (use SP or AP as cost), I'm certainly interested.
Given my level of coding/development, I am absolutely not capable of creating a new type of cost.
But if any generous person feels the need to help a big noob, I would be very grateful.
And please feel free to give ideas if you have any, it can always help.