Parallax Panda

Veteran
Veteran
Joined
Oct 29, 2015
Messages
1,106
Reaction score
1,340
First Language
Swedish
Primarily Uses
RMMV
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:
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. :kaoluv:
 

hosercanadian

Veteran
Veteran
Joined
Jul 18, 2016
Messages
53
Reaction score
15
First Language
English
Primarily Uses
I tackled this problem in a slightly different way than a direct add to parameters.

I created a series of Passive States (another Yanfly plug-in). These are applied when a skill is learned, and those skills are otherwise placeholders that never show-up once learned. I can show my notes if needed, but very simple process for each of the plug-ins.

The result are stat buffs with a scaled increase (normally 10% each). It does mean characters could quickly become over-powered. The most obvious example is when you use the test battle which has the characters knowing all possible skills. A 50% increase to all stats means they are untouchable, but if you factor in that possibility for end-game stages it is less of a concern. In my game players earn very small numbers per enemy killed and a modest bump per level meaning they essentially can only learn a new skill every level and approximately every 5 levels a new skill from enemies slain.
 

Parallax Panda

Veteran
Veteran
Joined
Oct 29, 2015
Messages
1,106
Reaction score
1,340
First Language
Swedish
Primarily Uses
RMMV
@hosercanadian
Well, while I'm not against using buffs as a workaround, wouldn't that mean that if I allow the player to buy a skill many times I'd have to add and remove buffs behind the scene each time though...

My game uses very specific low number values for the parameters.

My idea or well, wish, was that I'd allow any class to max out any parameter if the player chose to just put JP into it. In my game, the max you can have (with equipment) is 99. Without equipment it's 69. And to take a healer as an example, their ATK would max out at 28 (41 points below what you can have). I wanted you to be able to spend 1 JP to gain 1 ATK, and the amont of times you'd be able to do this depends on the class. For the healer it's 41 times because that would max it out at 69. Other classes might have slightly higher ATK so therefore I'd have to make different "stat boost" skills for each class and that's also why I asked about enforcing a maximum times you're allowed to buy the skills.

As you can tell, having the player buy the skill 41 times for it's healer would probably make buffs not really work well as a solution I think?
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,286
Reaction score
1,924
First Language
English
Primarily Uses
RMMV
You could create variables for the actors and have the skill give +1 to the actor variable (which could be displayed using Yanfly's YEP_X_ActorVariables plugin to keep track) and then make the skill unavailable if it reaches X amount.

Edit: Hell to make it easier, you could even use a state w/ a counter on it and give the skill a conditional requirement to learn.
 

Parallax Panda

Veteran
Veteran
Joined
Oct 29, 2015
Messages
1,106
Reaction score
1,340
First Language
Swedish
Primarily Uses
RMMV
Yeah I'm pretty sure that, with the correct knowledge of JS, I could just have some kind of "if" statement in the skill that checks how many times the skill has been bought before it decides to forget the skill again or not. But I don't know how to write that myself... :kaoswt:
 

Latest Threads

Latest Posts

Latest Profile Posts

Wondering how to force a Save State in VNMaker with a name and how to call it with a scene event in order to double check if this Save State exists or not. Phew... Leaving breadcrumbs for chapter DLCs to pickup would be more than half the fight in order to finish this visual novel :LZSsad:
Making games is the only thing I'm good at. Real talk.
So, uh... where's the RPG Maker MZ update with the MV animation system? Is there a release date confirmed?
Also I'm kind of brave enough to admit this. I... I have a crush on Sephiroth.
Please don't call me anything offensive. I'm naturally crazy.
thanks to a lot of lunatic coding... my game finally has a stun mechanic that I feel really good about. damage enemy's mental psyche (mp), and once empty, hitting with certain attacks trigger combos that can stack the damage.
Waiting for the 1.40 update before testing out my copy of MZ so that I don't end up adding unnecessary work to my plate. Meanwhile the current fourth draft for my story is taking shape, and I'm fleshing out the lore as I realize how things would make better sense here and there for the world that I'm building.

Forum statistics

Threads
117,114
Messages
1,104,684
Members
153,150
Latest member
dekikii
Top