Originally posted by yermolayev:
Well. Each unit(my unit or enemy unit) has its own speed that define the order of attack during the battle. The order of troops (I mean 1,2,3,4,5,7 slots) define which enemy troop will be attacked. My slot 1 will attack enemy slot 1, My slot 2 attack enemy slot 2...... But attack does not have to finish when my slot 1 or enemy slot 1 die. Damage have to be calculated in the same manner as in classic HOMM battle: damage=(attack-defence)*"unit damage".
In the case of non equal namber of captured slot . For expl: I have 1,2,3,4 slots with toops, enemy has 1,2,3 slots with troops. In this case, the order of attack following:
1) first round: my slot 1 atack enemy slot 1, my slot 2 attack enemy slot 2, my slot 3 attacks enemy slot 3, my slot 4 attack enemy slot 1
2) second round: my slot 1 attack enemy slot 2 - in continuation of cycle. Or, other variant, my slot 1 attack enemy slot 1 - repetition of cycle. It`s up to you. Both orders can cause different tactics.
TWO KEY PARAMETERS: SPEED AND SLOT(TROOPS) ORDER.
I hope it is clear.
And this algorithm really has tactic features. And it really differs from Travian algorithm etc.
Pls think about this algorithm if you don`t want to save classic HOMM battle system.