Ultimate Stat Distribution Script Updated 1.2

Actors will gain stat points whenever they level up or when you want to give
them via script call: $gameActors[id].gainStats(amount)


Those points can be used to increase the actor's stats via a custom scene.
To call the scene use the call: SceneManager.sceneDistribution(actor)


Example: SceneManager.sceneDistribution($gameParty.members()[0])



Holding shift while increasing the attributes will increase them faster.


You can press x/esc to swap between the increase/decrease options.


You can now choose which stats to draw/increase


You can add extra parameters like crit chance and evasion.


Put the following tags to determine how much the param/stat will increase per
stat point spent:

Spoiler
<ihp: amount>
<imp: amount>
<iatk: amount>
<idef: amount>
<imat: amount>
<imdf: amount>
<iagi: amount>
<iluk: amount>



For extra parameters:

Spoiler
<ihit: amount>
<ieva: amount>
<icri: amount>
<icev: amount>
<imev: amount>
<imrf: amount>
<icnt: amount>
<ihrg: amount>
<imrg: amount>
<itrg: amount>



Feel free to use for free/comercial games, just give credit.



Enjoy


Print:

Spoiler
increasestats.png


Edit by Zarsla with more features: https://www.dropbox.com/s/v3rryhchtnoc0ef/StatDistribution.js?dl=0


Download (Updated 31/03/2016):


-Fixed bug of max hp value displaying 999 on screen even when the actual value was higher
-Added option to add custom limits for parameters, those can be different for each actor
-Added option to limit how much points you can spend on the same parameter each level
-Added party option, press Q/W to swap between party members
-Can now put tags in the actor's note box as well
Can we use formulas that use variables and other numbers so it won't just be increased by a static amount?
Can we use formulas that use variables and other numbers so it won't just be increased by a static amount?





Yes, except for the shiftincrease parameter
This looks awesome. Just two questions,


Are we able to redistribute in case of error?  


Secondly, are we able to remove stats we are not using from this scene?


Keep up the great work 🙂
This looks awesome. Just two questions,


Are we able to redistribute in case of error?  


Secondly, are we able to remove stats we are not using from this scene?


Keep up the great work 🙂





No, you can't =/


But I will add those features when I update it
Cool plug-in long waited! 😀

One question though, is it possible to distribute the points to other parameters (Extraparameters, special parameters, or new "basic parameters" going with luck and all)?
Cool plug-in long waited! 😀

One question though, is it possible to distribute the points to other parameters (Extraparameters, special parameters, or new "basic parameters" going with luck and all)?



Nope, but I'm going to update this tomorrow and will add this (and other features).
Hey Frozen,
great looking plugin here!
Is there any chance I could persuade a request (or two)?

1) The ability to "reset" (for lack of a better word) the points distributed.
 (example, a level 4 character with say, 30 points to distribute spends 25 of them. Later on, decides he wants to redo his characters points, and finds a certain npc or item that 'resets' his character points to a total of 30.)

2) Possibly along with the ByBibo request, is there any possibility of allowing variables to be displayed and boosted?

Whether the above is possible or not, thanks a lot for this awesome script!
Hey Frozen,
great looking plugin here!
Is there any chance I could persuade a request (or two)?

1) The ability to "reset" (for lack of a better word) the points distributed.
 (example, a level 4 character with say, 30 points to distribute spends 25 of them. Later on, decides he wants to redo his characters points, and finds a certain npc or item that 'resets' his character points to a total of 30.)

2) Possibly along with the ByBibo request, is there any possibility of allowing variables to be displayed and boosted?

Whether the above is possible or not, thanks a lot for this awesome script!



Yeah I'm going to add the ability to reset and remove stats not used in game today. Maybe add variables and extra stats like crit/evasion.
Almost 3 hours working on this... Added everything but variables support, maybe on a next update idk.
Thanks for your work, Frozen! Greatly appreciative of this! 🙂
Thanks for the update! 🙂
This is a great script and all but for some reason after I distribute the points and exit the scene with the "exit" option when I go to check my status it does not register the points I used during the distribution scene.  For instance let's say I give 10 points to HP to gain 50 HP it will show that I gained 50 HP in the distribution scene itself but when I leave the scene it does not update the points in game.  Tried it on a fresh project and still get this error.  Hopefully it's an easy fix. 


Also is it or would it be possible to call the scene for all actors at the same time?  For instance have the distribution scene called where I can cycle through all actors by pushing q or w so I can distribute for multiple people at once for when multiple people gain levels?  Or even a way to call the scene for anyone who levels up in the victory scene?  I understand some of this may be hard to implement so I won't expect anything.  Thanks for making the script it will be very useful. 
This is a great script and all but for some reason after I distribute the points and exit the scene with the "exit" option when I go to check my status it does not register the points I used during the distribution scene.  For instance let's say I give 10 points to HP to gain 50 HP it will show that I gained 50 HP in the distribution scene itself but when I leave the scene it does not update the points in game.  Tried it on a fresh project and still get this error.  Hopefully it's an easy fix. 


Also is it or would it be possible to call the scene for all actors at the same time?  For instance have the distribution scene called where I can cycle through all actors by pushing q or w so I can distribute for multiple people at once for when multiple people gain levels?  Or even a way to call the scene for anyone who levels up in the victory scene?  I understand some of this may be hard to implement so I won't expect anything.  Thanks for making the script it will be very useful. 





My bad, when I updated the script I forgot to add the part to increase the actor's real stats lol, will fix it now.
I am having issues...I have the tags on the actor, when I allocate points the stat being affected becomes NaN, and I crash when trying to open the menu....Any ideas why?
I wonder if we can set it so that we can only raise each stat once per level so that we don't become overpowered.
I am having issues...I have the tags on the actor, when I allocate points the stat being affected becomes NaN, and I crash when trying to open the menu....Any ideas why?



Sorry for late reply, you have to put the tags in the class notebox. 
I wonder if we can set it so that we can only raise each stat once per level so that we don't become overpowered.





I can add that
Love this! Exactly what I need and can't wait to try it out tommorow! 
Any plans on implementing a way to increase a certain variable? 

I want to do it like in Might and Magic where you add these stat points to skills (example Sword skill) and then gain the ability to level them up. 


Thanks for a great script! 
Hey Dude.


First of all, it's ah very nice Plugin.


Are you still updating it ?


1. Problem:


Because i get some erros from the script call: $gameActors[id].gainStats(amount)


2. Question:


Can you make it, that i can see all members from the party or switch party members with the PageUp / PageDown button in the Window ??


Npc.png


Error.png

console.png

Original thread: https://forums.rpgmakerweb.com/threads/ultimate-stat-distribution-script-updated-1-2.59342/