# Alien Invasions

Every once in a while, a swarm of hostile aliens will storm the Lands. You have to prepare in advance to hold them off and protect your base. Aliens come in waves, and there are various [types of them](/game-systems/combat/aliens.md).

You will be notified about the upcoming, ongoing, or finished attack whenever it happens. Aliens can invade while you are offline.

### Frequency of the Attacks: Security Rating <a href="#threat-level" id="threat-level"></a>

The frequency of the invasions is determined by the [Security Rating ](/assets/lands/land-security-rating.md)of the Land.&#x20;

### Strength of the Attacks: Threat Level <a href="#threat-level" id="threat-level"></a>

The Land’s **threat level** defines the frequency and power of each alien attack. **Threat level** is generated by structures and extracted resources.

* The amount of threat generated by each **structure** is defined by its level and type.
* Any **resource** present on the Land, raw or refined, generates threat, including resources within Warehouses, [Miners](/assets/units/resources-miner.md), [Mobile Depots](/assets/units/mobile-depot.md), etc.

Units do not generate threat, so upgrading the units present on a land or allocating more units there are effective strategies to counter alien invasions.

### Alien Behavior During Attacks <a href="#alien-behavior-during-attacks" id="alien-behavior-during-attacks"></a>

Aliens enter a land through the **land’s entrances** - passageways that communicate it with other lands.&#x20;

When aliens have valid targets within their perception range, they choose targets according to their gameplay. When they have no valid targets within their perception range they **target the highest source of threat** and move towards it.

\
Once the threat level drops to a certain value, aliens seem to consider that their incursion has been successful, and leave the Land through the nearest entrance.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.pulsar.game/game-systems/alien-invasions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
