Yanfly's Class Base Parameters Random Stats Gains?

overlordmikey

BroCo. Gaming
Veteran
Joined
Sep 2, 2015
Messages
89
Reaction score
286
First Language
English
Primarily Uses
N/A
Anyone know if I can use Yanfly's Class Base Parameters to set it up so that stats go up semi-randomly. I'm not that great at writing mathematical formula (usually my brother and the other member of our team does math), but it seems that there should logically be a mathematical formula to do that.

Like (purely hypothetical):

<Custom Class Parameters>

atk = level * 5 + (something here that would say between 2 and 5 points up each level);

</Custom Class Parameters>

I swear I learned something about this in math class. (Please don't mock my awful math skills!)
 

Johnboy

Veteran
Veteran
Joined
Jan 13, 2016
Messages
344
Reaction score
123
First Language
English
Primarily Uses
Try this:

atk = level * 5 + (Math.randomInt(3) +2)

That should give you a random number from 0-3 and then add 2, giving you 2-5.
 

overlordmikey

BroCo. Gaming
Veteran
Joined
Sep 2, 2015
Messages
89
Reaction score
286
First Language
English
Primarily Uses
N/A
Try this:

atk = level * 5 + (Math.randomInt(3) +2)

That should give you a random number from 0-3 and then add 2, giving you 2-5.
Good news is it seemed that worked, bad news is it didn't create 2 to 5, instead 7 then 5 then 6. So it's random, but the math seems off.

However this is still a new gain in knowledge so thank you.
 

overlordmikey

BroCo. Gaming
Veteran
Joined
Sep 2, 2015
Messages
89
Reaction score
286
First Language
English
Primarily Uses
N/A
Ooops. I put Math.randomInt(3) when it should be Math.random(3) I think. Maybe try that instead? I'm still learning all this myself but here is a reference to a damage formula page:

https://rpgmakermv.co/threads/damage-formulas-101-mv-edition.2172/
Okay this fixes a thing where stats can go down when leveling up (as far as I can tell), but on the flip-side it does not fix a (lets call it a glitch) glitch when un-equipping things (or even just hitting remove with nothing equipped) and changing-removing classes/subclasses causes you're stats to randomly fluctuate. I may be forced to give up on this plan sadly, but I haven't given up yet. If you have any ideas just let me know. ^_^
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"Signature characters" - the mascots of your game. Cute, quirky, lovable, recognizable.
i.e.
Kirby, Disgaea prinnies, creepers, Sonic, Mario, DQ slimes, pikachu (all starters), chocobos.

You see what I'm saying.
Getchu one.
Made a video showcasing a plugin that changes the animation rate for animated tiles in our games.

(Plugin by Caethyril )
I guess if you're just going solo dev, minimize features is better choice.
As close as possible, now I draw all of them with little by little needle sticking.
Welp, back to the drawing board...

Forum statistics

Threads
103,220
Messages
998,091
Members
134,698
Latest member
avaroy
Top