Mech Behavior

For less advanced players we strongly recommend to start with pre-defined behavior templates. More info about those can be found here: http://forum.mechhero.com/index.php?topic=555.0

In a mech's behavior tab you determine the algorithm according to which the mech will act on the battlefield. You can define the way of picking a target, moving around the battlefield and the escape conditions. Not every behavior is available for a mech from the beginning. Some, more advanced, need to be unlocked on the mech's upgrade tab. These options are referred to by the following tags:
[DEF] – orders available after unlocking “Enemy defense analysis”
[WEP] – orders available after unlocking “Enemy weapons analysis”
[AdvT] – orders available after unlocking “Advanced tactics”

The description for options located in the Behavior tab:

Target selection – target selection is performed according to the following algorithm:
1. Opponents are sorted according to the parameter from the first drop-down list.
2. From that list, bottom 50% is cut off.
3. The new list is sorted according to the second parameter.
4. The first mech on that list is chosen as the target.

Available parameter values:
- Random
- Lowest hull strength
- Highest hull strength
- Closest
- [WEP] Longest weapon range
- [WEP] Strongest weapons
- [AdvT] Escaping
- [DEF] Weakest armors
- [DEF] Weakest shields
- [WEP] Anti-building weapons
- [AdvT] Slowest
- [AdvT] Fastest
- [AdvT] Targeted by most friendly units
- [WEP] Doing most damage
- [AdvT] Not escaping
- Same target as General
- [AdvT] Clustered Enemies

Mech is searching for a target within its shortest weapon range. If it does not find any close target it will start looking further.

Movement strategy – determines the way a mech moves on the battlefield.
- Maintain position – the mech stays in the same spot it started the battle in
- Move to max range – the mech moves to the position from which it can fire a weapon and stops. It does not change position until a target is within its firing range.
- Keep max distance – the mech tries to maintain a distance equal to its maximum weapon range
- [AdvT] Keep min distance – the mech tries to maintain distance equal to its minimum weapon range
- [AdvT] Keep out of enemy weapons range – the mech tries to move outside of its current target's firing range
- Move forward & back – the mech moves forward until it reaches the edge of the battlefield, then moves in the opposite direction. The mech will 'bounce' off the battlefield's edges until the end of the battle, it escapes or is destroyed.
- Stick with the target – the mech tries to maintain the shortest possible distance to its target
- [AdvT] Stay out of enemies weapon range - the mech tries to move outside of all opponent's firing range

When using “Keep max distance”, “Keep min distance” and “Keep out of enemy weapons range” it often happens that a mech moves away from its target, heading towards the edge of the battlefield (the mech moves in the opposite of the firing direction). In such case, the mech will move with half of its normal speed.

Change target – The conditions for changing the target. These conditions are combined with logical “or” - if at least one condition is fulfilled, the mech changes its target.
- Each turn
- Target destroyed
- [WEP] Target disarmed
- Target out of max. weapon range
- Target is escaping

Condition “Each turn” is always true. Placing “Each turn” in any drop-down causes the mech to change target in each turn ignoring the remaining settings.
Condition “Target destroyed” is a dead condition (mech has to change a target anyway if the opponent is destroyed), so it will work as a logical “0” and turn off the drop-down in which it is set.

Escape – escape conditions. The conditions are combined with a logical “or” - if at least one condition is true, the mech begins to run away.
- Never
- No weapons
- No armors
- No shields
- [AdvT] No armor and shields
- [AdvT] Hull strength < 75%
- Hull strength < 50%
- [AdvT] Hull strength < 25%
- Out of rockets
- Anti-building weapons lost
- No transport platforms
- [AdvT] 50% of friendly units is out
- General is escaping
- Always

Condition “Never” works like a logical “0”. Setting this condition turns off the drop-down in which it is set. In order for a mech to actually never escape, you need to set “Never” in all 3 drop-downs.

If a mech goes into escape mode it cannot return to the battle. It tries to move outside of the battlefield.

All escaping conditions related to the lack of equipment are activated only if mech had that type of equipment at the beginning and lost it during the fight. If mech entered the fight without such equipment, those conditions will be ignored. Mech that enters the fight without any equipment will always be switched to escape mode. If Mech entered the fight with equipment and lost all equipment, but the Escape mode is set to 3 x “Never”, it will stay on the battlefield.