Help with making upgradeable skills - options?

Hello, everyone. I have been exploring how I want to implement certain skills that I want to be upgradeable/improvable by use. Here is what I want to do.

I want skills where I can assign them a value that will increase with use and take that value to determine a bonus to be applied to certain actions.

Two immediate ways that I could think of for doing this would be:

#1 Make skills that will have a value of 0-100, but will be able to go to 120 with certain bonuses. This value would be tracked by a unique variable for each skill that is used when doing skill checks. So it would look like Lockpicking: 40 or Lockpicking 55. A different variable would be used to track use and once the value of that tracking variable reaches a certain level, the value of the main skill increases by 1. So from Lockpicking 55 to 56. Also, the main skill variable value can also be increased randomly at level up or maybe manually at level up. This option seems to use 2 variables for each skill for each party member that can have the skill. A variable for the main skill value and a variable to track use to increase the main variable (multiplied by the number of party members that have the skill).

#2 Make skills with levels like Lockpicking Level 1 - 5. A unique variable is assigned a number based on the skill level. And that variable is used when doing skill checks. This seems to be needed because a Skill doesn't have a numeric value like a stat like Attack or Agility. A different variable would be used to track the use of the skill and once the value reaches a certain amount, the Level increases by 1. The main skill level can also be increased randomly at level up or maybe manually at level up. This option also seems to use 2 variable for each skill for each party member that can have the skill.

So essentially, I want to have skills that are considered for skill checks on certain actions and I want them to be increased by use and at level up. I also want to be as efficient as possible with the use of variables.

For implementation of skill checks, I was thinking of taking a random number roll, plus the bonus from the skill, plus any other bonuses that might be applicable from other stats, minus any penalties that might apply. If the final number is high enough, the skill check is successful. I have been experimenting with using the Script function in a variable to do the necessary math.

Is there another way of doing this that I am just not thinking of?

If there is a plugin that does this, I am interested in knowing which one.

However, I would also like to try doing this without a plugin. So any thoughts on how to most efficiently do this in the most straightforward manner would be greatly appreciated.

I hope I explained this in a clear way, but if I missed any essential information, please just let me know.

Thanks for your assistance!
Hi, here's what I came up with in order to make efficient use of variables as possible.
Consider using arrays → $gameVariables.value(Skill Var)[Array1, Array2, etc]

Suggestion 1 :
Create a variable array for each Skill: [Skill Lv, Skill Exp] - repeat for each character and skill
Example:
Var 100 = Lock Pick skill for Actor 1
$gameVariables.setValue(100, [0, 0])

Script to add experience to lock pick each time the skill is used:
Code:
$gameVariables.value(100)[1] = ($gameVariables.value(100)[1] +1)
Check whether or not skill level should increase:
Code:
if ($gameVariables.value(100)[1] >= 100) {
$gameVariables.value(100)[1] = 0;
$gameVariables.value(100)[0] = ($gameVariables.value(100)[0] +1)
}

Using the above method you'll need variables for each skill x each actor.

Suggestion 2:
Store character, skill level, and skill experience in an array - repeat for each skill.
Example:
Skill Array['Reid',Skill Lv, Skill Exp, 'Harold', Skill Lv, Skill Exp, 'Lostboy', Skill Lv, Skill Exp] etc...

**Would be extremely useful to make yourself a note of array positions**
[0]Reid: Skill Level = [1], Exp = [2]
[3]Harold: Skill Level = [4], Exp = [5]
[6]Lostboy: Skill Level =[7], Exp = [8]

Using the above method you'll need variables for each skill.

Suggestion 2.1:
Create an event to store Actor, Skill Level, and Skill Experience within temp variables
Example:
A.png
B.png



Use above scripts to increase experience/level only this time with controlled variables
Example to increase last actor's lock picking experience:


$gameVariables.value(*Skill Var*)[$gameVariables.value(103)] =
($gameVariables.value(*Skill Var*)[$gameVariables.value(103)] +1)

Using this method you'll only need to change a minimal amount of stuffs for each maths.
I will leave it up to you to figure out the maths though, shouldn't be any more complicated if you made it this far.
@Lostboy Wow! Thank you so much for your detailed and EXTREMELY helpful color coded response!

Surprisingly, I think I understand most of this, even though I am brand new to JS and MZ. There are just a couple of spots where I am not sure what is happening.

I will try to experiment with each of these to see if I can get them to work and to understand each one better.

I have no experience with arrays, I just know that they keep getting referenced as useful tools so I think I need to become friends with them.

Again, I can't state strongly enough how truly helpful this type of response is for a new person. And I greatly appreciate the time that you took to construct your reply.

I doubt I will ever be able to return the favor, but if I ever have the opportunity, I definitely will.

Thanks again!
Thanks for asking this question! I personally don't entirely get what he is saying, but I found a video that may help with arrays in regards RPGM!

MV Array Tutorial by MauveButterfly
Thanks for asking this question! I personally don't entirely get what he is saying, but I found a video that may help with arrays in regards RPGM!

MV Array Tutorial by MauveButterfly
Well Son of a Biscuit Eater! Thanks for that link. I have subscribed to over 200 YouTube channels with RPG Maker content and I have downloaded over 4,300 videos so I can watch them at my leisure (overkill I know). And I somehow missed that channel.

I just subscribed and I will add that playlist as "watch very soon!"

And hopefully full understanding will come eventually...but perhaps slowly. I just started in late December of 2021 as a hobby around my real job and I am learning a ton. With every example I see and every tutorial I watch or read, I learn a little bit more. I just have to keep telling myself to be patient and not try to do stuff that I haven't really learned how to do yet. But sometimes I just can't help myself.

And remembering too. The older I get, the harder it is to actively remember all this stuff.

Thanks again!
No way, that's not overkill at all, if anything that's the dedication you'd expect of someone who enjoys learning! Admirable even. I'm honestly at that stage where I'm still just trying to follow every possible tutorial I can find for better or worse. The higher level ones usually slap me around something fierce before I grasp my limitations, so no shame at all wanting to do more! Besides, every time you try something a little out of your skill level, your skill should grow right? Who ever grew sitting complacently in their comfort zone?? I also just started on my journey with RPGM after flirting with the idea for a few years, so I'll be rooting for you! Good luck!
Reminds me of https://forums.rpgmakerweb.com/inde...ystem-and-or-character-building-system.92265/

Prolly works on MZ with FOSSIL too.
Another awesome find! This is actually what I was thinking as my option 2 with the levels. My option 1 was based on how skills work in Wizardry 8.

I had actually bookmarked that page to look at closer, but since it was MV, I hadn't gone back yet.

Thanks for pointing that out!

The higher level ones usually slap me around something fierce before I grasp my limitations, so no shame at all wanting to do more!
Yup, I have experienced that too! And sometimes the tutorial creators skip mentioning steps that they just casually do without thinking or there is a video cut and suddenly something is different in the event. I usually have to pause the tutorials as I go and make sure that my events look exactly like theirs. Even then it can take me a while to figure out what is different. And using just a laptop isn't helpful. Two screens would make it much easier.

Good luck and keep plugging away! If there is ever anything you think I can help with, just let me know!
The other thing you can do, presuming you want these skill levels to be unique per actor that has the skill, is just make a variable on the actor. You can see examples of this in a lot of the Yanfly Tip & Tricks. Your Lockpicking example seems to be something you wouldn't be using in combat (in combat you could use Visustella's Battle Core JS Post-Apply as User to execute code when the skill is used).

But if it's an extra-combat skill that's calling a common event or something, then inside of the common event you'd use a script box and say:
Code:
$gameActors.actor(X).lockpicking = $gameActors.actor(X).lockpicking ? $gameActors.actor(X).lockpicking+1 : 1

where X is the ID of the actor that has lockpicking. Then you can just use that variable any place you want to access their skill level.
presuming you want these skill levels to be unique per actor that has the skill
This is definitely true. Multiple characters could have the same skill, but at different levels.

And most of the skills would be actively used outside of combat, but I am considering making skills that should also be improved during combat.

Thanks for this option! This is a little more confusing for me, but I am going to try to experiment with it to see if I can understand it better. I'm not sure how you make a variable on an actor, but I will look into that further.

And thanks for pointing out the Yanfly Tips & Tricks. I had bookmarked that page a while ago, but never went back.

Thanks again!
I'm not sure how you make a variable on an actor
I mean...I gave you the code to do it? If you tell me what you don't understand about it, I can explain, but I did literally type it for you 😛
I mean...I gave you the code to do it? If you tell me what you don't understand about it, I can explain, but I did literally type it for you 😛
Sorry. I thought the example was something different. I was linking it to just the "extra-combat skill" part.

The part of the script that I don't understand is the "?" in the middle and then the ": 1" at the end. I'm not sure what those are doing in the script. Probably because I really don't understand that much about JS.
The part of the script that I don't understand is the "?" in the middle and then the ": 1" at the end. I'm not sure what those are doing in the script. Probably because I really don't understand that much about JS.
It's called a ternary operator. The format is: if this is true ? then do this : else do this

So in my example, I was saying if you've already created a lockpicking variable on this actor ? then add one to its value : else create it with a value of 1
It's called a ternary operator. The format is: if this is true ? then do this : else do this

So in my example, I was saying if you've already created a lockpicking variable on this actor ? then add one to its value : else create it with a value of 1

Thanks for the tip sir, this will come in handy for me someday.
It's called a ternary operator. The format is: if this is true ? then do this : else do this

So in my example, I was saying if you've already created a lockpicking variable on this actor ? then add one to its value : else create it with a value of 1
Ah, that is very helpful. I just realized, as I was working outside that I probably could have searched for what is the ? in JS, but I didn’t think about that.

Thank you so much for explaining that!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-making-upgradeable-skills-options.146258/