Difference between revisions of "Combat System"

From Binary-Tools Wiki
Jump to navigation Jump to search
(Created page with "<languages/> <translate> {{Legends Kingdoms Topic/en}} The combat system in Travian: Legends and Travian Kingdoms is quite complex and the outcome of a single attack depends...")
 
(Marked this version for translation)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
 +
<!--T:1-->
 
{{Legends Kingdoms Topic/en}}
 
{{Legends Kingdoms Topic/en}}
  
 +
<!--T:2-->
 
The combat system in Travian: Legends and Travian Kingdoms is quite complex and the outcome of a single attack depends on many different factors.
 
The combat system in Travian: Legends and Travian Kingdoms is quite complex and the outcome of a single attack depends on many different factors.
  
== Fighting strength calculation ==
+
== Fighting strength calculation == <!--T:3-->
  
 +
<!--T:4-->
 
The fighting strength of each unit depends on several factors and is calculated as follows:
 
The fighting strength of each unit depends on several factors and is calculated as follows:
  
 +
<!--T:5-->
 
# Take the unit's base strength.  
 
# Take the unit's base strength.  
 
#* For the attacking troops, this is the raw attack strength, e.g. a clubswinger has a base strength of 40.
 
#* For the attacking troops, this is the raw attack strength, e.g. a clubswinger has a base strength of 40.
Line 19: Line 23:
 
# Lastly, the hero's percentage attack/defense bonus is applied. In both versions, all units of the hero's account benefit from the skillpoints, if the hero participates in the fight.
 
# Lastly, the hero's percentage attack/defense bonus is applied. In both versions, all units of the hero's account benefit from the skillpoints, if the hero participates in the fight.
  
 +
<!--T:6-->
 
After that, the strength of all attacking and defending units are added together for the total attack strength and total defense strength respectively.
 
After that, the strength of all attacking and defending units are added together for the total attack strength and total defense strength respectively.
  
 +
<!--T:7-->
 
Now, the hero's fighting strength, and the fighting strength of the residence, palace or {{SwitchVersion|legends=command central}} is added:
 
Now, the hero's fighting strength, and the fighting strength of the residence, palace or {{SwitchVersion|legends=command central}} is added:
  
 +
<!--T:8-->
 
* A residence, palace or {{SwitchVersion|legends=command central}} grants <math>2 \cdot \text{level}^2</math> fighting strength to the defender.
 
* A residence, palace or {{SwitchVersion|legends=command central}} grants <math>2 \cdot \text{level}^2</math> fighting strength to the defender.
  
 +
<!--T:9-->
 
Then, the "global" modifiers are applied.  
 
Then, the "global" modifiers are applied.  
  
 +
<!--T:10-->
 
Attack strength modifiers:
 
Attack strength modifiers:
  
 +
<!--T:11-->
 
# Brewery bonus, if a brewery party is being held at the time of the impact of the attack: +1% per brewery level.
 
# Brewery bonus, if a brewery party is being held at the time of the impact of the attack: +1% per brewery level.
 
# {{SwitchVersion|kingdoms=Siege bonus, if it is a siege: +33%}}
 
# {{SwitchVersion|kingdoms=Siege bonus, if it is a siege: +33%}}
 
# Morale malus, if the attacker is larger than the defender (based on population): <math>(\frac{\text{defender population}}{\text{attacker population}})^{0.2} - 1</math>, capped at 0% and -33.34%. (Yes, this reduces the attack strength by up to 33.34% when attacking a sufficiently small account).
 
# Morale malus, if the attacker is larger than the defender (based on population): <math>(\frac{\text{defender population}}{\text{attacker population}})^{0.2} - 1</math>, capped at 0% and -33.34%. (Yes, this reduces the attack strength by up to 33.34% when attacking a sufficiently small account).
  
 +
<!--T:12-->
 
Defense strength modifiers:
 
Defense strength modifiers:
  
 +
<!--T:13-->
 
#  {{SwitchVersion|legends=Defense bonus from wall|kingdoms=Sum of defense bonus from wall and water ditch (for instance, the roman city wall level 20 plus a water ditch level 20 grant a total bonus of 111%)}}.  
 
#  {{SwitchVersion|legends=Defense bonus from wall|kingdoms=Sum of defense bonus from wall and water ditch (for instance, the roman city wall level 20 plus a water ditch level 20 grant a total bonus of 111%)}}.  
  
 +
<!--T:14-->
 
Lastly, the defender gets a flat defense bonus and some flat fighting strength from the wall:
 
Lastly, the defender gets a flat defense bonus and some flat fighting strength from the wall:
  
 +
<!--T:15-->
 
* The defender gets an additional 10 fighting strength conditionlessly.
 
* The defender gets an additional 10 fighting strength conditionlessly.
 
* The wall's base fighting strength is added.
 
* The wall's base fighting strength is added.
  
== Overview: Order of execution ==
+
== Overview: Order of execution == <!--T:16-->
  
 +
<!--T:17-->
 
During a single attack or {{SwitchVersion|kingdoms=siege}}, but not during scout attacks and raids, a lot of things happen. Some of those influence each other, so the order of execution is important to understand. In every attack and {{SwitchVersion|kingdoms=siege}}, the following will happen:
 
During a single attack or {{SwitchVersion|kingdoms=siege}}, but not during scout attacks and raids, a lot of things happen. Some of those influence each other, so the order of execution is important to understand. In every attack and {{SwitchVersion|kingdoms=siege}}, the following will happen:
  
 +
<!--T:18-->
 
# Rams attack the wall and demolish it to some intermediate level, which will be used later. The intermediate level is never shown in the report or explicitly visible anywhere.
 
# Rams attack the wall and demolish it to some intermediate level, which will be used later. The intermediate level is never shown in the report or explicitly visible anywhere.
 
# Troops fight each other until one side is completely dead.
 
# Troops fight each other until one side is completely dead.

Revision as of 22:49, 26 March 2020



Kingdoms Logo.png Legends Logo.png This article is about a feature, which exists in Travian: Legends as well as Travian Kingdoms. Version specific features are marked with a kingdoms or legends icon.


The combat system in Travian: Legends and Travian Kingdoms is quite complex and the outcome of a single attack depends on many different factors.

Fighting strength calculation

The fighting strength of each unit depends on several factors and is calculated as follows:

  1. Take the unit's base strength.
    • For the attacking troops, this is the raw attack strength, e.g. a clubswinger has a base strength of 40.
    • For the defending troops, this is two values, the defense versus infantry and the defense versus cavalry. A phalanx has the values 40 versus infantry and 50 versus cavalry.
  2. Apply the formula for smithy upgrades of the unit:

    Crop consumption refers to the base crop consumption before any buffs (e.g. horse drinking trough, WW-village buff, Travian: Legends artefacts)
  3. For the defending troops, the two values for the leveled strength are used to calculate the strength as follows:
    Attacking power refers to the total attack power of the attacker, including all boni. Rams, catapults, chiefs and settlers count as infantry. The attacker's hero counts as cavalry, if he equipped a horse, or as infantry otherwise.
  4. Then, the hero's weapon bonus is applied.
    • The attacker profits normally from his weapon in both versions.
    • For the defender, Travian: Legends the hero weapon buffs all units of the same home village as the hero, if he participates in the fight / Travian Kingdoms The strongest hero weapon per troop type in the defending village buffs all units of that troop type, no matter where they come from.
  5. Lastly, the hero's percentage attack/defense bonus is applied. In both versions, all units of the hero's account benefit from the skillpoints, if the hero participates in the fight.

After that, the strength of all attacking and defending units are added together for the total attack strength and total defense strength respectively.

Now, the hero's fighting strength, and the fighting strength of the residence, palace or Travian: Legends command central is added:

  • A residence, palace or Travian: Legends command central grants fighting strength to the defender.

Then, the "global" modifiers are applied.

Attack strength modifiers:

  1. Brewery bonus, if a brewery party is being held at the time of the impact of the attack: +1% per brewery level.
  2. Travian Kingdoms Siege bonus, if it is a siege: +33%
  3. Morale malus, if the attacker is larger than the defender (based on population): , capped at 0% and -33.34%. (Yes, this reduces the attack strength by up to 33.34% when attacking a sufficiently small account).

Defense strength modifiers:

  1. Travian: Legends Defense bonus from wall / Travian Kingdoms Sum of defense bonus from wall and water ditch (for instance, the roman city wall level 20 plus a water ditch level 20 grant a total bonus of 111%).

Lastly, the defender gets a flat defense bonus and some flat fighting strength from the wall:

  • The defender gets an additional 10 fighting strength conditionlessly.
  • The wall's base fighting strength is added.

Overview: Order of execution

During a single attack or Travian Kingdoms siege, but not during scout attacks and raids, a lot of things happen. Some of those influence each other, so the order of execution is important to understand. In every attack and Travian Kingdoms siege, the following will happen:

  1. Rams attack the wall and demolish it to some intermediate level, which will be used later. The intermediate level is never shown in the report or explicitly visible anywhere.
  2. Troops fight each other until one side is completely dead.
  3. Rams attack once again and demolish the wall to its final level, which will be visible in the report.
  4. Catapults shoot.
  5. Chiefs lower loyalty.