> For the complete documentation index, see [llms.txt](https://histoxel.gitbook.io/histoxel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://histoxel.gitbook.io/histoxel/histoxel-game/game-mechanics-and-features.md).

# Game Mechanics and Features

<figure><img src="/files/t8IMjPpOOTcVo3Ls4F41" alt=""><figcaption></figcaption></figure>

**Dynamic Gameplay with NFT Integration**

Each NFT character brings unique attributes to the table, forming the foundation of the gameplay. These attributes include **Attack**, **Defense**, and **Evasion**, which influence battle outcomes and strategic decisions. While rarity plays a role in determining certain aspects like daily dice rolls, the overall gameplay is designed to balance rarity with skill, strategy, and character upgrades.

***

**Core Gameplay Mechanics**

**1. Dice Rolls and Combat System**\
Players engage in battles by rolling dice to determine their combat potential. The dice rolls are combined with the NFT's attributes to calculate the battle outcome. Success depends on the interplay of luck, character traits, and strategic choices.

* **Dice Roll Allocation**:\
  Players receive a set number of dice rolls daily, determined by both their NFT's rarity and its specific abilities:

* &#x20;                                                                          [**D=R+E**](#user-content-fn-1)[^1]

* Where:
  * D: Total daily dice rolls available.
  * R: Base rolls derived from the NFT's rarity.
  * E: Additional rolls from special NFT abilities or upgrades.

* **Combat Score Calculation**:\
  Each player’s combat score (CS) is calculated during battles using the formula:

  &#x20;  &#x20;

* &#x20;                                                                   CS=(A×DR)−(D×E)

* Where:

* A: NFT’s Attack value.

* DR: Random number from dice roll.

* D: Opponent’s Defense value.

* E: Evasion effect, calculated as a probability:&#x20;

*

* &#x20;                                                                  P(E)= E/A+D+E

The winner is determined by the higher combat score, with outcomes affecting rewards and progression.

***

**2. Strategic Depth and Matchmaking**\
To ensure fairness, the system pairs players with opponents of similar combat potential. Matchmaking considers a ±10 range of combat scores, encouraging balanced and engaging battles. This system rewards both rarity and the player’s strategic investment in upgrades and abilities.

***

**Progression and Customization**

NFT characters can be upgraded using $HIS tokens to enhance their stats. Players can invest in improving **Attack**, **Defense**, and **Evasion**, unlocking new abilities and boosting performance. This progression system encourages continuous engagement and strategic planning.

The upgrade cost is calculated dynamically:

&#x20;                                            UpgradeCost=BaseCost×(CurrentLevel+1)

Each upgrade significantly impacts gameplay, allowing players to tailor their characters to their preferred playstyle.

***

**Economic Rewards**

Players earn $SOL and $HIS tokens by winning battles and completing missions. Rewards scale based on performance and character stats:

&#x20;                                    Reward=BaseReward×(1+ TotalRarityScore CS ​ )

Even losing players receive consolation rewards, maintaining engagement and motivation to improve.

***

**Background Mechanics Overview**

| **Attribute**   | **Effect**                               |
| --------------- | ---------------------------------------- |
| **Attack (A)**  | Determines damage dealt to the opponent. |
| **Defense (D)** | Reduces incoming damage.                 |
| **Evasion (E)** | Increases the chance to avoid attacks.   |
| **Rarity (R)**  | Influences daily dice rolls and rewards. |

These mechanics create a dynamic environment where strategic choices, upgrades, and player engagement are equally significant.

***

**Conclusion**

The combination of NFT-based mechanics, dice rolls, and strategic depth makes for an engaging and sustainable gameplay loop. By blending skill, strategy, and a balanced progression system, the game offers players a highly replayable experience while fostering a thriving in-game economy.

***

[^1]:
