- Oct 30, 2015
- Reaction score
- First Language
You can use a.gainHp and b.gainHp for that. (a is the user, b is the target)this isn't a damage formula, but it is a formula related question.
i want to setup a formula that heals the target, and half back to the user of the skill. so if I heal a target for lets say 10 hit points, the user would get 5 back.
Basically, input the damage formula, but divide it by 2 at the end.
For example, let's say the formula for calculating the amount healed is 75% of the user magic attack.
Then the formula would be
a.gainHp((a.mat * 0,75) / 2);b.gainHp(a.mat * 0,75)In the case of the simple example you've given the formula would be
a.gainHp((10) / 2);b.gainHp(10)Let me know if there's anything you don't understand, or if something didn't work right.