Forums-->Ideas and suggestions-->
Author | damage formula |
>>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 (A-D) ] * [1 - 3*Y/100]
>>If (A) is smaller than (D), then
Damage = N * RND(min, max) * [1 - 3*Y/100] / [1 + 0,05*(D-A)]
where as we know N is the amount of creature in the stack, RND stand for random, min and max are the minimal and maximun damage indicated on the creature profile, A is attack, D is defense and Y is the faction skill of the defending units.
i suggest the N moves *inside* the RND brackets, to have the variation better reflect what should actually happen.
so the new formulas would be
RND(min*N,max*N) *(everything else)
Why that, i'll make a simple example
a stack of 10 recruits( damage range 1-2) attacking something with the same defense of the recruits attack.
this mean that with the actual formula the damage is 10*RND(1,2), so the recruits will do exactly EITHER 10 or 20 damage.
if the damage formula was RND(min*N,max*N) those recruits would instead do RND(10,20), this mean they would do a damage ranging from 10 to 20, with increments of 1, whinch better reflect the "random" factor about damage | wrong, RND doesnt have to be an real number, it can be a decimal number, and then the final number is then rounded only after the calculations are completed | you probably mean integer where you said real and real where you said decimal, but i got your point :).
i assumed RND returns an integer value because if it's the basic random function of most programming languages it returns integer numbers, but that might indeed not be the case | yea maybe, been over a year since I did any sort of match work
if you have a scientific calculator try putting in Rand(1,2) | ehm, fromt he help section itself, jsut below the actual formula, do
RND(min, max) - random integer from the "Damage" parameter delta;
so it behave as of my first example, whinch is both counterintuitive nor realistic( 10 OR 20 damage, not any amount inbetween these two value) | So RND is a real number(anything between 1-2 for the recruit). It might be one of the flaws and typos in help section but everyone who is smart enough to understand the whole formula will get it right with RND as real number.
Also the damage dealing formula is not 100% complete(no enchants, no idea how the final numbers like 3.569 are dealt with..will the damage be 3 or 4?), so I think the formula is shown for a basic orientation in this. | the formula is indeed screwed up.
on a monster quest, the monster of a faction i have level 0 with damage range 22-32 and an attack skill of 22 did LESS than 22 damage on my bowman that had defense lower than 22.
by the way and offtopic: too much 22!, giggle | for ciopo:
this one? https://www.lordswm.com/warlog.php?warid=481381637
seems fine, though i didnt do the real calculations
dont forget when shooter performs melee attack, their damage is only 1/2 of the usual | .. d'oh, how silly of me, forgetting that | -1 no need |
Back to topics list
|