> 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/dual-earning-mechanics.md).

# 📈 Dual Earning Mechanics

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

Histoxel integrates two complementary reward systems—**Play-to-Earn (P2E)** and **Rent-to-Earn (R2E)**—that empower both active players and NFT holders to benefit from the ecosystem. By combining strategic gameplay mechanics with an efficient NFT leasing model, Histoxel ensures accessibility, sustainability, and long-term engagement.

***

#### **Play-to-Earn (P2E): Rewarding Active Participation**

Histoxel’s P2E model incentivizes players to engage with the game through battles, missions, and events. Players earn $SOL and $HIS tokens based on their performance, creating tangible rewards for strategic gameplay.

**Core Mechanics**

1. **Dice-Based Combat**

   * Players roll dice, influenced by their NFT's rarity and attributes, to determine the combat outcome.

   * The combat resolution formula:

   * &#x20;                  OutcomeScore=(DiceRoll×AttributeMultiplier)+NFTBonus

   * DiceRoll: Random roll based on the player’s NFT.

   * AttributeMultiplier: Weighted factors for attack, defense, and evasion.

   * NFTBonus: Additional bonuses from NFT upgrades or rarity.

   * Victory rewards are allocated using:

   * BaseReward: Predetermined token value for the battle.

   &#x20;      &#x20;

   * &#x20;                         Reward=BaseReward×( WinnerScore /TotalScore )

2. **Mission-Based Rewards**

   * Players undertake historically inspired missions requiring strategic planning and teamwork.
   * Mission success is determined by:&#x20;

   &#x20;                            MissionSuccessRate=  CompletedObjectives / TotalObjectives

* Rewards scale with the success rate and mission difficulty, encouraging efficient planning and collaboration.

1. **Progression System**
   * Players can enhance their NFTs using $HIS tokens, improving attack, defense, and evasion stats or unlocking exclusive abilities.
   * Upgraded NFTs yield higher rewards in battles and missions.

**Key Benefits**

* **Dynamic Engagement:** Regular updates introduce new missions and events, fostering long-term participation.
* **Skill-Based Economy:** Rewards align with effort and strategy, creating a merit-driven ecosystem.
* **Economic Flexibility:** Players can reinvest earnings into upgrades or trade tokens for real-world value.

***

#### **Rent-to-Earn (R2E): Maximizing NFT Utility**

For players who cannot actively participate, Histoxel introduces an **NFT Leasing System**, enabling passive income generation while expanding the player base.

**How It Works**

1. **Leasing Mechanism**
   * NFT holders lease their assets to active players via an automated smart contract.
   * Terms of the lease include:
     * Duration of use.
     * Share of rewards (e.g., 30% to the lender, 70% to the player).
   * Smart contracts ensure secure and transparent reward distribution.
2. **Token Flow in Leasing**

   * Active players use the leased NFT in battles and missions, generating rewards.
   * The smart contract splits earned tokens:&#x20;

   &#x20;                                   LenderReward=TotalEarnings×LenderShare

&#x20;                                           PlayerReward=TotalEarnings−LenderReward

1. **NFT Accessibility for Non-Holders**
   * Players without NFTs can lease high-rarity assets, enabling them to compete effectively.
   * The leasing system ensures a steady influx of new participants while maintaining demand for NFTs.

***

#### **Integrated Benefits: P2E + R2E**

The synergy between P2E and R2E models creates a balanced ecosystem:

1. **Revenue Opportunities for All**
   * Active players earn rewards by participating in battles and missions.
   * NFT holders earn passive income through leasing.
2. **Scalability and Accessibility**
   * Non-holders can enter the game via leasing, broadening the player base.
   * High-demand NFTs maintain their value due to accessibility and utility.
3. **Sustainable Economy**
   * The dual-reward system balances token circulation, ensuring stability and long-term viability.

***

#### **Technical Summary**

<table data-header-hidden><thead><tr><th></th><th width="197"></th><th></th></tr></thead><tbody><tr><td><strong>Mechanic</strong></td><td><strong>Formula/Logic</strong></td><td><strong>Outcome</strong></td></tr><tr><td>Dice-Based Combat</td><td>OutcomeScore=(DiceRoll×AttributeMultiplier)+NFTBonus</td><td>Strategic combat with token rewards</td></tr><tr><td>Mission Success</td><td><p>MissionSuccessRate=</p><p>CompletedObjectives ​/ TotalObjectives </p></td><td>Proportional token rewards based on success</td></tr><tr><td>Leasing Rewards</td><td>LenderReward=TotalEarnings×LenderShare</td><td>Revenue for NFT holders</td></tr></tbody></table>

By interweaving active and passive income mechanisms, Histoxel delivers a dynamic and rewarding experience for all participants, ensuring both engagement and sustainability.


---

# 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://histoxel.gitbook.io/histoxel/histoxel-game/dual-earning-mechanics.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.
