- Joined
- Nov 1, 2015
- Messages
- 21
- Reaction score
- 5
- First Language
- español
Hello, I've been trying to make some attacks to do Minimal damage, however, it seems the damage formula saves negative damage, so even if I have a formula like this (a.atk - b.def)+10 it wont work. I did several tests
Hero has 50 attack, Enemy has 100 defense.
(a.atk - b.def)+10 = 0 damage
(a.atk - b.def)+55 = 5 damage
So it seems the formula saves negative values
Is there a way to make a formula that does minimal damage after parameter calculations?
I was wondering if there is way to put conditions (if), so if the damage is below zero, turn it into zero and add 10 but I don't have enough knowledge in the engine.
Anyone has any idea? Thank you in advance (sorry for my english)
Hero has 50 attack, Enemy has 100 defense.
(a.atk - b.def)+10 = 0 damage
(a.atk - b.def)+55 = 5 damage
So it seems the formula saves negative values
Is there a way to make a formula that does minimal damage after parameter calculations?
I was wondering if there is way to put conditions (if), so if the damage is below zero, turn it into zero and add 10 but I don't have enough knowledge in the engine.
Anyone has any idea? Thank you in advance (sorry for my english)