Forum wrote:the way the deaths are currently caculated is:
1) def max 30% of units (used to be 10%)
2) att max is 50% of units sent
attack and defense losses are multiplied by an '$attack_ratio' between 0.10 and 10
(ie attack/def for def loses; def/attack for att loses)
The more times ascended the less die.
The 'death divisor' is currently 10,000
$=the variable
$attStrength and $defStrength are the stike and defence action sent.
$AttacKilled =($attack_ratio * $defStrength) / ($deathDivisor * $attacker->timesAscended);
$defKilled = ($defense_ratio * $attackStrength) / ($deathDivisor * $defender->timesAscended);
So the 2 questions are really : Is the 10,000 right? is the def compared to attack deaths good?
You sure this is correct? It kills units based on attack/defence strength (unit's + weapons + tech), but I see no variable checking the actual units in there. It starts out ok, but soon ends up HUGE. Also after so much, defence lose more than attack! o.O
I've made an MSL (Mirc scripting language) script for it quickly, as I couldn't be bothered to work it out with a calculator. I like any excuse to code/script
. Here it is, check to see if I made a mistake:
on 1:INPUT:*: {
if ($1 == .gwattack) { ;cba to use regex here lol
;------- Variables start -------
set %attackStrength $2 ;attack strength is 2nd word
set %defStrength $3 ;defence strength 3rd word
set %deathDivisor 10000 ;The 'death divisor' is currently 10,000
set %attack_ratio $calc($rand(1,100)/10) ;attack and defense losses are multiplied by an '$attack_ratio' between 0.10 and 10
set %defense_ratio $calc($rand(1,100)/10) ;attack and defense losses are multiplied by an '$attack_ratio' between 0.10 and 10
set %attackertimesAscended 1 ;attacker ascension 1
set %defendertimesAscended 1 ;defender ascension 1
;------- Variables end -------
;------- Calculate start -------
set %AttacKilled $calc( (%attack_ratio * %defStrength) / (%deathDivisor * %attackertimesAscended) )
set %defKilled $calc( (%defense_ratio * %attackStrength) / (%deathDivisor * %defendertimesAscended) )
;------- Calculate end -------
msg #Channelhere %attacKilled %defKilled
}
}
It came out with (1,000,000 attack, 1,000,000 defence, both ascension 1):
[23:13] <@iCal> .gwattack 1000000 1000000
[23:27] <@iCal> 240 180
It came out with (5,000,000 attack, 5,000,000 defence, both ascension 1):
[23:15] <@iCal> .gwattack 5000000 5000000
[23:15] <@iCal> 2750 1050 (errrrrrrrrrrr)
It came out with (20,000,000 attack, 20,000,000 defence, both ascension 1):
[23:15] <@iCal> .gwattack 20000000 20000000
[23:15] <@iCal> 8000 14200 (big numbers.....)
It came out with (100,000,000 attack, 100,000,000 defence, both ascension 1):
[23:17] <@iCal> .gwattack 100000000 100000000
[23:17] <@iCal> 69000 97000 (wow, 50k+ losses at 100 mil attack?)
How's that? It's, errrrrrr, big numbers. Checked my variables and they seem right....
%attackStrength 5000000
%defStrength 5000000
%deathDivisor 10000
%attack_ratio 2.6
%defense_ratio 7.4
%attackertimesAscended 1
%defendertimesAscended 1
%AttacKilled 1300
%defKilled 3700
Does this mean it's going to hit the 30%/50% max kill limit for attack/defence a lot lol.
Going to try it with death advisor 5,000 20,000 and 50,000, see if something is up......
Edit:
5,000 death advisor (100,000,000 attack, 100,000,000 defence, both ascension 1):
[23:49] <@iCal> .gwattack 100000000 100000000
[23:48] <@iCal> 98000 174000
20,000 death advisor (100,000,000 attack, 100,000,000 defence, both ascension 1):
[23:49] <@iCal> .gwattack 100000000 100000000
[23:49] <@iCal> 27500 16000
50,000 death advisor (100,000,000 attack, 100,000,000 defence, both ascension 1):
[23:49] <@iCal> .gwattack 100000000 100000000
[23:50] <@iCal> 19800 6200