Home
Start a new game
Explore games
Help
Log in or sign up
Log in
Username
Password (
Forgot it?
)
×
New to Playfic?
Full Name
Email
Username
Password
Password (confirm)
Are you sure about this?
Cave Living Room with Back Story
by
Dr. Ion Florescu
Played 16 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Red Dwarf's Revenge" by Ion Florescu The story headline is "A humorous fantasy adventure about revenge, ducks, and dwarves." The Cave Living Room is a room. "A cozy but somewhat smoky cave chamber. A rough-hewn table, a bed of straw, and a cracked mirror dominate the space." The Red Dwarf is a man in the Cave Living Room. The player is the Red Dwarf. The description of the player is "Short, grumpy, but surprisingly stylish. Currently rubbing [if remembering the past is false]his eyes after a very unpleasant dream[otherwise]his temples, still processing the memories[end if]." A mirror is in the Cave Living Room. The description is "It's cracked but still reflects a surprisingly heroic-looking dwarf. You wonder who that could be." A straw bed is in the Cave Living Room. The description is "A rough bed stuffed with straw. It doesn't look comfortable, but it's home." The raven is an animal in the Cave Living Room. The description is "A black raven with unsettlingly intelligent eyes. It stares at you like it knows your secrets." The raven can be wizard-form or bird-form. The raven is bird-form. Remembering the past is a truth state that varies. Remembering the past is false. Understanding the task is a truth state that varies. Understanding the task is false. Instead of examining the mirror for the first time: say "You stare at your reflection... Suddenly, memories flood back — your uncle, the castle, the green dwarf..."; now remembering the past is true. After examining the mirror when remembering the past is true and the raven is bird-form: say "The raven croaks. Then, before your astonished eyes, it transforms into a bearded wizard in a pointy hat!"; now the raven is wizard-form; say "'Greetings, Red Dwarf,' says the Wizard. 'It is time to reclaim what was stolen.'"; now understanding the task is true. [--- TALKING ACTION ---] Talking to is an action applying to one visible thing. Understand "talk to [someone]" as talking to. Understand "talk [someone]" as talking to. [alternative phrasing] Understand "wizard" as the raven when the raven is wizard-form. Understand "raven" as the raven. Carry out talking to the raven: if the raven is bird-form: say "The raven croaks enigmatically. Maybe it knows more than it lets on."; otherwise: say "'Listen well, Red Dwarf,' says the Wizard. 'I must tell you the story of your past.'"; follow the wizard-story rule. Report talking to someone when the noun is not the raven: say "You attempt a conversation with [the noun], but it either ignores you or speaks in riddles.". [--- SIMULATED PAUSE ---] To show pause: say "[line break][bracket]Press RETURN to continue.[close bracket][paragraph break]". [--- THE WIZARD'S STORY ---] This is the wizard-story rule: say "[paragraph break]The Wizard begins: 'Once upon a time there were two brothers who grew up together in a wonderful castle. They were educated by their good-hearted uncle, who taught them kindness and wisdom. One brother wore red, the other green. Why green? Because his heart was already tinted by greed.'[paragraph break]"; show pause; say "The Wizard continues: 'But greed darkens even the brightest halls. One day, the Green Dwarf murdered your uncle out of envy and stole all the family treasures — ten in all: the Map of the World of Good Ideas, the Silver Pickaxe of Glory, the Ruby Hammer of Light, the Emerald Crown, the Golden Goblet of Songs, the Sapphire Flute, the Onyx Shield, the Book of Fire, the Feather of the White Duck, and the Crystal Heart of the Mountain.'[paragraph break]"; show pause; say "The Wizard finishes: 'You, the Red Dwarf, barely escaped the burning castle. You fled to the dwarven village, where you have lived in this humble cave ever since. But the time for hiding is over. Seek the treasures. Rebuild what was lost.'[paragraph break]"; now understanding the task is true. [--- TREASURES ---] A map of the world of good ideas is a thing. The description is "A large parchment map inked with strange symbols and sketches of places that might exist — or might be dreams. In the corner, a note reads: 'For those who still believe in better things.'" A silver pickaxe is a thing. The description is "The Silver Pickaxe of Glory — said to split stone with a song." A ruby hammer is a thing. The description is "The Ruby Hammer of Light, glowing faintly with inner fire." An emerald crown is a thing. The description is "A crown set with flawless emeralds, symbol of dwarven rule." A golden goblet is a thing. The description is "The Goblet of Songs, which sings when filled with ale." A sapphire flute is a thing. The description is "A flute carved from pure sapphire. Its tone can calm storms." An onyx shield is a thing. The description is "The Onyx Shield, forged from black stone, unbreakable." A book of fire is a thing. The description is "An ancient tome, its pages flickering with magical flame." A feather of the white duck is a thing. The description is "A single glowing feather from the mythical White Duck of the North. Don't laugh — its power is real." A crystal heart is a thing. The description is "The Crystal Heart of the Mountain, beating slowly with a pulse of light." All the treasures are privately-named things. [--- DISCOVERY UNDER THE BED ---] Instead of looking under the straw bed: if the player does not carry the map of the world of good ideas: say "You lift the straw and find a folded parchment! It's the [map of the world of good ideas]."; now the player carries the map of the world of good ideas; else: say "You already took the only thing worth finding there."; [--- READING THE MAP ---] Reading is an action applying to one thing. Understand "read [something]" as reading. Carry out reading the map of the world of good ideas: say "You carefully unfold the parchment. Faded ink reveals a winding path through strange names — Duck Hill, the Forest of Forgetting, the Library of Fire, the Castle of Greed.[line break]A red mark circles the first place: The Hill of Bad Ducks. Beneath it, someone has scribbled: 'Start here. Follow the quacks.'"; Carry out reading something (called the item): if the item is not the map of the world of good ideas: say "You study [the item] for a moment, but it doesn't seem to contain anything readable."; Test me with "x mirror / talk to wizard / look under bed / read map".