Forums>Queries and help>
Author  Rules of damage 
>>If "Attack" (A) of the attacking stack is bigger than "Defence" (D) of the defending stack, then
Damage = N * RND(min, max) * [1 + 0,05 (AD) ] * [1  3*Y/100]
>>If (A) is smaller than (D), then
Damage = N * RND(min, max) * [1  3*Y/100] / [1 + 0,05*(DA)]
Whence:
# N  number of creatures in the attacking stack;
# RND(min, max)  random integer from the "Damage" parameter delta;
# Y  The level that the character in command of the defending stack has reached in faction skill of the attacking character's faction.

how about if (A) is the same as (D)? which condition will be executed? first or second?  wont make any difference... just do the maths you will see. check out both formulae...  Well: Just try it. If you insert the same numbers as D and A to any of those two formulas you will just be doing x1 or /1 to the basic damage. No biggie. :)  oh!! now i get it!
A>D > Damage = N * RND(min, max) * [1  3*Y/100] * [1 + 0,05*(AD)]
D>A > Damage = N * RND(min, max) * [1  3*Y/100] / [1 + 0,05*(DA)]
A=D > Damage = N * RND(min, max) * [1  3*Y/100] ? [1 + 0,05*(0)]
arranging the formula like this looks better for me :)
thx all!  closed by Xcalnarok (20101116 17:52:39) 

Back to topics list
