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
347
Reaction score
126
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. ^_^
 

Latest Threads

Latest Posts

Latest Profile Posts

just hopped into project recruitment... hoping to maybe find some artists to help with parallax maps and whatnot. I could do them myself, but I'm not really good at it so I'd prefer to stick to my strengths which is character art and SOME UI elements.
PRODUCTIVE DAY! I think I FINALLY completed all the items for part 1 of Fallen Feather, that includes the animations, the stats, the pricing, etc. for weapons, armors, key and consumables! all i need to be 100% done is write a few more descriptions (only 10 left out of the 40+ items) and to find some nice pants icons (dont ask lol).
Kinda hate it everytime reinstall rpg maker because the program refuse to testplay
For every amazing step of the way I make, I find myself in a moment where I feel really stupid for not knowing something. I probably shouldn't though, but still, it sometimes feels more obvious than perhaps it is
Just spent $174 on Shining the Holy Ark on the Saturn. Good lord.

Forum statistics

Threads
111,097
Messages
1,058,246
Members
144,300
Latest member
Cosmosyn
Top