[MV] Level up each parameter individually with no overall actor level

1. Great!
2. Yes, if that could be done that would be helpful. So this function would increase both the stat's level and increase the stat by the notetag value.
3. I meant to include those, my bad. The second screen shot is what appears when I click on "SceneManager.catchException @ rpg_managers.js:1949", located at the bottom of the first screenshot.
I added in the extra things you requested.

As i'm not able to replicate a crash myself using autorun events I made a change to the plugin given the code I was pointed toward in that error message, I'm hoping that the change I made will fix the crashing issue. If it doesn't then I'll need to know more about the autorun events and what they do. I've tried testing a lot of things in autoruns including switching maps and having autoruns play on map load etc with no issues, nonetheless here are the changes you requested and hopefully a fix for the crash as well, as I did make a significant change to how the line in question works.

Actors Initial Stat Level is now set in the plugin parameter, be sure to look there to set the value you wanted (actors start with level 0 stats) as the default is 1.

SLS.levelUp(actorId, stat);

actorId = actors Id from database
stat = "stat" name from plugin parameters

Example: SLS.levelUp(1, "Attack");
Would level up target actors stat & add multiplier values to target stat.

Example2: SLS.levelUp(0, "Agility");
Would level up party leaders stat * add multiplier values to target stat.

This level up script call doesn't really follow the 'notetag' value per say, since the value from the notetags can be changed with the SLS.setMult script call included, It will always follow the most updated values for your creatures growth, so if the notetag value was initially 30 but then later changed with the SLS.setMult script call to 50, then when SLS.levelUp is called it will add 50 to that stat and not 30.

Edit:

So i went ahead and added another feature that you stated in a previous post that went overlooked until now. You said you had items in your game which would increase that stat growth and now that's possible! I'll give you a brief walk through on how to accomplish this using my plugin.

Set up an item in the database which will grow a stats gain. Set its 'Effects' to execute a common event. Inside that common event you place this script call.

SLS.addMult($gameParty._targetActorId, "speed", 5)

Now when you use this item on a creature it will add 5 to that creatures "speed" stat gain. 5 is the number which will be added to the current value. From here on your creature will gain 5 more of that stat than it did before every time it levels up.

Unless you come up with a better method for handling this than I have, I'd say just create an item which adds a number to the growth rate and create a common event to handle that item. One common event per item. IF i manage to think of a way to handle this using one common event and conditional branches I'll get back to you but this method is probably good enough.

If you have items which can increase the level of your creature then you can follow this same method but instead of the previous script call in a common event you would use this one.

SLS.levelUp($gameParty._targetActorId, "speed")

I've included some screenshots and updated the plugin attached to reflect these changes.

Also added another script call since I assume you'd want to easily display/check the current Multiplier(growth) values.

SLS.getMult(actorId, stat);
Thanks for adding those!

It looks like there are no more errors happening anywhere, so everything look great right now. I can't think of anything else that needs to be added or changed, so unless you had any ideas I think I'm all set...for now 😉

It's working really well though and it's a huge relief to have this aspect in the game now because I can finally move forward. This was the one thing holding me back, so thanks again for this and all your work.
Awesome, I'm glad to hear the update fixed the crashing issue! If anything else comes to mind or another issue arises be sure to let me know and I'll see what I can do. Good luck! :mrsatan:
Okay I ran into a problem. The level up script doesn't seem to be working for me. Every time I try to use it I get a "Cannot read property 'exp' of undefined".

In the event I ran to test it, it's a simple Action Button Triggered event. I have one Actor in the party. I click the event and the error pops up. In the event all I have written is SLS.levelUp(0, "Speed") as a Script Event Command. "Speed" is definitely correctly put in because when I use the gainExp script with "Speed" it works perfectly.

Thanks for the help as usual!
Edit actually I just replicated the same crash in the current version so i'll take a look xD

Okay that was just a silly mistake, I forgot to convert the string to lower case which caused the function to not recognize the string it was fed. In my testing I guess I only used lowercase in the string so i didn't encounter that error, I probably should have used "sPeEd" in there during testing and this wouldn't have been an issue. :mrsatan:

It was a one line fix:
had to add statId = statId.toLowerCase(); inside of
if (!gain) {

Here's the fixed version now lol.

Make sure you go into the plugin manager and open my plugin and click 'okay' or modify any new parameters you see before playtesting the updates. As something new may be added that wasn't there before and in order for the default values to take effect you need to apply them by opening the plugin within the manager and clicking okay. (at least thats what i've found through having an issue in the past)

Original thread: https://forums.rpgmakerweb.com/threads/mv-level-up-each-parameter-individually-with-no-overall-actor-level.120924/