Help with variance.

Hi guys,

Don't know if it's possible, but i would like to create that kind of weapon using Weapon skill :

12 à 42 (Wind damage)

12 à 42 (Heal target)

+ 21 à 30 Int

+ 21 à 30 Agi


So i got it for + int and +agi using prefix/suffix.
Go it for the wind damage using damage formula and variance.

But ! I need you for the healing,
in my game healing is affected by Int stats, and damage in that case by wind = agility stats,
so i want damage to be 12 at 42 AND healing 12 at 42, in my case damage and healing are both affected by variance, and the damage are the same, if damage is 30 healing will be 30 but it is possible to do something like damage will be random between 12 and 42 and healing separatly random from 12 to 42 ??

basically i just want 2 separate variance ; 1 for my healing || 1 for my damage both used in the same spell.


My formula is : r=(this.IntDmg(27) + 27); b.gainhp(this.AgiDmg(27) + 27); r
Script formula :
This.IntDmg(27) = var rawDmg = (a.atk * 0.01) * (rate * 1);
This.AgiDmg(27) = var rawDmg = (a.mdf * 0.01) * (rate * 1);

If someone can help me ! Thanks guys !
Check out this thread on damage formulas! Towards the end of the original post, it goes into detail about the various math function you can use directly in the damage formula box.
Check out this thread on damage formulas! Towards the end of the original post, it goes into detail about the various math function you can use directly in the damage formula box.


Well, there is something weird,
If i use this :
r=this.IntDmg(27) + Math.randomInt(42)+12; a.gainHp(this.AgiDmg(27) + Math.randomInt(42)+12;r
That's work perfectly,
if i use this :
r=this.IntDmg(27) + Math.randomInt(42)+12; b.gainHp(this.AgiDmg(27) + Math.randomInt(42)+12;r
no heal happen,
(I change the target of the heal)

if you know something, or anyone else !

Original thread: https://forums.rpgmakerweb.com/threads/help-with-variance.121548/