(5-CP) Counterproposal: Withdraw from Melee - Changed Withdraw Direction Logic

Status
Not open for further replies.

axatin

Prince
Joined
Jul 24, 2022
Messages
479
Counterproposal to (5-25) Withdraw From Melee Change (Pt1 - consistent mechanic)

Proposal:
(same as in the original proposal)

Change the "Withdraw from Melee" mechanic to the following.
  • The %chance is now 100% on the first melee attack against the turn that round. It is now 0% on all subsequent melee attacks.
  • The %chance is no longer affected by speed.

(different to the original proposal)
  • When a unit withdraws, the tile to which it moves is determined as follows:
  1. If the tile behind the unit (Tile 1) is free, the unit always withdraws to it.
  2. If Tile 1 is blocked, the unit retreats to either Tile 2 or Tile 3. If both of them are free, the tile with the lower number of adjacent enemy units is preferred.
  3. If Tile 2 and Tile 3 are both free and have the same number of adjacent enemy units, a random decision is made.
  4. If Tiles 1,2,3 are all occupied or unavailable, the withdraw chance lowers to 0%.

1688437200281.png


Rationale: As in the original proposal, the unit always tries to withdraw to the tile opposite to the attacker. If that tile is blocked, the unit withdraws diagonally while trying to avoid enemy units as well as possible. If both of the possible tiles in the diagonal direction have the same number of adjacent enemy units, a random decision is made. A random decision is better than a fixed pattern because a fixed pattern could be exploited by human players.
 
Last edited:
If that tile is blocked, the unit withdraws diagonally while trying to avoid enemy units as well as possible
This should be the default, since the code needs to be written anyway. Still predictable.
 
Status
Not open for further replies.
Top Bottom