Coruja 
Sphere Developer
    
Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7
Dimension Shard
![]()
|
RE: Damage based on objetive AR
that's what I said, formulas are pure math. So before create an formula on sphere scripts, you must make sure that the math is correct. After you make sure the math is working fine, you write the same formula now on sphere scripts. This will make things easier, because if you first create the sphere script without even know if the math behind the formula is correct, the formula will not work properly
eg: to create an formula where you have the damage and you want get an % of this value, you just need a basic percent formula:
Code:
damage * armor / 100
and since you're dealing with an situation where higher armor must return small results, you can just "revert" the armor percent using 100 - armor
Code:
damage * (100 - armor) / 100
and writing this same formula to sphere scripts:
Code:
<eval damage * (100 - armor) / 100> ===> <eval <R50,58> * (100 - <SRC.ARMOR>) / 100>
(This post was last modified: 02-20-2017 12:53 PM by Coruja.)
|
|
02-20-2017 12:51 PM |
|
|