I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
like in pokémon?
although there it is by enemy, and not random, also has a limit...
Well, it requires quite a bit of customization for stats other than params. But you can set it up however you want - it doesnt have to work like pokemon, I just set it up that way by default....
Its kind of difficult to explain - so bear with me..
This is a section of code from the script customization section...
def self.param_plus(bas,battler,stat_id) return bas unless battler.can_param_eviv_mod(stat_id) ivs = battler.iv_param[stat_id] evs = battler.ev_param[stat_id] lvl = battler.level.nil? ? 1 : battler.level case stat_id when 0, 1 then return (((ivs+2*bas+(evs/4))*lvl/100)+10+lvl) else ; return (((ivs+2*bas+(evs/4))*lvl/100)+5) end endThis defines the calculation for param mods using the newly created IV and EV stats.
IV's are a random number gained when the actor/enemy is created. By default the highest it can be is 31.
EV's are points you gain from enemies (or script calls)
For an example...
You are level 100 with 100 HP 0 IV and 0 EV (not possible, ,but just an example) (100 HP is considered as your BASE HP value)
By the default settings. Each 1 IV point you have in a certain stat (HP IV point for example) you will gain 1 more HP
For every 4 EV points you have, you will also have 1 more point in the actual stat (in this case, HP)
So lets say for example, you had 31 IV's 255 EVs (the default max for both)
your HP would then be 194.
This script would take your current total stat value (including all weapon param bonuses etc) and then use that as the base value (in the example above - 100) during the calculations.
HOWEVER...
There are many ways you can modify the calculation (requires a little coding knowledge and alot of math skillz ;p )
Does that make sense? I can try elaborate more on certain points if needbe 😀
EDIT HP works differently - sorry.
Rather than HP, think of the 100 HP stat as your atk stat - or any stat except HP (again, this is changable ;P )
you will need a custom script then :/