Some Formula help...

I'm using a Stat Distribution Plugin to upgrade my characters... Since I can use a formula to determine my Stat Points per level I want to make it so that every 5 levels the Points increase... Or something.

How do you make a formula like that? So I want the points to go up by 1 every 5 levels the character reaches... How would that be achieved?
Which stat distribution plugin? Its impossible to help if you dont provide enough information.
but they all can use JS formulas to determine Stat Distribution Points... I'm looking for a generic formula where the product [answer] increases in size at a set interval the more times you try it. but if you must know in order to work [confused about that] than - I'm using either SRD Stat Distribution or Alistair's Ability Distribution... They both use the same technique for the points formula so I haven't decided yet.
I think what you want to achieve is something like "user.level / 5 * 2" or "user.level / 5 + 1"
theoretically it stays the same from lvl 1 - 9, but at 10, 15 etc the points would change... I think. Can't promise that though.
I think what you want to achieve is something like "user.level / 5 * 2" or "user.level / 5 + 1"
theoretically it stays the same from lvl 1 - 9, but at 10, 15 etc the points would change... I think. Can't promise that though.
If this doesn't work (I'm not sure how JS's integer arithmetic works either) you could try:
Code:
Math.floor(user.level / 5)
Math.floor() rounds down [to the nearest integer], so I think this should return 0 for levels 1~4, 1 for levels 5~9, 2 for levels 10~14, etc.

(That's assuming "user" is the appropriate alias, might change based on context...)
In SRD plugin you just use `level`, it has no alias. Muffel formula is the way you want it to be.
You can just replace 5 with another number, and then it will be that every X levels the character receives an extra stat point in every level up.

Original thread: https://forums.rpgmakerweb.com/threads/some-formula-help.94838/