overlordmikey

BroCo. Gaming
Veteran
Joined
Sep 2, 2015
Messages
339
Reaction score
586
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
359
Reaction score
135
First Language
English
Primarily Uses
RMMV
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
339
Reaction score
586
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
339
Reaction score
586
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. ^_^
 

Latest Threads

Latest Posts

Latest Profile Posts

Sometimes it works out to not do work on my game for a while. I ran through a playtest today and got about a page of things to fix or improve...
I got lot's o balancing to do lol... I think I'll redo my skills for the 3 party members for the 5th time lol. but I need them to be more distinct for balancing the RPS element system since fights are 1 on 1 with tagging.
Our latest Make a Game in MZ Stream is here! Today, we're going to create a complex switch puzzle, where flipping one switch also toggles the switches adjacent to it. Join now to see how it's done!

Here's a preview to an upcoming free track. Kind of a hybrid, Middle Eastern, orchestral thingy. Should be released pretty soon!

Time: duration regarded as belonging to the present life as distinct from the life to come or from eternity; finite duration.


1653085842103.png

Me against Time now. No second chances. No distractions. All or nothing. Whoever wins is the best fighter.

Forum statistics

Threads
121,980
Messages
1,145,651
Members
160,255
Latest member
uncmerigold
Top