Or would I need a plugin?
In addition to the regular ATK - DEF as the base damage of a skill, I want to factor in two other parameters into the formula. But I want them to work kind of like based on a ratio.
For example, let's say I also want to compare a.agi and b.luk. The higher the difference between a.agi and b.luk, the damage should increase, up to about 4x when a.agi is double or more than b.luk. And conversely, the higher the difference between b.luk and a.agi, the damage should decrease, up to about 75% when b.luk is double or more than a.agi.
So if the attacker has 100 agility and the target has 50 luck, the base damage (ATK - DEF) should increase by 200%. If the attacker has 50 agility and the target has 100 luck, the base damage (ATK - DEF) should decrease by 75%.
Is there a dmg formula that can do this, and if so, what would it be? Thank you so much in advance.
In addition to the regular ATK - DEF as the base damage of a skill, I want to factor in two other parameters into the formula. But I want them to work kind of like based on a ratio.
For example, let's say I also want to compare a.agi and b.luk. The higher the difference between a.agi and b.luk, the damage should increase, up to about 4x when a.agi is double or more than b.luk. And conversely, the higher the difference between b.luk and a.agi, the damage should decrease, up to about 75% when b.luk is double or more than a.agi.
So if the attacker has 100 agility and the target has 50 luck, the base damage (ATK - DEF) should increase by 200%. If the attacker has 50 agility and the target has 100 luck, the base damage (ATK - DEF) should decrease by 75%.
Is there a dmg formula that can do this, and if so, what would it be? Thank you so much in advance.