- Joined
- Mar 15, 2015
- Messages
- 233
- Reaction score
- 27
- First Language
- English
- Primarily Uses
- RMMV
Alright. So. More questions. I keep finding formulas that don't seem to do as I would expect (I am beginning to assume many of these are from older RPG Makers).
Skill that does damage to the target and you take 1/4 of that damage:
r = a.atk * 2 - b.def; a.hp -= r / 4; r
That's the formula I found. The -= part doesn't make much sense to me, but I went with it anyway. lol
I modified it for my own purposes to:
r = (100+((a.level/4)*(a.atk/10)))*2.25; a.hp -= r / 4; r
But whichever formula I use it won't deal damage to the actor using it. Damages the target just fine.
*edit* Answer thanks to Ogouka:
a.gainHp(Math.floor(-0.25*(damage_formula))); damage_formula
Skill that does damage to the target and you take 1/4 of that damage:
r = a.atk * 2 - b.def; a.hp -= r / 4; r
That's the formula I found. The -= part doesn't make much sense to me, but I went with it anyway. lol
I modified it for my own purposes to:
r = (100+((a.level/4)*(a.atk/10)))*2.25; a.hp -= r / 4; r
But whichever formula I use it won't deal damage to the actor using it. Damages the target just fine.
*edit* Answer thanks to Ogouka:
a.gainHp(Math.floor(-0.25*(damage_formula))); damage_formula
Last edited by a moderator:
