- Joined
- Jun 26, 2015
- Messages
- 7
- Reaction score
- 0
- Primarily Uses
Hello I'm currently learning how to customize battle formulas for skills. I've looked at several tutorials to make some more interesting skills, but I'm having trouble trying to correctly make a particular skill. At it's core, the skill I am working on is supposed to deal damage to the target then heal the user. Ultimately what I'd like to have it do is deal both physical and magical damage and heals the user for the magic damage dealt. Here is the first formula I tried, however it does not work like it should, it does far to much damage. I think it is adding the users HP to the damage dealt.
a.atk * 4 - b.def * 2; x=a.mat *2.5 - b.mdf; a.hp +=(a.hp+x)
when written this way the formula has the same problem
r = (a.atk + a.mat) - (b.def +b.mdf); a.hp +=(a.hp+r)
When I do this instead, just dealing damage based on magical attack and healing for the damage dealt I also get ridiculously high damage. Both heal the user like they are supposed to at least
a.hp += (a.hp + (a.mat - b.mdf))
Any help with what I'm doing wrong or the correct way to actually right this formula would be stellar to know, ty in advance!
a.atk * 4 - b.def * 2; x=a.mat *2.5 - b.mdf; a.hp +=(a.hp+x)
when written this way the formula has the same problem
r = (a.atk + a.mat) - (b.def +b.mdf); a.hp +=(a.hp+r)
When I do this instead, just dealing damage based on magical attack and healing for the damage dealt I also get ridiculously high damage. Both heal the user like they are supposed to at least
a.hp += (a.hp + (a.mat - b.mdf))
Any help with what I'm doing wrong or the correct way to actually right this formula would be stellar to know, ty in advance!

