Notice something wrong, missing, or unsatisfactory? Feel free to fix it yourself, or contact Support

Difference between revisions of "Battle Engine"

From Medieval Europe
Jump to: navigation, search
(Initiative Computation)
Line 26: Line 26:
 
===Consecutive Hits Computation===
 
===Consecutive Hits Computation===
  
Range 1-3. Consecutive hits are negatively affected by the attacking character’s weapon weight and weapon length, and
+
Range: 1-3
positively affected by the attacking character’s strength and energy levels.  Stunned characters cannot attack.
+
  
   Consecutive attacks number = f( Weapon_Length (Reach), Strength, Energy )
+
After initiative has been computed, the engine computer how many consecutive hits the attacker will deal. Consecutive hits are negatively affected by the attacking character’s weapon weight and weapon length, and positively affected by the attacking character’s strength and energy levels. 
 +
 
 +
'''Stunned characters cannot attack.'''
 +
 
 +
   Consecutive attacks number = f( Attacker_Weapon_Length, Strength, Energy )
  
 
===Hit and Miss Chance Computation===
 
===Hit and Miss Chance Computation===
Line 35: Line 38:
 
Logic to hit or miss depends on the ratio between Attacker and Defender Dexterities.
 
Logic to hit or miss depends on the ratio between Attacker and Defender Dexterities.
  
   Hit_Percentage = f( Attacker Dexterity, Defender Dexterity )
+
   Hit_chance = f( Attacker_Dexterity, Defender_Dexterity )
 +
 
 +
'''If a character is stunned the attacker has a 100% chance to hit the opponent.'''
 +
 
 +
Examples
  
Note: If a character is stunned the attacker has a 100% chance to hit the opponent.
+
* Attacker has dex 20, defender has dex 15. Hit_Chance will be about 71%.
 +
* Attacker has dex 20, defender has dex 2. Hit_Chance will be about 97%.
 +
* Attacker has dex 10, defender has dex 18. Hit_Chance will be about 55%.
 +
* Attacker has dex 1, defender has dex 18. Hit_Chance will be about 26%.  
  
 
===Damage Computation===
 
===Damage Computation===
Line 51: Line 61:
 
====Base Damage====
 
====Base Damage====
  
   Base Damage = f ( Weapon Damage, Weapon Condition, Strength, Energy) + Strength / 6
+
   Base Damage = f ( Weapon_Damage, Weapon_Condition, Strength, Energy) + Strength / 6
  
 
[[File:DamageSkewFigure.png|400px|alt=Figure showing how the Normal curve of damages is skewed depending on Strength, Energy, and Weapon condition.|]]
 
[[File:DamageSkewFigure.png|400px|alt=Figure showing how the Normal curve of damages is skewed depending on Strength, Energy, and Weapon condition.|]]

Revision as of 15:34, 4 November 2014

Contents

Battle Engine Explained

Definitions

Match A complete fight between two characters. A match has n rounds.
Round A round includes two turns, one for the attacker and one for defender
Turn A turn may includes n (consecutive)=Battle Engine Explained=

How it works

Battle Engine-1.png

Initiative Computation

Initiative (who will attack first) is computed at the start of every round and will depend on the reach attribute of each character’s weapon. A character using a weapon with a longer reach than his/her opponent will have better odds of gaining the initiative. If the weapons have the same reach, each character has a equal chance of gaining the initiative.

  Initiative = f( Attacker_Weapon_Length, Defender_Weapon_Length )

Consecutive Hits Computation

Range: 1-3

After initiative has been computed, the engine computer how many consecutive hits the attacker will deal. Consecutive hits are negatively affected by the attacking character’s weapon weight and weapon length, and positively affected by the attacking character’s strength and energy levels.

Stunned characters cannot attack.

  Consecutive attacks number = f( Attacker_Weapon_Length, Strength, Energy )

Hit and Miss Chance Computation

Logic to hit or miss depends on the ratio between Attacker and Defender Dexterities.

  Hit_chance = f( Attacker_Dexterity, Defender_Dexterity )

If a character is stunned the attacker has a 100% chance to hit the opponent.

Examples

  • Attacker has dex 20, defender has dex 15. Hit_Chance will be about 71%.
  • Attacker has dex 20, defender has dex 2. Hit_Chance will be about 97%.
  • Attacker has dex 10, defender has dex 18. Hit_Chance will be about 55%.
  • Attacker has dex 1, defender has dex 18. Hit_Chance will be about 26%.

Damage Computation

Dealt damage depends from the following factors:

  • Weapon Damage
  • Weapon Condition
  • Strength
  • Energy
  • Defender AC

Base Damage

  Base Damage = f ( Weapon_Damage, Weapon_Condition, Strength, Energy) + Strength / 6

Figure showing how the Normal curve of damages is skewed depending on Strength, Energy, and Weapon condition.

The Base Damage is randomly selected within the range of damage values for the equipped weapon. With a Strength value of 10, an energy value of 50%, and a weapon condition of 50%, the damage will be randomly selected using a Normal (Gaussian) distribution centered on the mean of the weapon’s damage range. Thus, if the range is 1-7, a 4 will have the best odds of being rolled and a 1 and a 7 would have the worst odds of being rolled.

  • With increasing Strength, Energy and Weapon Condition, the distribution is skewed more toward the maximum of the range.
  • With decreasing Strength, Energy and Weapon Condition, the distribution is skewed more toward the minimum of the range.

The Base Damage is then partitioned in Blunt Damage and Cutting Damage accordingly to the weapon Cutting Damage/Blunt Damage. For example if the Base Damage with a fauchard is 10, Blunt damage will be 5 and Cutting Damage 5. Check Weapons Table for useful data.

Blunt Damage

Effect: Stunning an opponent

Cutting Damage

Effect: Bleed Damage

The Critical Hit

Energy consumption

Energy is very important in battle (for example you see in the previous formula that impacts the number of consecutive hits). The energy consumed for each hit will depend on:

  • Weapon weight;
  • War encumbrance;
  • Strength;
  • Constitution;
  Energy depleted for each attack = f( Weapon_Weight, War_Encumbrance, Strength )
  Energy restored for each attack = f( Constitution )

War Encumbrance

War encumbrance is computed as follows:

  War Encumberance = (Equipped items weight)/Base_Transportable_Weight

where

  Base_transportable_weight =  100 - power(abs(  strength  - 20 ), 1.3) Kg
Personal tools