> For the complete documentation index, see [llms.txt](https://castleoverlord.gitbook.io/whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://castleoverlord.gitbook.io/whitepaper/gameplay-modes/assault.md).

# Assault

Players who own at least one unit of trooper can launch an assault against an AI-controlled enemy (PvE) or another player (PvP). Before the battle, the attacking player needs to summon and arrange their troopers in a formation. The number of summoned troopers can be increased by owning more NFT troopers and castles. Attacking other players, gaining resources, and using the resources to get stronger is the core gameplay loop of Castle Overlord.

Destroying enemy’s towers and castles will reward the attacking player with resources (gold and materials) necessary to upgrade their units. In a PvE assault, the amount of resources gained is predetermined and will be taken from the in-game resources pool. But in a PvP assault, the amount will vary based on the type and strength of the destroyed towers/castles, and these resources will be taken directly from the defending player’s inventory. If an assault fails, the attacking player may still gain resources as long as they manage to destroy some towers.

![An assault battle in progress. Final product may differ.](https://lh4.googleusercontent.com/cm1HxXxoLrnHZP8SzGOZ5P8SekTfJwePTh2qbm5qrn97kzjQ1StzBQdkHfX3TPmHsGR2QmEj7xcqiqVJ2Emzf_WSZD-64PLN1CfH_TB6FHMMw8tD1DwQM33GsuC0kHZqIsBZNGGpVKTJsmfw5Q)

Trooper units who participate in an assault will get fatigued and cannot be summoned for a period of time. Therefore, owning a large collection of NFT gives the player an opportunity to launch an assault more often.&#x20;

Assault battle is the only gameplay mode available to free players. The usable units are predetermined, only PvE assault is available, and they will not earn any reward.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://castleoverlord.gitbook.io/whitepaper/gameplay-modes/assault.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
