(if: $showCover is not false)[ (set: $showCover to true) ] (if: $showCover)[ <img src="cover.png" alt="Cover" style="display: block; margin: 0 auto 20px auto; max-width: 90%; border-radius: 12px;"> ] == The Princess of Diamonds == *An interactive fairy tale* You are about to embark on a magical quest to save a cursed princess... [[Start Game]] == A Mysterious Dream == You are a young prince. One night, you dream of an old woman wrapped in silver silk. > “The Princess of Diamonds is frozen by a cruel curse,” she whispers. > “To save her, you must collect **111 real diamonds**.” What do you say? [[“Thank you, wise one. Please, tell me more.”->Polite Reply]] [[“111 diamonds? That sounds ridiculous.”->Rude Reply]] (set: $showCover to false) (set: $visitedGarden_1 to false) (set: $visitedGarden_2 to false) (set: $visitedGarden_3 to false) (set: $visitedTown_1 to false) (set: $visitedTown_2 to false) (set: $visitedTown_3 to false) (set: $visitedTown_4 to false) (set: $visitedCave to false) (set: $visitedCave_2 to false) (set: $foundSecret to false) She continues: > “You may try your luck in the **dark cave**, > search the glowing **crystal garden**, > or make deals in the bustling **merchant town**. > Each path hides treasure... or tricks.” She smiles mysteriously, then fades into shimmering smoke. [[Go to the Map]] == Choose Your Path == You stand at the edge of the kingdom, where three enchanted paths lie before you. You currently carry **$diamonds diamonds**. --- > The old woman's voice echoes in your mind: > *“Each path opens to you only once. Greedy feet are not rewarded twice.”* --- (if: $visitedCave is false)[ [[Explore the Cave]] ] (else:)[ <span class="visited-note">✅ Explore the Cave (already visited)</span> ] (if: not ($visitedGarden_1 and $visitedGarden_2))[ [[Visit the Crystal Garden]] ] (else:)[ <span class="visited-note">✅ You’ve already explored all the crystal flowers.</span> ] (if: not ($visitedTown_1 and $visitedTown_2 and $visitedTown_3))[ [[Go to the Trade Town]] ] (else:)[ <span class="visited-note">✅ You’ve already made all your deals in the town.</span> ] [[Check Final Gate]] (if: not $foundSecret)[ (link: "Look around quietly")[ (set: $foundSecret to true) (go-to: "Silent Pond") ] ] (set: $visitedCave to true) == Explore the Cave == You step into the mouth of the cave. It’s cold, damp, and eerily quiet. As you walk deeper, your foot slips—but instead of falling into darkness… > You land on a pile of glittering stones! ✨ You found **15 diamonds**! (set: $diamonds to $diamonds + 15) (if: not $visitedCave_2)[ [[Follow the echoing tunnel deeper->Cave Penalty]] ] [[Return to Map]] == Crystal Garden == You enter a hidden valley bathed in moonlight. Glowing crystal flowers bloom across the field—some shimmer blue, others glow purple. Choose carefully—each path is delicate and won't bloom again. (if: $visitedGarden_1 is not true)[ [[Pick the blue ones on the left->Pick Blue Flowers]] ] (else:)[ <span class="visited-note">✅ You already picked the blue flowers.</span> ] (if: $visitedGarden_2 is not true)[ [[Pick the purple ones on the right->Pick Purple Flowers]] ] (else:)[ <span class="visited-note">✅ You already picked the purple flowers.</span> ] (if: not $visitedGarden_3)[ [[Touch the strange black flower->Garden Penalty]] ] [[Return to Map]] == Merchant Town == You walk into a noisy marketplace filled with smells, shouting, and shiny goods. A mysterious merchant approaches you. > “Diamonds? I might have some... but nothing’s free.” Choose your deal: (if: $visitedTown_1 is not true)[ [[Offer your royal medallion->Trade Normally]] ] (else:)[ <span class="visited-note">✅ You already traded your medallion.</span> ] (if: $visitedTown_2 is not true)[ [[Try to charm him into a discount->Smooth Talk]] ] (else:)[ <span class="visited-note">✅ You already tried sweet talking him.</span> ] (if: $visitedTown_3 is not true)[ [[Threaten him with your royal title->Royal Threat]] ] (else:)[ <span class="visited-note">✅ You already tried intimidation. It didn’t help much.</span> ] (if: not $visitedTown_4)[ [[Refuse to trade with anyone->Town Penalty]] ] [[Return to Map]] You return to the crystal chamber. The Princess lies still, encased in shimmering ice. The sacred bowl awaits your offering... (if: $diamonds >= 111)[ You pour the diamonds into the bowl. Light bursts out, melting the ice! The Princess opens her eyes. > “You did it,” she whispers. “You broke the curse.” **You saved her.** 👑 **You Win! 🎉** [[Play Again->Restart]] ] (else:)[ You pour your diamonds into the bowl… but nothing happens. > You only have $diamonds diamonds. You need 111. The curse is not yet broken... [[Return to Map]] [[Restart the Game->Restart]] ] (go-to: "Go to the Map") She smiles kindly. > “Ah, such respect. You may succeed yet.” She waves her hand, and glowing paths appear in the air... [[Ask the old woman more]] She narrows her eyes. > “A prince without patience is a prince without a princess.” Suddenly, the dream grows colder. > “Still, you must try. Even fools need quests.” [[Ask the old woman more]] (set: $visitedTown_1 to true) == Trade with Honor == You hand over your royal medallion without complaint. The merchant smiles and gives you a heavy pouch. ✨ You receive **30 diamonds**. (set: $diamonds to $diamonds + 30) [[Return to Map]] (set: $visitedTown_2 to true) == A Prince with Style == You grin and say, > “Surely someone as generous as you could spare a few gems... for a good cause?” The merchant laughs loudly. > “Fine, fine! But only because I like your face.” ✨ You get **28 diamonds**. (set: $diamonds to $diamonds + 28) [[Return to Map]] (set: $visitedTown_3 to true) == The Wrong Approach == You stand tall: > “I am the crown prince! Hand them over or face royal consequences!” The merchant glares. > “Try that tone again and you’ll leave with nothing.” You walk away embarrassed. ✨ You get **10 diamonds** out of pity. (set: $diamonds to $diamonds + 10) [[Return to Map]] (set: $visitedGarden_1 to true) == Blue Crystals == You gently pick a few blue crystal flowers. As they touch your hand, they chime softly like tiny bells and dissolve into gems. ✨ You gather **20 diamonds** from the petals. (set: $diamonds to $diamonds + 20) [[Return to Map]] (set: $visitedGarden_2 to true) == Purple Crystals == You reach for the glowing purple blooms. They burst in a small puff of sparkles—and more diamonds than you expected scatter to the ground. ✨ You collect **30 diamonds**. Lucky! (set: $diamonds to $diamonds + 30) [[Return to Map]] (go-to: "Start")== The Silent Pond == You walk off the path, following nothing but a strange stillness. The air grows quiet. The wind stops. Even your heartbeat seems to fade. You find a pond, perfectly still. At its edge sits a small creature—something like a frog, but silver, and motionless. You sit beside it. You say nothing. It says nothing. > And yet, you feel... heard. A few moments pass. The creature blinks once, then vanishes, leaving behind a small glass orb filled with light. ✨ You feel lighter. You feel... understood. **You gained 9 diamonds.** (set: $diamonds to $diamonds + 9) [[Return to Map]] (set: $visitedCave_2 to true) == The Echo Tunnel == You follow the sound of your own footsteps... Deeper... deeper... Until you realize the echoes were **leading you in circles**. You trip and drop some diamonds in the darkness. 💥 You lost **10 diamonds**. [[Return to Map]] (if: $diamonds >= 10)[ (set: $diamonds to $diamonds - 10) ] (else:)[ (set: $diamonds to 0) ](set: $visitedGarden_3 to true) == A Beautiful Mistake == You reach out to the black flower—it glows with unnatural light. As you touch it, it bursts into ash. Nothing remains. Not even gems. Your fingertips sting. > Some beauty is just a warning. You gain nothing. [[Return to Map]] (set: $visitedTown_4 to true) == The Proud Prince == You walk through the town, nose held high. You offer nothing. You ask for everything. The merchants look at one another... and close their shops. > “No deals for the proud,” someone mutters. You gain nothing. [[Return to Map]]