- Joined
- Oct 29, 2015
- Messages
- 1,127
- Reaction score
- 1,351
- First Language
- Swedish
- Primarily Uses
- RMMZ
Yanfly made this video long ago for how you could use his Job Points (JP) plugin to make passive skills that allows you to upgrade your basic parameters such as HP, MP, ATK, DEF, etc.
This here being the code snippet he provides in the video:
I have two questions in regards to this.
First one being in regards to the compatibility between a system like this and the general increase of parameters upon level up. Because in the database you don't specify the gain of each parameter at certain level (right?), but rather what they should be. So it's more of a "set this parameter to value X", and not "add X to this parameter upon reaching this level".
Unless I'm incorrect I assume there isn't a simple fix for this? I'd really love to allow organic stat growth to happen automatically upon level up, as well as allowing the player to further invest into certain stats they're more interested in (at the cost of having less JP to spend on skills).
I'm mostly looking for some insight on this and not necessarily a solution, unless the solution is very easy and/or I've completely misunderstood how things work.
Second question is pretty easy, I think. Well, I'm pretty sure it's fairly simple at least.
In Yanfly's updated video he added a counter to how many times the skill has been bought by that actor and used that variable to increase the cost of the skill. See that video here:
I don't want the cost to increase but rather keep count of how many times the actor has bought the skill and set a limit to it. To keep it simple, make it so you can only buy the passive "Upgrade HP" (etc) skill X amount of times before it's maxed out.
As always, if you got to the bottom, thanks for reading all the way down here.
This here being the code snippet he provides in the video:
Code:
<Learn Cost: 500 JP>
user._paramPlus[0] +=500;
user.forgetSkill(21);
user.refresh();
</Learn Cost Eval>
I have two questions in regards to this.
First one being in regards to the compatibility between a system like this and the general increase of parameters upon level up. Because in the database you don't specify the gain of each parameter at certain level (right?), but rather what they should be. So it's more of a "set this parameter to value X", and not "add X to this parameter upon reaching this level".
Unless I'm incorrect I assume there isn't a simple fix for this? I'd really love to allow organic stat growth to happen automatically upon level up, as well as allowing the player to further invest into certain stats they're more interested in (at the cost of having less JP to spend on skills).
I'm mostly looking for some insight on this and not necessarily a solution, unless the solution is very easy and/or I've completely misunderstood how things work.
Second question is pretty easy, I think. Well, I'm pretty sure it's fairly simple at least.
In Yanfly's updated video he added a counter to how many times the skill has been bought by that actor and used that variable to increase the cost of the skill. See that video here:
I don't want the cost to increase but rather keep count of how many times the actor has bought the skill and set a limit to it. To keep it simple, make it so you can only buy the passive "Upgrade HP" (etc) skill X amount of times before it's maxed out.
As always, if you got to the bottom, thanks for reading all the way down here.