Thanks for answering my question, even though I made it on the wrong thread (I ever reported my own post, sine I couldn't find a way to delete it myself)
Back to the issue; In what field exactly should I make the formula that I set?
Ok, I will just copy and paste this for reference:
Spoiler: Fields Basic explanation
• Growth Chance → The chance rate for the parameter increase when leveling up.
• Initial → The initial value of level 1 for this class.
• Min → The minimum amount the actor can earn when leveling up.
• Max → The maximum amount an actor can earn when leveling up.
• Limit → The maximum value that a parameter can reach in this class.
• Promotion Bonus → Used on the Class Promotion Plugin."
Spoiler: Fields Advanced explanation
Growth Chance field
- It can be from 0 to 100. And it is responsible to measure the chance the actor will get to raise a stats value when leveling up.
So if you set it to 100, your actor will have a 100% chance to gain some stats points when leveling up.
But if you set it to 50, your actor will have a 50% of chance to gain some stats points when leveling up.
Initial field
- This will define the value of the stats when the actor is on level 1. I don't know how can I explain it more.
You can put a fixed value or a formula.
Min and Max Field
- Every time your actor level up, if he manages to pass the growth chance, he will gain some points on their parameter. These fields will define how many points it will receive.
Optionally, your actor can have a random points gain between(and including) a minimum and max value.
If you set Min = 2 and Max = 5, it will be able to gain from 2 to 5 points per level up.
If you don't want that to be dynamic, but want a fixed value, you can set both Min and Max with the same values.
It is important for you to understand, that the value set on these fields will not SET your parameter value, it will ADD a plus value into your parameter.
Example:
Level 1: HP = 100
MIN = 2
MAX = 2
Level 2: HP = 100 + 2 = 102
Limit Field
- This field will decide the maximum value that these stats can have.
So if you put 99 here. No matter what the actor level is, when he levels up, their stats value will not pass 99.
Promotion Bonus Field
- The actor can gain bonus points when changing to a new class for the first time. But this only works with a plugin extension Eli Class Promotion.
Now, let's go into your formula!
You want to insert that formula into your status growth:
Math.Min(99,((99/35)*(a.level+10)))
(Don't use "a.level". use "this.level")
As I can see you have two possible values:
A - 99
B - (99/35) * (this.level+10)
And according to your formula, using Math.min, you will get the lowest value from
A or B.
And it also seems that you want the status to have its maximum value of 99.
If we just copy and paste your formula, and simulate a level up, it will be something like that, raising that amount of points per level up.
So in my understanding, I believe you don't want to raise 30+ points into a single level up. I believe you wrote that formula thinking that the result will be(
SET) the parameter value, and not
ADD into the current parameter value(As explained on
Min and Max field).
So the first thing to do is remove the Math.min part. We do not need that, because we have the Limit Field for that. Let's just put 99 on the Limit Field.
And the formula will be like that now:
(99/35) * (this.level + 10)
So, what we need to do with that formula is get the difference of the results between one level to another. Which is the following:
JavaScript:
const nextLevel = (99/35) * ( (this.level + 1) + 10)
const level = (99/35) * (this.level + 10)
nextLevel - level
Just put that into the Min and Max value and you are good to go!
Please, if there is something you did not understand, tell me exactly what it is. I will do my best to explain.