• Hello, Guest!
    Are you passionate about Tribal Wars 2 and like to help your fellow players?
    We currently have open positions for Forum Moderators!

    >> Join the Tribal Wars 2 Team now! <<
    We would love to hear from you!

Battle System

DeletedUser

Guest
Ok first of all let me say hi to all of you :) My name is DeathAngle and if that doesnt sound familiar to you, it is probably because I have never played Tribal Wars before. Either way Im looking to getting to know the community up here and I play on the third world.

So now lets get down to my question, how does the battle system in tw2 work? Lets say player 1 is being attacked by player 2.

Player 1 has.... (the deffender)


(Defense against infantry, cavalry, archers)

10 spearman (250, 450, 100)
10 swords (550, 50, 300)
10 archers (100, 300, 600)
10 heavy cavalry (2000, 1600, 1800)

Player 2 has... (the attacker )


(Unit type, Combat strength)

10 Axe Fighters (Infantry, 450)
10 Light Cavalry (Cavalry, 1300)
10 Mounted Archers (??, 1500)

--------------------------------------------------------------------------------------------------------

(Assuming everything fights at 100%) What happeneds now?? Which units fight each other and which ones die, or is it just a big slaughter?
 

DeletedUser

Guest
I've been trying to figure this all out also. But I don't know how it calculates out.

I hope they'll give us some hints or someone very good at math figures it out. It's got too many variables for me to wrap my head around.
 

DeletedUser

Guest
I know for a fact that i will figure it out eventualy through a lot of trial and error but wanted to save some time, was hoping someone had it already figured out.
 

DeletedUser

Guest
From the original TW, and i assume its very similar here. Originally posted by user "Cheesasaurus" http://forum.tribalwars.net/showthr...-Calculation&p=3264706&viewfull=1#post3264706

10000 axe and 1000 lcav attack 10000 swords

10000 axe have 400,000 general strength
1000 lcav have 130,000 cavalry strength

now, here's where things are done differently. Instead of fighting one big battle, each type of attack fights in its own "mini" battle.

___[ general defense fights ]___

40/53 of the the attack is general strength, so 40/53 of the defending units will defend against general strength.
40/53 * 10,000 swords = 7547.17 swords
40/53 of the basic defense defends against the general attack.

7547.17 swords have 377,358.49 general defense on an archer world
40/53 * 20 basic defense = 15.09 general defense
total of 377,373.58 general defense

attacker value: 400,000
defender value: 377,373.58

the loser loses all units, and the winner takes losses according to the winner loss ratio formula:

winner loss ratio = (377373.58/400000)^(1/2)/(400000/377373.58) = 0.916362

0.916362 * 10,000 axe = 9164 attacking axes lost.

and all 7547.17 swords are lost.


___[ cavalry defense fights ]___

13/53 of the the attack is cavalry strength, so 13/53 of the defending units will defend against cavalry strength.
13/53 * 10,000 swords = 2452.83 swords
13/53 of the basic defense defends against the cavalry attack.

2452.83 swords have 36,792.45 cavalry defense
13/53 * 20 basic defense = 4.91 cavalry defense
total of 36,797.36 cavalry defense

attacker value: 130,000
defender value: 36,797.36

the loser loses all units, and the winner takes losses according to the winner loss ratio formula:

winner loss ratio = (36797.36/130000)^(1/2)/(130000/36797.36) = 0.150595

0.150595 * 1000 lcav = 151 attacking lcav lost.

and all 2452.83 swords are lost.

___

so, the results of the battle are:

7547.17 swords lost from general battle + 2452.83 swords lost from cavalry battle = 10,000 defending swords lost

9164 attacking axes lost
151 attacking lcav lost
 

DeletedUser

Guest
Genius, I am going to be testing how accurate this is on TW2
thankyou VERY MUCH :)
 

DeletedUser

Guest
When attacking with mounted archers, do they fall under Cavalry or Archer defence?
 

DeletedUser

Guest
They count as archers, so the best defense against them are archers.
 

DeletedUser

Guest
I've seen that formula posted before, but how do Archers come into the equation? Are they a separate calculation or are they just included in general defense? oh, I guess it'll just make the ratio smaller only if there's archers in the attack?

I didn't realize the battle was simply won via attack value vs. defense value and then the ratio to determine loss rate was so simple. I'm going to mess around with it in excel.

Also, I have one question, does anyone know where I can find the values for Paladin weapons atk/def bonuses for each level? The wiki doesn't show them and ingame it doesn't let me view that which I don't have.
 

DeletedUser

Guest
Well, if there are archers then just make the ratio smaller and the archers will fight in individual battles
 

DeletedUser

Guest
I've got an excel sheet that calculates it pretty close to engagements i've had as sample data (within 4-5 units accuracy), but can't get it exact
 

DeletedUser

Guest
descott;n9725 said:
I've got an excel sheet that calculates it pretty close to engagements i've had as sample data (within 4-5 units accuracy), but can't get it exact


Would you be kind enough to share it?
 

DeletedUser

Guest
I plan on making this simple program battle simulator soon... the graphics arent great but hell you cant argue with FREE lmao
 

DeletedUser

Guest
Came up with something along the lines of attacking. Less complicated, but I am in the middle of testing. But here is what I am currently getting ready to test.

I am attacking a village with 10 mounted archers.

Combat Strength = 1500
Def Infantry = 400

Minus the 400 from 1500, and it leaves you with 1100 total strength.

The village I am attacking has 30 spearman.

Combat Strength =300
Def Archers =300

Add the CS to the DA, and you will total 600 total strength.

If calculations are true, 4-5 MA should die. As the difference between the two numbers is half, meaning around half of my attacking units should be killed. (This does not include wall defense percentage, though this will be added.) Just giving a rough explanation of my tests.

My reasoning behind this is I sent 56 Axes, against 50 Spears. 49 of my axes died. The strengths for the two sets of armies were 1960 for offense, 1750 for defense. Remaining troop count was 7. 7 axes equals 245 strength, which is approximately the difference. Equaling the casualties.
 

DeletedUser

Guest
gl with it :)
but the formula mentioned above seems to work for attacking and defending, so i am implementing that formula in my program (which will be done soon, hopfully) and then test and improve its accuracy
 

DeletedUser

Guest
why are you trying to figure battle system out . Morale will fuck you up anyway
 

DeletedUser

Guest
Morale can be calculated in. You'll have to figure out the battle system the same way the server does.
 

DeletedUser

Guest
"why are you trying to figure battle system out . Morale will **** you up anyway"
Idiot
just wow, if you cant answer that question yourself then you have a room temperature IQ my friend

@Rapth, yea i know, trying to accomplish it, i never really liked math though :(
 

DeletedUser

Guest
Power to you death. I hate math as well. My attack calculator wont be as awesome as yours, or probably even as accurate. Just getting it enough to be able to roughly calculate attacks lol. Minimum.
 

DeletedUser

Guest
haha thankyou :)
and just an fyi as it stands right now my attack calculator has an accuracy of 90.07%
I have a few minor details to implement, i am hopping it brings it up to 95%+, if i get to that i will be satisfied
 

DeletedUser

Guest
Will you publish your calculator? We all could use an accurate one.
 
Top