# Fighting

Combat serves as the primary source of gaining SKILL through the use of your character and weapon NFTs. Fighting consists of the player selecting a character and a weapon, and selecting an enemy from a randomized set based on your calculated power.

The overview of the combat formulas can be found here:

{% content-ref url="/pages/-MdH-1waYpuW42h4UUP3" %}
[Combat Formula](/wiki/combat/fighting/combat-formula.md)
{% endcontent-ref %}

After the player has selected their enemy, the contract calculates on-chain the randomized player and enemy rolls and determines a victory if the player's roll is equal to or higher than the enemy's roll.

A victorious fight results in a experience payout to your character, and a SKILL payout to your in-game wallet.

A defeat results in a loss of the gas fees paid.

Calculations to determine the experience and SKILL payouts can be found here:

{% content-ref url="/pages/-MdJVp2DbqZf9KfmuM0X" %}
[Combat Rewards](/wiki/combat/fighting/combat-rewards.md)
{% endcontent-ref %}


---

# 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://cryptoblades.gitbook.io/wiki/combat/fighting.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.
