Skip to content

AI: Getting nervous

Gynt edited this page Sep 16, 2024 · 2 revisions

AI: Getting nervous

The AI can get nervous, which is associated with a video and audio message and distinct types of behavior:

  • Destroying buildings
  • Sending gold to allies

Sending gold to allies

When the AI thinks his team is doing poorly, and specifically when the troop value of its team (within 60 tiles of its keep) is 20% or less of that of the enemy (within 60 tiles of the keep), it starts sending 10% of its gold to allies (equally divided among the allies).

Details on distance calculation

The cheap distance calculation is used here, as it has to calculate distance to the keep for 2500 units:

max(abs({keepX, keepY} - {unitX, unitY}))

So imagining these entities: image

  • Blue is closer to red than yellow and green are.
  • Yellow and green are both the same distance to red.
Clone this wiki locally