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?
Ghost hotel
by
Purple
Played 36 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Ghost Hotel" the maximum score is 30. The bathroom is a room. "You wake up in the bathroom after a long night of work. The room is bright and it takes awhile for your eyes to adjust. You stand up to see the clean hotel sink and a strange bottle laying on the counter. Around you is the shower, which you haven’t used yet, and the toilet, which you were sitting on when you woke up. To the west is your hotel room" in the bathroom is a toilet and a shower. the toilet is fixed in place. the shower is fixed in place. the description of the sink is "A fancy deep sink decorated with a golden spout and silent twisting knobs." the description of the toilet is "A standard ceramic toilet. Above is a sign that reads 'DO NOT FLUSH'. Don't break it." the description of the shower is "A walk in shower big enough for a comfortable bath." The sink is a supporter. The sink is scenery. The sink is in the bathroom. the bottle is an object. the bottle is an openable container. Instead of opening the bottle, say "The bottle is filled with normal looking water. Is it truly holy?" The bottle is on the sink. The description of the bottle is "A wine bottle filled with clear liquid. There is a piece of paper taped onto it saying 'holy water'". The bottle can be full, half-full, or empty. The bottle is full. The bottle has a number called ml of water. The ml of water of the bottle is 200. Every turn: if the ml of water of the bottle is 0: now the bottle is empty; now the description of the bottle is "A wine bottle filled with clear liquid. There is a piece of paper taped onto it saying 'holy water'. The bottle is empty now, you should probably refill it." every turn: if the ml of water of the bottle is 100: now the bottle is half-full; now the description of the bottle is "A wine bottle filled with clear liquid. There is a piece of paper taped onto it saying 'holy water'. The bottle is half-full, you can attack again" every turn: if the ml of water of the bottle is 200: now the bottle is full; now the description of the bottle is "A wine bottle filled with clear liquid. There is a piece of paper taped onto it saying 'holy water'. The bottle is full." Refilling is an action applying to two things. Understand "fill [something] in [something]" and "refill [something] in [something]" as refilling. Check refilling: if second noun is the swimming pool: if the bottle is half-full: increase the ml of water of the bottle by 100; say "You refilled the bottle. the bottle is now full"; if the bottle is empty: increase the ml of water of the bottle by 200; say "You refilled the bottle. the bottle is now full"; if the bottle is full: say "You can't refill the bottle right now."; otherwise: say "You can't refill it with that." instead. the bathroom door is a closed door. the bathroom door is west of the bathroom. hotel room is west of the bathroom door. the hotel room door is a closed locked door. the room key unlocks the hotel room door. The hotel room door is north of the hallway. The hotel room door is north of the hotel room. the hallway is a room. "You walk out into the dim hotel hallway. The walls are lined with lamps that make it difficult to see at night. As you walk down the patterned carpet, you notice that all the room doors say ‘vacant’. Along the end of your walk, is a bright red vending machine and an ice machine, humming softly, positioned across from each other. To the south is the lobby" The hotel room is a room. "You step into your brightly lit hotel room. To your right, the bed you slept in yesterday looks perfectly made, a subtle reminder of your night. On your left, the small cupboard where you placed your key when you first arrived stands. Beside you is the desk, you did your work on the day before, only now there is something on it. Out of the corner of your eye, the safe catches your attention, its door is tightly locked, though nothing should be stored at the moment. You think it's very quiet in the hotel, too quiet. You turn to get your keys, only to realize they are missing. Maybe you should look around? The hallway is to the south." In the hotel room is a desk. The drawer is part of the desk. The desk is fixed in place. The drawer is a closed, opaque openable container. in the drawer is a block. The word is part of the block. in the hotel is a cupboard. the cupboard is a closed openable container. the cupboard is fixed in place. in the cupboard is a yellow cup, a blue cup, and a pink cup. The carving is part of the blue cup. the description of the cupboard is "A small cupboard painted white, stuck to the right wall. It has two brass knobs holding the doors together." the description of the desk is "it is a nice wooden writing desk. under is small drawer attached on the side. There is a thick book on the desk." the description of the yellow cup is "its a translucent yellow cup made of glass. it doesn't seem useful." the description of the pink cup is "its a light pink plastic cup. it doesn't seem useful." the description of the rug is "it's a large round purple rug placed in the center of the room." the rug is in the hotel room. The bed is in the hotel room. The description of the bed is " a queen sized bed with a dark wooden frame and backboard. The cream coloured sheet is neatly folded and tucked in. There are some green decorative pillows layed out near the front. You shouldn't disturb it though. You had a good night's sleep on the soft squishy mattress of the hotel bed. But you can't go back to sleep now." The ceiling is in the hotel room. The paint is part of the ceiling. The description of the ceiling is "you look up at the ceiling and into the bright light of the fixture. Once your eyes adjust, you can barely make out the words 'ae o u oo' written in red 'paint.'" The description of the paint is "you think it's red paint. It says 'ae o u oo', but you don't know what that means." an object can be found or lost. the slip of paper is lost. instead of looking under the bed when slip of paper is lost: now slip of paper is found; move slip of paper to player; say "you look under the bed and find a small slip of paper." instead of looking under the microwave when dollar coin is lost: now dollar coin is found; move dollar coin to player; say "you look under the microwave and find a gold dollar coin taped to the underside of the microwave." The slip of paper is an object. the dollar coin is lost. understand "coin" as dollar coin. The writing is part of the slip of paper. The description of the slip of paper is "It's a thin slip of crumpled white paper. You see writing on the back." The description of the writing is "2" Instead of eating the slip of paper, say "you try but it doesn't taste good. you spit it out." The description of the block is "It's a light wooden building block with scratched blue paint on all sides. You see a word in blue on the top." The description of the word is "5" Instead of eating the block, say "you try but it doesn't taste good. you spit it out". The description of the blue cup is "A normal ceramic mug. There is a carving on the bottom." The description of the carving is "3" Instead of eating the blue cup, say "you try but it doesn't taste good. you spit it out". The book is on the desk. The page is part of the book. The description of the book is "a normal fiction book. there is a single page sticking out from the rest." The description of the page is "7" Instead of eating the book, say "you try but it doesn't taste good. you spit it out". in the hotel room is a safe. the safe is a closed, locked, opaque container. the safe is fixed in place. in the safe is the room key. The description of the safe is "It's safe on the left side of the room, small enough to see out of the corner of your eye. It has with a dial on the front. To open it you need to spin the dial to the correct code." Description of the dial is "It is a smoothly turning dial up to 20. The combination is 4 digits." Understand "dial" as the Safe. Spinning it to is an action applying to one thing and one number. Check spinning it to: if the noun is not the Safe, say "[The noun] does not spin." instead. Report spinning it to: say "Click! and nothing else happens." Understand "spin [something] to [a number]" as spinning it to. After spinning the closed Safe to 2537: now the Safe is open; say "Click! The safe door swings open, revealing [a list of things in the Safe]." Test me with "open safe / spin safe to 1131 / open safe / spin safe to 1384 / x safe / get key". the hotel room is north of the hotel room door. the hallway is south of the hotel room door. In the hallway is a vending machine. the vending machine is a container. in the hallway is an ice machine. the ice machine is fixed in place. the description of the ice machine is "A large white ice dispenser. It's making a humming noise and you can feel the cold on your skin just from standing near it. There doesn't seem to be much else to it." the description of the vending machine is "It's a red vending machine near the end of the hallway. a sign on top is neon lettering reads '1$'. Inside you can see a box of milk, a can of soda, a hammer and a large stone, though it seems too big to get out of the machine. You need a dollar coin to use the machine. " The milk is in the vending machine. the soda is in the vending machine. the hammer is in the vending machine. the stone is in the vending machine. Instead of taking the hammer: If the dollar coin is carried by the player: Say “you put the coin in the machine and it spits out a clean metal hammer. You reach down to pick it up”; Move hammer to player; Otherwise: Say “you need a dollar coin for that” Instead of taking the milk: If the dollar coin is carried by the player: Say “do you really want to use your only coin on water?” Otherwise; Say “you need a dollar coin for that” Instead of taking the soda: If the dollar coin is carried by the player: Say “do you really want to use your only coin on soda?” Otherwise; Say “you need a dollar coin for that” Instead of taking the stone: If the dollar coin is carried by the player: Say “do you really want to use your only coin on a rock? you won't be able to pick it up anyway.” Otherwise; Say “you need a dollar coin for that” the lobby is a room. "As you make your way to the usually lively lobby, an unsettling silence develops. With each step, you realize you’re all alone in the hotel, except for the few strange figures wandering aimlessly, unfazed by the situation you found yourself in. You glance toward the main desk, behind sits a rack of keys. To the west is the pool. To the east is the dining hall. To the south is the exit." the lobby is south of the hallway door. the hallway door is a closed door. the hallway door is south of the hallway. The exit door is a closed locked door. The exit door is south of the lobby. the exit key unlocks the exit door. in the lobby is the main desk. the main desk is fixed in place. the green box is a thing in the lobby. the green box is a closed locked openable container. the riddle 1 is part of the green box. in the box is a blue box. the blue box is a closed locked openable container. the riddle 2 is part of the blue box. in the blue box is the red box. the red box is a closed locked openable container. the riddle 3 is part of the red box. The rack of keys is in the lobby. The description of the main desk is "its a dark wooden desk matching the colour of your surroundings. There is glass covering the front with a hole near the bottom. On the desk is a smooth green metal box. It looks like it doesn't belong here. Behind the desk is a rack of keys. You can see 1o. There is no one at the desk, you wonder what happened to them." The description of the rack of keys is "it is a metal rack full of hotel room keys. There would be no point in taking them, you don't see the exit key or master key anywhere." Instead of examining the green box: Say "you reach your hand to the mysterious box, when the sides start glowing a ghostly green as it begins to speak. 'You have found my puzzle. You must answer my questions or pay the price for your lack of skill. Now answer the riddle or else. What is a ghosts favorite dessert?'" the description of the riddle 1 is "what is a ghost's favorite dessert? answer the riddle or else." the description of the blue box is "it begins to speak 'You did good but there is still more to play. What room do ghosts avoid? I know you won't be able to solve this one.'" the description of the riddle 2 is "Where is the only place where today comes before yesterday? answer the riddle or else." the description of the red box is "it begins to speak 'you made it through my last and final riddle. If you're able to solve this, i will grant you a key, but it won't be easy. I am easy to lift, but hard to throw. What am I?'" the description of the riddle 3 is " I am easy to lift, but hard to throw. What am I? answer the riddle or else." Understand "ice scream" or "say ice scream" or "answer ice scream" as casting abc. Casting abc is an action applying to nothing. Carry out casting abc: move the blue box to the player. Report casting abc: say "the answer to the riddle is correct. you will now be given the blue box." Understand "the dictionary" or "say dictionary" or "answer dictionary" or "dictionary"as casting bbc. Casting bbc is an action applying to nothing. Carry out casting bbc: move the red box to the player. Report casting bbc: say "the answer to the riddle is correct. you will now be given the final box, the red box." Understand "feather " or "say feather" or "answer feather" or "a feather" as casting cbc. Casting cbc is an action applying to nothing. Carry out casting cbc: move the kitchen key to the player. Report casting cbc: say "the answer to the riddle is correct. you will now be given the kitchen key." the pool room is a room. "Walking in, you smell the deep scent of chlorine emitting from the still untouched pool, while the adjacent hot tub doesn't seem to be on right now. The floor is tiled and clean of any spills or accidents. To the side, you see a pool noodle left behind by someone else and lounges that line the long side of the pool, dry and tilted, like someone forgot to put them back. In the middle of the pool, you spot a drain, though you can't reach it. This pool is the only water here, maybe you can refill something here? To the east is the lobby." the pool room is west of the pool door. the pool door is a closed door. the pool door is west of the lobby. In the pool room is a swimming pool. The swimming pool is a container. In the pool room is a pool noodle. In the pool room is a drain. in the pool room is the lounges. understand "pool" as swimming pool. the description of the swimming pool is "A pool fills most of the space in the room. It has a shallow end and deep end, and even a hot tub on the side. You would love to, but you can't swim right now." The description of the pool noodle is "It is a blue foam pool noodle. There is nothing inside" the description of the lounges is "Five pool chairs line the edge of the pool. They are very comfortable, but there is no time to relax." The description of the drain is "The drain is an the bottom of the pool. You can't reach it and you don't want to swim down." Water is in the pool. the dining hall is a room. "The dining hall is just as empty as the lobby. Fancy tables and extravagant lighting scatters the interior of the room. In the dimmed lighting, you can make out the faint outline of what looks like a ghost, standing on top of a table, but you can't make out what it is. You should investigate. To the east is the kitchen. To the west is the lobby." the dining hall is west of the dining hall door. the dining hall door is a closed door. the dining hall is east of the lobby. The food door is east of the dining hall. the kitchen is a room. "The kitchen is quite messy compared to the rest of the hotel. Piles of dirty dishes overwhelm the sinks, making it impossible to see anything or even touch them without knocking them over. The oven looks rusted and old, though it looks like it's been used recently. Despite the clutter, the microwave looks brand new. The fridge looks well maintained, taking out a quarter of the room. To the east is the freezer room. To the west is the dining hall." the kitchen is east of the food door. the food door is a closed locked door. the kitchen key unlocks the food door. In the dining room is the tables. In the dining room is the chairs. Understand “table” as the tables. Understand “chair” as the chairs. the dollar coin is an object. the description of the tables is "Many round glass table are scattered around the room. Each topped with four expensive looking plates and silverware of different sizes, perfectly organized so the napkin underneath is barely visible." the description of the chairs is "Four chairs are positioned around each table. Made of metal with a soft backing, they pair well with the low tables." The freezer room is a room. "You step over the shattered glass and into the ice cold freezer. Ice forms along the sides of the wall. A misty fog envelops everything you see." The freezer room is east of the freezer door. The freezer door is a closed locked door. the freezer door is east of the kitchen. In the freezer is a rack of meats. Meat is an object in the freezer room. the description of the rack of meats is "The rack is lined with high quality meats from animals. If you need it, you should take some quickly before it gets too cold." the description of the meat is "A cut of meat from the freezer. You don't know what kind it is though." The description of the freezer door is “it is a glass door. You can see the ice on the walls and meat hanging from a rack on the other side.” After reading a command: If the hammer is carried by the player: if the player's command includes "glass/window/door" and the player's command includes "toss/throw/smash/use" and the player's command includes "hammer": say "The freezer door shatters and you're hit with a gust of cold air as it seeps through and into the kitchen."; Now the freezer door is unlocked; Now the freezer door is open. The block giving rule is not listed in the check giving it to rules. talking to is an action applying to one thing. understand "talk" or "talk to" or "talk to [someone]" as talking to. in the dining hall is a person called ghost. The description of the ghost is “The pale ghostly figure looms above a table. You don't know how they're on the table as you don't see any legs poking out from under the clean white sheet draped over their body. You can hear faint mumbling coming from the ghost.” instead of talking to ghost: say "The ghost speaks in a high pitched voice 'I'm hungry. Could you make me some food? I will give you something in return.'" understand "fridge" as refrigerator. in the kitchen is a refrigerator. the refrigerator is a closed openable container. in the refrigerator is the tomato. in the refrigerator is the potato. in the refrigerator is the cucumber. in the refrigerator is the carrot. in the refrigerator is the zucchini. in the kitchen is a cabinet. the cabinet is a closed openable container. in the cabinet is a deep pan. in the kitchen is an oven. the oven is a closed openable container. the oven switch is a device. the oven is fixed in place. the oven is switched on. the oven can be switched on or switched off. The microwave is in the kitchen. The microwave is an openable container. The microwave is fixed in place. the description of the cabinet is "Long cabinets line the tops and bottoms of the kitchen. Unlike the one in your room, these look like they're in worse condition. You might find something in here." the description of the oven is "A large oven with many settings that don't make any sense to you. It looks like it hasn't been used in a while." the description of the deep pan is "It's a single deep metal pan used for cooking large quantities of food at a time. The pan fits perfectly in the oven." the description of the fresh stew is "A dish you made with meat from the freezer. You hope the ghost will like your cooking." the description of the fresh veggie roast is "A dish you made using the veggies found in the fridge. You hope the ghost will like it." the description of the fridge is "A big industrial fridge. There might be something you could use inside." The description of the microwave is “A big powerful microwave meant for heating up large plates of food, though it doesn't seem to be working right now.” fresh stew is an object. fresh stew is edible. fresh veggie roast is an object. fresh veggie roast is edible. giving is an action applying to two thing. understand "give" or "give to" or "give [something] to [someone]" as giving. after giving fresh stew to ghost: say "the ghost looks happy and says 'yay. I haven't eaten for years. this food is so good. you can have this key i found as a reward.' "; move exit key to player. after giving fresh veggie roast to ghost: say "the ghost looks angry and says 'this isn't what I wanted. you will pay for this. AAAAAA.'"; end the story. the deep pan is an open portable container. the deep pan has carrying capacity 5. the deep pan is edible. Understand "[something related by containment] in a deep pan" as the deep pan. Rule for printing the name of the deep pan while not inserting or removing: if the deep pan contains something (called filling), say "[filling] filled deep pan"; otherwise say "deep pan"; omit contents in listing. The taking action has an object called source (matched as "from"). Setting action variables for taking: now source is the holder of the noun. Report taking something from the deep pan: say "You pick [the noun] out of the deep pan." instead. the tomato is edible. the zucchini is edible. the cucumber is edible. the potato is edible. the leek is edible. the carrot is edible. instead of inserting the deep pan into the oven: if the deep pan contains the meat: move fresh stew to player; say "you cooked some delicious smelling fresh stew. the ghost will love it."; if the deep pan does not contain the meat: move fresh veggie roast to player; say "you made some tasty smelling fresh veggie roast. the ghost will love it." A person has a number called maximum hit points. A person has a number called current hit points. The maximum hit points of the player is 2. The current hit points of the player is 2. The maximum hit points of the possessed man is 1. The current hit points of the possessed man is 1. The maximum hit points of the possessed woman is 2. The current hit points of the possessed woman is 2. The maximum hit points of the possessed child is 1. The current hit points of the possessed child is 1. The possessed child is edible. The possessed man is edible. The possessed woman is edible. Attacking it with is an action applying to two things. Understand "attack [something] with [something]" as attacking it with. Check attacking it with: if bottle is carried by the player: if bottle is not empty: say "You hear the ghost scream out in a distorted voice 'NOOOooo', as the spirit is ripped from it's body, leaving the body unconscious."; increase score by 10; decrease ml of water of bottle by 100; Remove noun from play; if bottle is empty: say "You don't have any more water."; if bottle is not carried by player: say "you try attacking, but you just fall right through it." Possessed man is a person in the lobby. Every turn: if possessed man is in a room (called the current space): let next space be a random room which is adjacent to the current space; if possessed man is visible, say "the possessed man heads to [the next space]."; move possessed man to next space; if possessed man is visible, say "possessed man arrives from [the current space]." Possessed woman is a person in the pool. Every turn: if possessed woman is in a room (called the current space): let next space be a random room; if possessed woman is visible, say "the possessed woman heads to [the next space]."; move possessed woman to next space; if possessed woman is visible, say "possessed woman arrives from [the current space]." Possessed child is a person in the hallway. Every turn: if possessed child is in a room (called the current space): let next space be a random room; if possessed child is visible, say "the possessed child heads to [the next space]."; move possessed child to next space; if possessed child is visible, say "possessed child arrives from [the current space]." after opening the exit door: if score is not 30: say "you escaped the hotel with your life, but didn't exorcise all the possessed guests, trapping their souls outside their body's for eternity."; end the story instead; otherwise: say "you escaped the hotel and exorcised all the ghosts in the hotel. good job."; end the story.