RPG Maker MV SupportSet 25 as the number that it heals in the damage formula, but with a variance of 40%? I dunno, it seems like that needs to be tested since it might fall below that range.
Math.randomInt(x) will generate a random interger between 0 and x, where x is not uncluded.
So essentially you just put the skill on "HP recover" and put that in the dmg formula.
(answer found here.)
So essentially you just put the skill on "HP recover" and put that in the dmg formula.
(answer found here.)
Start from the lowest number in your range (that being 10) as the base of the formula. Then generate the delta of maximum of the range (in other words, your range is 25 - 10 = 15, so 15 is the number)
Then create the formula: base + random(range)
Example:
10 + Math.randomInt(15)
Then create the formula: base + random(range)
Example:
10 + Math.randomInt(15)
Just a small correction. It needs to be 10 + Math.randomInt(16) otherwise it will never hit the max of 25. (Remember when I said "x" would not be included? Essentially if you put 15, the max will be 10+14.
Huh. Not a half bad idea. I might just take this for a cheaty gambler spell.
Original thread: https://forums.rpgmakerweb.com/threads/157738/