Skip to content

Posts from Turn order in battle.

No ratings yet — be the first to rate!
In reply to Magneto
User Avatar
Auto-translated
Here's something I found on the Heroesportal forum a while ago, and I kept it in a text file. The author is Antonshka: First, the unit with the highest speed always moves. If there are several, the attacker has priority. If there are several attackers, the leftmost stack has priority. Then, if the speeds are equal, the opponent always has priority, and again, the leftmost stack. If a unit is waiting, the priority of the last move is in the same sequence, but from the lowest speed to the highest. A unit that missed its turn has the lowest priority while waiting. If an enemy unit has a higher speed than your main units, it will enter the attack range of your troops either by attacking or by waiting. The first one has priority. Other enemy units, if there is already one of their stacks in the attack range of your troops, will boldly run towards you, without waiting, even if they cannot reach anyone. Next, enemy units always go to the nearest stack (calculated by the number of turns, not cells, and based on the current speed, taking into account applied spells). This is the basis for the AI's actions when casting spells. If the AI sees that it can cast a speed spell on the main stack and it will reach, it will cast it. Otherwise, it may cast a missile spell or Stone Skin. Thus, you can force it to cast certain spells by using a decoy. If there are several stacks within reach, the AI chooses based on the following priorities: 1. Strength of attack (calculated based on the current stack, not on what will remain after the attack). It tries to choose the minimum. 2. It "calculates" whether it will win or lose. If it wins, it starts attacking from the bottom (right stacks, last in the queue). If it loses, it attacks the top stacks. An example of this is using cavalry to eliminate archers. At the beginning, all archers try to attack the bottom stack, and when the cavalry is almost defeated, they "suddenly" switch to the top, fully healthy stack. 3. It also tries to use the properties of units, for example, to block archers or attack with dragons. It casts spells during the attack, for example, Haste. In general, there are many nuances. I have described the main ones. There are clear algorithms: 1. A unit goes to the nearest (calculated not by cells, but by the number of turns). That is, if it takes 2 turns to reach one unit and 3 turns to reach another, it will go to the one that takes 2 turns. 2. If there are several units that it can reach in the minimum number of turns, then many factors come into play, which I don't want to explain in detail, such as the ratio of forces of the armies, the attack range of other units, the ratio of attack/defense, the influence of already inflicted damage, and spells. Also, spells have an original effect on two-cell units, such as Wall of Fire. Ballista has a very original effect on harpies, and so on. P.S. The forum is glitching with the time, it seems like I created the topic, - that's funny :)
Auto-translated
I think everyone knows the basic rule for turn order in battle: the higher the creature's speed, the sooner its turn comes. When the speeds of creatures in battle are all different, everything is straightforward. But if the speeds of some creatures are equal (which happens very often), then it becomes a little more complicated, and factors such as the arrangement before the battle, the round of the battle, and possibly the side the creature is fighting for come into play... I admit, I've often wondered about this, but I haven't objectively researched it. I looked for this information in the game manual, but it's not there. In that case, we can assume that there is no pattern at all, but I don't think that's the case. If anyone knows the exact pattern for turn order in battle, please share it.
In reply to Magneto
User Avatar
Auto-translated
Magneto
I think everyone knows the basic rule for turn order in battle – the higher the speed of a creature, the sooner its turn comes. When the speeds of creatures in battle are all different, everything is straightforward. But if the speeds of some creatures are the same (which happens very often), then it becomes a little more complicated, and factors such as the arrangement before the battle, the round of the battle, and possibly the side the creature is fighting for come into play... I admit, I've asked myself this question quite often, but I haven't objectively researched it. I looked for this information in the game files, but it's not there. In that case, we can assume that there is no pattern at all, but I don't think that's the case.
If anyone knows the exact pattern for turn order in battle, please share it.
In my opinion, it's quite simple: they take turns in order, starting from the top of the stack, the attacker goes first, and that's it ;)
In reply to Wlk777
User Avatar
Auto-translated
Wlk777
In my opinion, it's quite simple: they take turns, starting from the top of the stack. The attacker goes first; that's basically it.
All that remains is to add that if the speed is the same, the one who went last in the first round will go second in the second round (I might be wrong, but it's something like that).
In reply to Dirty_Player
User Avatar
Auto-translated
Dirty_Player
All that remains is to add that with the same speed, the one who moved last in the first round will move second in the second round (I might be wrong, but it's something like that).
I wrote that they move in turn. If, for example, both heroes have units with the same maximum speed, then in the next round, the one who moved last in the previous round will not go first; I think it works that way.
In reply to Wlk777
Auto-translated
I'll try to summarize.
Let's consider a situation where two heroes fighting each other have all 7 stacks with units of the same speed. Then, the first stack of the attacking hero will go first, the second stack of the defending hero will go second, the third stack of the attacking hero will go third, the fourth stack of the defending hero will go fourth... In the second round, the top stacks go first again, but first for the defending hero, then for the attacking hero, that is, the first stack of the defending hero goes first, the second stack of the attacking hero goes second, the third stack of the defending hero goes third, the fourth stack of the attacking hero goes fourth... In the third round, the order will be the same as in the first, in the fourth - as in the second, and so on... I think that's how it works.
This is when the units don't skip their turns. But what if someone waits or goes into defense – what changes occur in the turn order?

Added after 22 hours 6 minutes
Let's take a specific example. Suppose two heroes are fighting. The attacker has champions and royal griffins in the first and fifth stacks, and the defender has death knights and vampire lords in the third and fourth stacks. All of the listed units have the same speed - 9. Who will go after whom? Does the fact that all seven stacks are filled matter?
In reply to Magneto
User Avatar
Auto-translated
Magneto
Let's take a specific example. Suppose two heroes are fighting. The attacker has Champions and Royal Griffins in the first and fifth stacks, while the defender has Death Knights and Vampire Lords in the third and fourth stacks. All of them have the same speed - 9. Who will go first?
Champions - Death Knights - Griffins - Vampire Lords
Magneto
Does it matter if all seven stacks are filled?
No. It's the same as if they weren't there.
In reply to Dirty_Player
Auto-translated
I'm not used to calculating every move from "childhood" to see who goes after whom, and I still don't do it. That's why I want to understand it. It seems like everything has been clarified, just one last thing. :)
Dirty_Player
All that remains is to add that with the same speed, the one who went last in the first round will go second in the second round (I might be wrong, but it's something like that).

So, the turn order still changes with each round. Therefore, if we apply this to my last example, the second round would be: Death Knights - Champions - Vampires - Griffons. If there were a couple more stacks of Griffons, they would go after the rest. It seems that's how it works. Thank you for your attention.
In reply to Magneto
Auto-translated
I've noticed some inconsistencies with the turn order lately. I'm attacking a group of Goblins with a stack of upgraded units on grass terrain. I have Bears in the third slot and Wolves in the sixth (both with a speed of 6). The "opponent" only has one stack with a speed of 6, and I'm the attacker. Question: why did the Goblin move forward before the Bear?
User Avatar
Auto-translated
Because you had a unit with a speed greater than 6 in your army, and that unit used your turn when speeds were equal. If your bears had the highest speed, they would have moved first.
В дикім полі
In reply to bRitvo4kA
User Avatar
Auto-translated
bRitvo4kA
Because you had someone in your army with a speed greater than 6, and that unit used your turn when the speeds were equal. If your bears had the highest speed, they would have moved first.

Apparently, it was a rook.
In reply to Magneto
User Avatar
Auto-translated
Magneto

[/U]Let's take a specific example. Suppose two heroes are fighting. The attacker has Champions and Royal Griffins in the first and fifth stacks, while the defender has Death Knights and Vampire Lords in the third and fourth stacks. All of these units have the same speed - 9. Who goes first? Does the number of units in all seven stacks matter?
In the second game, the number of units in the other stacks definitely matters.
For example, if the defender has Phoenixes and the attacker has Titans, the turn order will be Phoenixes-Titans-Death Knights-Champions, etc. (if there were no Phoenixes and Titans, Champions would go before Death Knights). In other words, the "snake" rule applies - the last turn was the attacker's, so with equal speed, the next turn is the defender's.

Орден Фениксахаризматический :) лидер
In reply to KobRa_RR
Auto-translated
KobRa_RR
Apparently, it was a reshuffle.

Yes, it was. Now it seems that the situation has become clearer.:)
User Avatar
Auto-translated
Hello everyone.

I came across a moment that I don't understand.
I have sprites with a speed of 9 and positive morale. I make a move with them, morale triggers, and I click "wait." Then, the opponent's creatures with lower speed wait, and then they start moving – and my sprites move up to (!) some of the opponent's stacks with lower speed.

I can't understand the reason for this; maybe someone knows the underlying logic.
In reply to Kluka
User Avatar
Auto-translated
Kluka
Hello everyone.

I came across a moment that I don't understand.
I have fairies with a speed of 9 and a positive morale. I make a move with them, then morale triggers, and I press wait. Then the opponent's creatures with lower speed wait, and then they start moving - and my fairies move until(!) some of the opponent's stacks with lower speed move.

I can't understand the reason for this, maybe someone knows the deeper meaning.
That's correct. It's designed that way. Even if a phoenix gets morale and presses wait, a zombie will wait it out. I don't know why, but it seems that's how it's intended.

Statistics

Welcome our newest member: Emil