- Joined
- Jul 24, 2020
- Messages
- 10
- Reaction score
- 6
- First Language
- English
- Primarily Uses
- RMMV
Using RMMV, No Plugins, Vanilla AF.
So I'm trying to write a formula that returns healing to (a) after dealing damage to (b) , the healing is mathed based on the damage inflicted. (Essentially a life-steal, but.. not)
Something like this, correct me please:
Type: HP Damage
((a.atk + a.mat) - b.mdf) ; (gainHp((a.atk + a.mat) - b.mdf)/9)
For this Example: My atk is 24, Mat is 6, Target has 10 Mdef
So math SHOULD look like this
((24 + 6) - 10) ; (gainHp((24 + 6) - 10)/9)
Which returns
20 ; gainHp 2
For some reason it does 0 dmg? and it also doesnt heal.... what did I do wrong
So I'm trying to write a formula that returns healing to (a) after dealing damage to (b) , the healing is mathed based on the damage inflicted. (Essentially a life-steal, but.. not)
Something like this, correct me please:
Type: HP Damage
((a.atk + a.mat) - b.mdf) ; (gainHp((a.atk + a.mat) - b.mdf)/9)
For this Example: My atk is 24, Mat is 6, Target has 10 Mdef
So math SHOULD look like this
((24 + 6) - 10) ; (gainHp((24 + 6) - 10)/9)
Which returns
20 ; gainHp 2
For some reason it does 0 dmg? and it also doesnt heal.... what did I do wrong
Last edited: