Page cover

🔽HERO2QUEST

Strategic Book-to-Quest Learning Game

Strategic Book-to-Quest Learning Game

The HERO2QUEST project is an innovative gaming platform that combines elements of adventure, collection, and strategy with the use of NFTs, blockchain, and generative AI.

Here are the key points I’ve learned about the project:

  1. Heroes and Quests:

    • In HERO2QUEST, players complete quests, which require the presence of suitable heroes. These heroes are created from NFT items (ASSETS) that players earn as rewards for completing quests.

    • Each hero is unique and is created from a combination of an avatar and seven items, such as clothing, weapons, pets, and accessories. These items influence the hero's characteristics and abilities to complete quests.

  2. AI-Generated Content:

    • The platform heavily utilizes generative AI algorithms (GenAI) to create personalized quests and tasks, considering the individual preferences and experiences of players.

    • AI is also integrated to create educational scenarios that help players reflect on and discuss various topics, encouraging them to gain a deeper understanding of the world and themselves.

  3. Educational Aspect:

    • HERO2QUEST aims not only to entertain but also to educate, offering players opportunities to reassess their views on the world, history, and science through interactive and educational quests.

  4. Decentralization and Governance:

    • In the long term, the project plans to use a Decentralized Autonomous Organization (DAO) model to govern the platform, allowing the community to actively participate in decision-making and platform development.

    • The project faces the challenge of creating a sustainable and fair governance system that will preserve the project's original goals and avoid devolving into meaningless gameplay loops for profit.

  5. Blockchain-Based Economy:

    • The economy of HERO2QUEST is built on blockchain technology, using smart contracts and H2Q and QST tokens. All transactions and operations occur within the blockchain, ensuring a high level of security and decentralization.

    • Players can create and monetize their own ASSETS by digitizing their favorite books or creating new stories based on well-known narratives.

  6. Project Mission:

    • The primary goal of HERO2QUEST is to create a platform that helps players grow intellectually and cognitively, rather than becoming absorbed in meaningless games. The project is focused on combating intellectual degradation by using game mechanics to stimulate knowledge growth and self-development.

The HERO2QUEST project as a platform that combines innovative technologies with educational and entertainment elements, offering players a unique and beneficial gaming experience.


Basic Overview of the HERO2QUEST Game System

Below is a description of the key components of the system, structured by Frontend and Backend zones, which ensure the functionality of the game and user interaction.

1. Frontend Zone: Client-side of the Game

Frontend is responsible for user interaction through a web browser, providing access to various game elements and interfaces.

  1. UI-ITEMS MIXER and UI-COLLECTION:

    • UI-ITEMS MIXER: This component is an interface that allows users to create new NFT-HERO by using various items (ASSETS) collected during the game. Here, players can mix and match elements to create unique heroes.

    • UI-COLLECTION: An interface for managing created or acquired NFT-HERO collections. Users can view, organize, and evaluate their collections, giving them the opportunity to participate in quests or trade heroes on marketplaces.

  2. Event Handler:

    • This component manages requests and interactions with backend systems. The Event Handler processes requests related to quest display, checks the parameters of NFT-HERO for participation in quests, and ensures the correct display of game events on the user’s screen.

  3. UI-Gacha and UI-REWARD:

    • UI-Gacha: Provides players with access to a random reward system. Through the Gacha mechanic, players can receive various items or rewards that will assist them in further progressing in the game.

    • UI-REWARD: This interface displays the rewards that the player receives after completing quests. These rewards may include tokens, ASSETS, or elements for creating new heroes.

  4. ITEM (assets) and MIX-HERO:

    • ITEM (assets): These are elements obtained by players in quests that can be used to enhance heroes or create new ones. These items form the basis for crafting unique NFT-HERO.

    • MIX-HERO: A potential new hero created from a set of ASSETS collected during the game. Players can combine various items to create unique heroes with different parameters and abilities.


2. Backend Zone: Decentralized Program Complex

Backend ensures the functioning of all logical and mathematical models that manage the processes of quest generation, token economy, and game balance.

  1. LOGIC CORE:

    • The central component of the system, responsible for implementing a mathematical model that determines the algorithms for the emergence of new quests. LOGIC CORE takes into account game mechanics and token economy to balance the Play2Earn system, ensuring sustainable and fair resource distribution in the game.

  2. Logic Mixer:

    • The logic responsible for displaying ASSETS in the UI-ITEMS MIXER. This component processes data about items that players can use to create new NFT-HERO and integrates them into the mixer interface.

  3. Logic QUEST:

    • The component responsible for the semantics and narrative of the quests. It defines the themes, storyline, and content of the quests, ensuring they are consistent with the game world and hero parameters.

  4. Logic Gacha:

    • The logic that calculates and distributes rewards in quests. This component manages both fixed rewards stated in the quests and random rewards that appear during the game.

  5. Payout Mathematics:

    • The program that monitors the economic balance of the game. Payout Mathematics calculates optimal numerical parameters for ASSETS, QUEST, and rewards using special R-components. This ensures the stability of the in-game economy and maintains player motivation to participate in quests and create new NFT-HERO.

Randomization: Involved in character creation and mission selection to create and sometimes unpredictable game situations and ensure that each playthrough is unique in its own way.

R-components are responsible for randomizing values (assigning weights to symbols and events) for each front end node individually.


High-Level Engineering Solution

1) Design principle: on-chain execution, off-chain experience

The system is split into two circuits:

  • The on-chain circuit (Stellar + Soroban) executes the economy and records facts: hero crafting, quest entry/staking, completion, reward claiming, and asset ownership.

  • The off-chain circuit (API + index + UX) provides convenience only: it displays state, builds “views,” stores history/search/analytics, prepares transactions, and publishes UGC. The off-chain layer cannot “mint” rewards — it can only reference a tx_hash.

This ensures verifiability and portability of assets without trusting the server.


2) On-chain game model: three object types and three actions

On-chain, the game is reduced to three entity types:

  1. Tokens/assets: H2Q, QST, and in-game ASSETS (items/avatars).

  2. NFT-HERO: a single player character assembled from assets under the H2Q protocol.

  3. Quest Pools: quests implemented as short staking pools with predefined duration and reward budgets.

Gameplay logic is reduced to three atomic actions:

  • Craft: a set of ASSETS is converted into an NFT-HERO (paid in H2Q).

  • Stake: an NFT-HERO enters a selected Quest Pool for a short time window.

  • Claim: after the window ends, the hero is released and rewards are distributed.


3) Quests as short staking windows (engineering choice)

A quest is not “server-side logic,” but a short on-chain staking window (minutes → days). Why: players constantly optimize routes, and the economy should not rely on long lockups that conflict with NFT value growth/volatility. Instead of long staking, the system uses many short pools, grouped into SEASONS.


4) Rule enforcement: quest access is a verifiable condition

Quest access is implemented as an on-chain entry condition check:

  • compliance with “semantic requirements” (the hero’s items/categories),

  • hero level/parameters,

  • optional QST fee as a mechanism to manage access and progression pace.

Result: you cannot enter a quest bypassing rules, and you cannot receive rewards without a completion fact.


5) Proof layer: events as a public progress journal

Every key action emits an on-chain event, which becomes the basis for:

  • progress proofs,

  • leaderboards/digests,

  • UGC cards and posts.

Because RPC does not store events indefinitely, the architecture includes a mandatory off-chain event index (near-real-time ingest) — this is not “game logic,” but an “evidence archive.”


6) Economic construction: H2Q ↔ QST ↔ NFT-HERO

The economy is separated by function:

  • H2Q is the scarce resource that pays for creation/access and acts as the main economic asset.

  • QST is the operational access token that governs actions (fee/burn), supports quest cycles, and rewards.

  • NFT-HERO is the player asset that turns ASSETS into an “economic participant”: staking it grants reward eligibility.

This provides controllability: H2Q preserves scarcity, QST regulates pace and filters spam actions, and NFT-HERO ensures long-term utility of assets.


7) What the architecture guarantees (formally)

  • User ownership of all in-game assets (self-custody).

  • No off-chain forgery of rewards or statuses: any status = a reference to tx/event.

  • Verifiable fairness of quests: entry conditions and reward distribution are executed by contracts.

  • Scalable micro-actions enabled by Stellar (frequent small transactions without economic friction).

  • Interoperability: tokens and assets are compatible with wallets/DEX/on-ramps.

Last updated