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?
Castle Escape!
by
Argini L.
Played 1,410 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Castle Escape!" After printing the banner text, say "[line break][italic type]My Master in a Month Project 2018![roman type][line break]". [Room #1: Setup - DONE] The Setup is a room. "[If the Setup is unvisited]You are in a room. It has four white walls, and is empty, except for a sign, and an open space to proceed to the next room. You somehow know that this next room is to your south.[end if][if the Setup is visited]You're back in the first room. The Dungeon is to your south." The sign is in the Setup. The sign is fixed in place. "[if the Setup is unvisited]If you're confused, you should probably try reading the sign. Use LOOK SIGN.[end if][if the Setup is visited]There is a sign." The description of the sign is "The sign reads:[line break] 'Hello! You are in a Playfic story! If you know how Playfic works and how to use commands, leave the room and begin the story. If you don't know what to do next, type HELP in the chat!'" [Room #2: Dungeon - DONE] The Dungeon is south of the Setup. "[if the Dungeon is unvisited]Once walking through the open entryway, you find yourself in a dark room. It's so dark, in fact, that the only light there is is coming from the room you were just in. With the minimal light, however, you can see a few things.[end if][if the Dungeon is visited]You are back in the dungeon." The chains are in the dungeon. "There seems to be some old rusted chains around you." The chains are fixed in place. The description of the chains is "Rusted chains. They're opened, and seem to be around you." The bread is in the dungeon. "[if the Dungeon is unvisited]A chunk of bread is below your feet.[end if][if the Dungeon is visited]There is some bread." The description of the bread is "A stale chunk of bread. Picking it up, you can see that it's hard, and probably bad to eat." The bread is edible. After eating bread: say "You don't know why you ate this. The bread tasted nasty. It was on the floor, too. The guard looks at you in disgust before you suddenly fall to the ground, dead. Guess the bread was unsafe for humans to eat."; end the game in death. After taking the bread: say "You don't really want to eat this, but it might be helpful later." The guard is a person in the dungeon. The guard can be calm or confused. The guard is calm."[if the Dungeon is unvisited]You can see a guard too. He seems focused on one thing - you.[end if][if the Dungeon is visited]The guard frowns at you. 'Back so soon?'" Every turn when player can see the guard: say "[one of]The guard stares at you silently[or]The guard crosses his arms[or]The guard glares at the dirty floor[at random]." The description of the guard is "A guard. It kind of seems like he's guarding you, although you don't know why. Maybe you can ask him?" The unknown object is in the dungeon. The unknown object is fixed in place. "You can see some kind of dark object in the guard's hand, but can't tell what it is." The description of the unknown object is "An unknown object the guard is holding." Understand "unknown" as unknown object. Understand "flashlight" as unknown object. [Guard Dialogue - DUNGEON - DONE] Instead of asking guard about "guarding": say "'You want to know why I'm guarding you? I don't really know, to be honest.'"; now guard is confused. Instead of asking guard about "object": say "'Oh, what I'm holding? It's a flashlight. It's really dark down here.'" Instead of asking guard about "hand": say "'Oh, what I'm holding? It's a flashlight. It's really dark down here.'" Instead of asking guard about "hold": say "'Oh, what I'm holding? It's a flashlight. It's really dark down here.'" Instead of asking guard about "holding": say "'Oh, what I'm holding? It's a flashlight. It's really dark down here.'" Instead of asking guard about "key": say "'Key? What key?'" Instead of asking a confused guard about "guarding": say "'I already told you, I don't know why I'm guarding you. I can't let you escape, unless you can do it yourself.'" Instead of asking a confused guard about "object": say "'It's a flashlight. It's dark down here. Here you go.' The guard turns on the flashlight, and you can see a ladder going upwards." Instead of asking a confused guard about "hand": say "'It's a flashlight. It's dark down here. Here you go.' The guard turns on the flashlight, and you can see a ladder going upwards." Instead of asking a confused guard about "hold": say "'It's a flashlight. It's dark down here. Here you go.' The guard turns on the flashlight, and you can see a ladder going upwards." Instead of asking a confused guard about "holding": say "'It's a flashlight. It's dark down here. Here you go.' The guard turns on the flashlight, and you can see a ladder going upwards." Instead of asking a confused guard about "flashlight": say "'Do you want me to turn it on? It is dark down here.' The guard turns on the flashlight, and you can see a ladder going upwards." Instead of asking a confused guard about "missing people": say "The guard grimaces, but says nothing. You think he might know something about the lack of anyone in the castle, but you don't want to bother him." Instead of asking guard about "escape": say "'You want to escape? Fine, if you can find how to get out of here.'" Instead of asking a confused guard about "escape": say "The guard doesn't reply. But what is that in his hand?" [Room #3: Upper Dungeon - DONE] Up from the Dungeon is the Upper Dungeon. The Upper Dungeon is a room. "[if the Upper Dungeon is unvisited]After going up the ladder, you find yourself in another dungeon-y area. Although it's still dark, you can see that there is a door to your west. But, the door seems to be locked. Maybe you need to find a key?[end if][if the Upper Dungeon is visited]You are back in the Upper Dungeon. The door is to your west." The wood door is a closed locked door. The wood door is scenery. The wood key unlocks wood door. Player is carrying a wood key. The description of the wood key is "Hey, look at that! You have a wooden key! But what is it used for?" After unlocking the wood door with the wood key: say "You had the key all along! You must have grabbed it earlier somehow. You unlock the door. You can now travel west." The wood door is west of the Upper Dungeon and east of the Main Hall. [Room #4: Main Hall - DONE] The Main Hall is a room. "[if the Main Hall is unvisited]Once escaping the dungeon, you find yourself in what seems to be the main hall of a castle. It's gigantic - at least 50 feet tall, and there is a lot of doorways leading to other rooms. It looks like any stereotypical castle main hall, empty suits of armor mounted everywhere, red carpets adorning the shiny floor, a giant portrait of a man you assume is the king, stained-glass windows, etc. The only problem is: you can't see anyone. As you got past the initial awe and shock of seeing a castle, you noticed there was nothing alive in the room! (Well, besides you, of course). That's weird. You'd go ask the guard back in the dungeon, but you don't really want to go back to that nasty place after seeing something this grand. You came from the east, but you can also see doorways to the west and south, and there is a big staircase leading up to a throne.[end if][if the Main Hall is visited]You are in the main hall. Exits are to your east, west, south, and up the stairs." The suit of armor is in the Main Hall. It is scenery. The description of the suit of armor is "A suit of armor. It's very well-polished, which is weird. It's about seven feet tall, taller than you are. You wonder what kind of person could wear this." The red carpet is in the Main Hall. It is scenery. The description of the red carpet is "Red carpet. There's nothing more to it." The king's portrait is in the Main Hall. It is scenery. The description of the king's portrait is "A portrait of the king. As you approach it you notice a nameplate, saying this man is King Richard XVI. The name's a little overdone, but still royal-sounding." The stained glass window is in the Main Hall. It is scenery. The description of the stained glass window is "A beautiful stained-glass window depicting a man on a horse. It looks incredibly smooth, but you decide against touching it. You wouldn't want to get dirty fingerprints on it." [Room #5: Throne Room - DONE] Up from the Main Hall is the Throne Room. The Throne Room is a room. "[if the Throne Room is unvisited]Going up the stairs in the Main Hall takes you to a throne room. There's a giant throne in the middle of the room. It seems like a king would sit here, but there is no one. There is, however, a lot of fancy-looking flowers and plants. To the right and left of the throne is another staircase leading up.[end if][if the Throne Room is visited]You're back in the Throne Room. There is a throne and a flower box. There is a staircase leading up. The Main Hall is down.[end if]" The king's throne is in the Throne Room. It is scenery. The description of the king's throne is "A big throne. You feel as if some unknown force is preventing you from sitting on it." The flower box are in the Throne Room. It is fixed in place. On the flower box is a thorn. After taking the thorn: say "Ouch! That probably wasn't a good idea. Now you have a thorn." The description of the flower box is "Some pretty flowers. There are some thorns on the flowers, so you probably shouldn't touch that unless you have a good reason." [Room #6: Kitchen - DONE] West of the Main Hall is the Kitchen. The Kitchen is a room. "[if the Kitchen is unvisited]Travelling west from the Main Hall takes you to a kitchen. There's two doors, one to your east (which you came from), and one to your west. As you look around the kitchen, you begin to get confused. Where is everyone? It looks as if the last person here wasn't finished using the oven. As if they left in a hurry.[end if][if the Kitchen is visited]Exits are to your east and west." The oven is a openable container in the Kitchen. The oven can be open or closed. The oven is open. It is fixed in place. "[if the Kitchen is unvisited]There is an old-looking stone oven. It's open, which is unusual. You should probably close it, as there's flames inside. [end if][if the Kitchen is visited]There is an oven." Understand "stove" as oven. After closing oven: say "You close the oven. Good idea. You might have died if it wasn't closed." Every turn: if the Player has been in the Kitchen for 3 turns: if the oven has been open for three turns, say "The flames are getting awfully close to you. You should probably close the oven."; if the Player has been in the Kitchen for 4 turns: if the oven has been open for four turns, say "The flames grow larger, and eventually somehow escape from the oven, setting the castle on fire. You didn't think it would have been possible, as the castle is made of stone, an unflammable material, but it happens. You die. Please close the oven next time."; if the oven has been open for four turns: end the game in death. [Room #7: Third Floor - DONE] Up from the Throne Room is the Third Floor. The Third Floor is a room. "[if the Third Floor is unvisited]Going up the stairs next to the throne takes you to the third floor of the castle. It seems to be the highest you can go, at the moment. There's only 3 rooms that you can see, a bedroom to your west, a bedroom to your east, and a treasure room to your north. How do you know what rooms are there? They're labelled nicely for you.[end if][if the Third Floor is visited]There are bedrooms to your west and east, and a treasure room to your north.[end if]" The window 2 is in the Third Floor. It is fixed in place. "There is a window you can look out of." The description of the window 2 is "A large window. It shows you relatively high off the ground. Which makes sense, since you're on the third floor of the castle. It seems to overlook some pretty gardens." The golden door is a closed locked door. The golden door is scenery. The secret key unlocks golden door. After unlocking the golden door with the secret key: say "Look at you, Mr. Sneaky! You can now travel into the King's bedroom." The golden door is west of the Third Floor and east of the King's Bedroom. The east door is a closed door. The east door is scenery. The east door is east of the Third Floor and west of the Prince's Bedroom. [Room #8: Entrance - DONE] South from the Main Hall is the Entrance. The Entrance is a room. "The entrance to the castle, adorned by yet more armor suits. Continuing south will take you outside the castle." The armor suit 2 is in the Entrance. It is scenery. The description of the armor suit 2 is "A tall suit of armor. It's very shiny." [Room #9: Courtyard - DONE] South from the Entrance is the Courtyard. The Courtyard is a room. "[if the Courtyard is unvisited]Continuing south from the castle entrance takes you outside. You seem to be in a garden, with trees and flowers.[end if][if the Courtyard is visited]You are in the Courtyard. Exits are north." The gate is in the Courtyard. It is fixed in place. "[if the Courtyard is unvisited]A large gate stands around the courtyard. Looking through it, you can see the surrounding area around the castle. The gate is currently closed, and locked, with a big lock hanging over it. It would be impossible to open the lock.[end if][if the Courtyard is visited]The gate is closed." The description of the gate is "A large iron gate. It's closed and locked, and surrounds the Courtyard." The lock is on the gate. It is scenery. The description of the lock is "A large lock hanging over the gate. It looks like it can't be unlocked." [BIRD DIALOGUE - COURTYARD] The bird is a man in the Courtyard. Bird can be hungry, regular, mad, happy, or finished. Bird is hungry. Instead of asking a hungry bird about something: say "It's a bird. You don't really know what you expected, but it doesn't reply." Instead of telling a hungry bird about something: say "It's a bird. You don't really know what you expected, but it doesn't reply." Instead of showing the bread to the bird: say "The bird, seeing the bread you're holding, flutters its wings in anticipation."; now bird is regular. Instead of asking a regular bird about something: say "'Give me the bread!' The bird says to you (in perfect English). The bird can speak? You should probably give it some bread."; now bird is mad. Instead of asking a mad bird about something: say "The bird flies at you, attacking you and grabbing the bread. Its talons are sharp. You probably should have given the bird the bread first."; end the game in death. Instead of giving bread to bird: say "'Thank you! I'm starving.' The bird eats the bread. Maybe you should try asking the bird something?"; now bird is happy. Instead of asking a happy bird about something: say "The bird interrupts you halfway through your first word. 'You want to know where everyone is, right? Of course you do. Some evil wizard dude kidnapped everyone, obviously. At the moment, I don't think there's anyone else in the castle, but then again I haven't been exploring the castle much. Now get out, I have nothing else to tell you.' You thank the bird for his help, and leave back to the Entrance with newfound wisdom."; now bird is finished ; move player to Entrance ; award 10 points Instead of doing something to the finished bird: say "The bird has done everything it can to help you, and you leave the Courtyard."; move player to Entrance. [Room #10 - Prince's Bedroom - DONE] The Prince's Bedroom is a room. "[if the Prince's Bedroom is unvisited]Going into the room, you see it's a bedroom. It's very fancy, so you probably don't want to touch anything. There's a large bed. The door is to your west.[end if][if the Prince's Bedroom is visited]You're back in the Prince's Bedroom. Exits are to your west." The Prince's Bed is in the Prince's Bedroom. It is scenery. The description of the Prince's Bed is "A large bed with white sheets. It's perfectly made." The Prince's Dresser is in the Prince's Bedroom. It is fixed in place. It is scenery. The description of the Prince's Dresser is "You see nothing particularly noteworthy about the dresser." [Room # 11 - Treasure Room - DONE] North from the Third Floor is the Treasure Room. The Treasure Room is a room."[if the Treasure Room is unvisited]You find yourself in the treasure room. It's piled high with riches of all kinds - diamonds, gold, rubies, sapphires, etc.[end if][If the Treasure Room is visited]You are back in the Treasure Room." The diamond is in the Treasure Room. "[if the Treasure Room is unvisited]It worries you that it was so easy to get in here. Looking back, you can see that there's a big open gate separating the treasure room from the third floor hallway. It also seems like guards would have been stationed here, but there's nothing.[end if][if the Treasure room is visited]Exits are to your south." The description of the diamond is "A shining diamond! It's big and looks expensive." After taking the diamond: say "Although this isn't yours, you couldn't help yourself and grabbed the diamond. You feel richer already."; award 5 points. The gold is in the Treasure Room. It is scenery. The description of the gold is "A bar of gold. There's a lot in this room." The ruby is in the Treasure Room. It is scenery. The description of the ruby is "A big shiny ruby. There's a lot in this room." The sapphire is in the Treasure Room. It is scenery. The description of the sapphire is "A nicely rounded sapphire. There's a lot in this room." [Room # 12 - Armory - DONE] West of the Kitchen is the Armory. The Armory is a room. "[if the Armory is unvisited]West of the Kitchen is an armory. The room is empty of people, obviously, but you feel like you're being watched.[end if][if the Armory is visited]You are in the Armory." The Weapon Shelf is in the Armory. "A shelf full of weapons is in the Armory. And it's really full. There's swords, maces, battle axes, shields, and more. Although, everything seems like it'd be too heavy to pick up. There's more suits of armor in the Armory as well, but one looks different. For one thing, it's directly north of you. It's also different from the other suits though. The other suits look like they could be put on anyone, but this one looks more like a decoration. It's jeweled, covered with beautiful rare gems. But something kind of looks off." The Jeweled Armor Suit is in the Armory. The Jeweled Armor Suit is a closed, locked, openable door. It is scenery. Diamond unlocks Jeweled Armor Suit. Jeweled Armor Suit is north of the Armory and south of Victory. The description of the Jeweled Armor Suit is "A beautifully decorated armor suit. It's modeled to look like a human with the gems, and a face was made with different minerals. However, a diamond is missing for the left eye. (Try to unlock the Armor Suit with something.)" After unlocking the Jeweled Armor Suit with the diamond: say "The diamond clicks into place in the eye, and it slides to your right, revealing a doorway to your north." [Room # 13 - Victory! - DONE] The Victory is a room. Every turn while in the Victory: if score is 5 begin; say "[bold type]Did you do everything you needed to do? Why is no one in the castle? Maybe someone or something knows the answer." ;end if. Every turn while in the Victory: if score is 15 begin; say "In this room, you find the king, who earnestly thanks you for freeing him. 'The evil wizard thought nobody would look for me in the castle itself!' He laughs. Confused, you ask where everyone else is. The prince, the castle staff, the queen, etc. The king looks confused for a second, but says they don't matter. He leads you outside and gives you too much gold to count as a reward. [bold type]Congratulations on winning the game!"; end the game in victory; end if. [Help] Helping the player is an action out of world. Understand "help" and "help me" and "help please" and "please help" and "what do i do" and "hints" and "h" and "hint" as helping the player. Carry out helping the player: say "[italic type]How to use commands in this story:[roman type][line break] LOOK(X) (object): You can examine an object you see. [line break] INVENTORY(I): You check what you are holding. [line break] TAKE(T) (object): You can take an object. [line break] SHOW (object) TO (npc): You show an object to an NPC. [line break] EAT (object): You can eat something. [line break] EAST(E): You can travel to a room to the east. [line break] WEST(W): You can travel to a room to the west. [line break] NORTH(N): You can travel to a room to the north. [line break] SOUTH(S): You can travel to a room to the south. [line break] UP(U): You can travel upward. [line break] DOWN(D): You can travel downwards. [line break] HELP(H): You open the help menu. [line break] UNLOCK DOOR WITH (object): You can unlock a door. [line break] OPEN(O) DOOR: You can open a door. [line break] CLOSE(C) DOOR: You can close a door. [line break] LOCATION: You are told your current location. [line break] DIRECTIONS: You are told in which directions you can go. [line break][italic type][bold type]Dialogue: [line break][roman type] ASK (npc character) ABOUT (object) [line break] TELL (npc character) ABOUT (object) [line break] SHOW (npc character) (object) [line break] If you're ever not sure what to ask a NPC, and are really stuck, try typing out the NPC's name in the chat! (Although it takes away from the game.) [paragraph break]Hope this helped!" [GUARD DIALOGUE HELP] Guarding the player is an action out of world. Understand "Guard" and "Dungeon Guard" and "Guard Help" and "Help Guard" as guarding the player. Carry out guarding the player: say "[italic type]If you're not sure what to ask the guard, try asking: [line break][roman type]•About why he's (GUARDING) you. [line break]•About what (OBJECT) he's (HOLDING) in his (HAND) [line break]•About how you can (ESCAPE) this dungeon." [BIRD DIALOGUE HELP] Bird helping the player is an action out of world. Understand "Bird" and "Courtyard Bird" and "Bird Help" and "Help Bird" as Bird Helping the player. Carry out Bird Helping the player: say "[italic type]If you're not sure what to do with the bird, try: [line break][roman type]•To find out what it wants to eat. [line break]•To not anger it. [line break]•To give it what it wants." [LOCATION] Locating the player is an action out of world. Understand "location" and "where am i" as locating the player. Carry out locating the player: If the location is Setup: say "[italic type]You are in the Setup."; If the location is Dungeon: say "[italic type]You are in the Dungeon."; If the location is Upper Dungeon: say "[italic type]You are in the Upper Dungeon."; If the location is Main Hall: say "[italic type]You are in the Main Hall."; If the location is Throne Room: say "[italic type]You are in the Throne Room."; If the location is Kitchen: say "[italic type]You are in the Kitchen."; If the location is Third Floor: say "[italic type]You are on the Third Floor."; If the location is Entrance: say "[italic type]You are in the Entrance."; If the location is Courtyard: say "[italic type]You are in the Courtyard."; If the location is Prince's Bedroom: say "[italic type]You are in the Prince's Bedroom."; If the location is Treasure Room: say "[italic type]You are in the Treasure Room."; If the location is Armory: say "[italic type]You are in the Armory."; If the location is Secret Room: say "[italic type]I don't know where you are. You're not supposed to be here."; If the location is King's Bedroom: say "[italic type]I don't know where you are. You're not supposed to be here." [DIRECTIONS] Directioning the player is an action out of world. Understand "where to go" and "wheretogo" and "directions" as directioning the player. Carry out directioning the player: If the location is Setup: say "[italic type]You are in the Setup.[line break]You can go south."; If the location is Dungeon: say "[italic type]You are in the Dungeon.[line break]You can go up and north."; If the location is Upper Dungeon: say "[italic type]You are in the Upper Dungeon.[line break]You can go west and down."; If the location is Main Hall: say "[italic type]You are in the Main Hall.[line break]You can go west, south, up, and east."; If the location is Throne Room: say "[italic type]You are in the Throne Room.[line break]You can go up and down"; If the location is Kitchen: say "[italic type]You are in the Kitchen.[line break]You can go west and east."; If the location is Third Floor: say "[italic type]You are on the Third Floor.[line break]You can go east, north, and down."; If the location is Entrance: say "[italic type]You are in the Entrance.[line break]You can go south and north."; If the location is Courtyard: say "[italic type]You are in the Courtyard.[line break]You can go north"; If the location is Prince's Bedroom: say "[italic type]You are in the Prince's Bedroom.[line break]You can go west."; If the location is Treasure Room: say "[italic type]You are in the Treasure Room.[line break]You can go south."; If the location is Armory: say "[italic type]You are in the Armory.[line break]You can go east and north."; If the location is Secret Room: say "[italic type]I don't know where you are. You're not supposed to be here. You can exit the room."; If the location is King's Bedroom: say "[italic type]I don't know where you are. You're not supposed to be here. You can exit the room." [Clarifying Commands] Understand "t [something]" as taking. Understand "c [something]" as closing. Understand "o [something]" as opening. Understand "put [something] in [something]" as unlocking it with (with nouns reversed). [Secret Room] Southeast from the Setup is the Secret Room. The Secret Room is a room. "Congratulations on finding this room! I wonder how you found it, though. Were you cheating?" The pile of gold bars is in the Secret Room. It is fixed in place. On the pile of gold bars is the Secret Key. "There's a pile of gold bars in this room! Wow! Sadly, the bars are too heavy for you to grab. There is a key on top of the bars, though." After taking the Secret Key: say "You got the Secret Key! Wonder what door it unlocks..." [King's Bedroom] The King's Bedroom is a room. "After going through the golden door, you find yourself in the King's bedroom. No one is there. And you have the only key to get in the room." The King's Bed is in the King's Bedroom. "There is a giant bed in the bedroom. It looks really comfortable. There is a sign next to the bed." The description of the King's Bed is "A big bed fit for a king. But there's no king in the castle... Is the bed yours?" There is a sign 2 in the King's Bedroom. It is scenery. The description of the sign 2 is "The sign reads: [italic type]Congratulations on finding the King's Bedroom! Did you look into the game source?" The King's Crown is on the King's Bed. The description of the King's Crown is "A big crown. You can take it." After taking the King's Crown: say "You put the crown on, and feel like a king."; award 1000 points. Every turn while in the King's Bedroom: if score is 1000 begin; say "[bold type]You won by cheating. I hope you're happy."; end the game in victory; end if.