🎮 Game Design & Interactive Media · interactive dialogue

SCRIPTURA · x402

Turn narrative agency into a liquid commodity. Developers integrate a headless dialogue engine where every narrative branch is a 0.01 USDC transaction. Players don't just 'play'—they stake USDC to fork the story. Writers earn real-time royalties every time a player chooses their specific dialogue path, creating a high-stakes 'pay-to-speak' ecosystem where the most compelling choices generate the highest yield.

Hedera testnet + x402 paywall· x402 native
Section · Onchain

The primitive.

full primer →

Access to the interactive dialogue engine is metered with x402: 0.01 HBAR or 0.01 HTS USDC per call, paid from the embedded wallet, so game designers — or the agents working for them — pay per query and get a HashScan receipt every time.

Why this primitiveCurrent dialogue engines are static files. By making every node an x402 call, we turn interactive fiction into a micro-transactional economy. This incentivizes quality writing (high-traffic branches) and creates a verifiable ledger of 'canon' player choices.

Kernel
an x402 v2 paywall metering access at 0.01 HBAR or 0.01 HTS USDC (token 0.0.429274) per call, paid from the embedded wallet through the relay and verified by a self-hosted facilitator against the Hedera mirror node
Drives the UI as
a 'pay 0.01 HBAR or USDC to unlock' button with a live flow log and a HashScan link for every settlement
Appendix · Secrets

Required keys.

HEDERA_OPERATOR_ID
Hedera testnet account id (0.0.xxxxxx). Create and fund it free.
open ↗
HEDERA_OPERATOR_KEY
ECDSA private key for that account, from the Hedera portal dashboard.
open ↗
REOWN_PROJECT_ID
Free project id powering the HashPack pairing modal.
open ↗
HEDERA_RPC_URL
Optional. JSON-RPC relay, defaults to the public Hashio endpoint.
open ↗
PINATA_JWT
Pins images / JSON / manifests to IPFS.
open ↗

Add these in your Lovable project under Settings → Secrets before pasting the prompt below.

Appendix · Mega-prompt

The build prompt.

Paste into a fresh Lovable project. Make sure all five secrets above are set first. read the build strategy →

Loading the mega-prompt…
Appendix · Market

Market sizing.

TAM
$18B
The global interactive media and 'serious games' market moving toward agentic, pay-per-interaction architectures.
SAM
$420M
The indie narrative game market (Steam/itch.io) transitioning to micro-session models.
SOM
$12M
Web3 visual novels and 'Choose Your Own Adventure' DAOs requiring trustless story branching.

Indicative figures for hackathon pitches — refine with your own research before raising.

See also

Adjacent entries.