Skip to content
Snippets Groups Projects
Commit a771d1ce authored by lgraham6's avatar lgraham6
Browse files

Merge branch 'igriffith4-main-patch-91673' into 'main'

Igriffith4 main patch 91673

See merge request !4
parents 87f51669 5c019442
No related branches found
No related tags found
1 merge request!4Igriffith4 main patch 91673
"iGriffith_RegularBad_Intro" by Isaiah Griffith
Rule for printing the banner text: do nothing
Use American dialect, brief room descriptions, and the serial comma.
[Rules]
Talking to is an action applying to one visible thing. Understand "talk to [someone]" or “converse with [someone]” as talking to.
Check talking to: say "[The noun] doesn't reply."
MM is a man. The description is "Using your $5 as a blanket, he's napping in the fold of your wallet. Equipped with an authentic Hawaiian shirt and khaki pants, he does everything full sized Michael does." The printed name of MM is "Mini-Michael Cera". Understand "Michael", "yelp", "strange sound", "Cera", "Mini-Michael" and "Mini-Michael Cera" as MM.
Wallet is a container. The description is "A redish brown leather bill fold." Player is carrying Wallet.
MM is in Wallet.
Real ID is in Wallet. The description is "Remember to give this one to a cop."
[Rooms]
Hell is a room. "Fire and brimstone."
Channel 324 is a room. "A dimly lit cavern. As you look around you notice there are bones surrounding you. A large ogre-ish beast springs forth from the darkness. This is going to be rough for you."
Channel 679 is a room. "You are in a cozy kitchen. A pot sits on the stove. A knife and cutting board are on the counter. Shelves stocked with jars of spices line the walls. Nearby, there is a pitcher of water and a potato."
Channel 146 is a room. "You walk through a front door as the sounds of disembodied clapping and 'woos' fill the air. You enter what seems to be a rather generic living room. Sofa in the center of the room, a recliner slightly off to the side, and shelves of family photos that you are in line the walls. On the couch you see a little girl that seems oddly familiar to you sit sadly."
Barphomet is a man in Hell.
Instead of talking to Barphomet:
say "ewwww poopy human go to TV.";
now the player is in channel 679;
now the player carries the recipe book.
The Warehouse is a room.
[Combat System]
A person has a number called defense-value. The defense-value of a person is usually 5.
The player has a number called health. The health of the player is 100.
The player carries a weapon. The weapon has a number called damage-value. The damage-value of the weapon is usually 10.
A person has a number called health. The health of a person is usually 100.
Attacking someone with is an action applying to one visible thing and one carried thing.
Understand "attack [someone] with [something]" as attacking someone with.
Checking health is an action applying to nothing.
Understand "check health" or "health" as checking health.
Carry out checking health:
say "You have [health of the player] health remaining.";
Carry out attacking someone with:
if the noun is not a person:
say "You can't attack that!";
otherwise:
let target be the noun;
let attack-roll be a random number from 1 to 10;
say "You roll [attack-roll] to hit [target].";
if attack-roll > the defense-value of the target:
say "Hit! You deal [damage-value of the second noun] damage.";
decrease the health of the target by the damage-value of the second noun;
if the health of the target is 0 or the health of the target is less than 0:
say "[The target] has been defeated!";
remove the target from play;
otherwise:
say "[The target] dodges your attack!";
[Cooking Show Code]
The pot is a container in Channel 679. The pot can be empty or full. The pot is empty. The pot can be carried.
The knife is a thing in Channel 679. The description of the knife is "A sharp kitchen knife, perfect for dicing potatoes."
The cutting board is a supporter in Channel 679. The description of the cutting board is "A wooden cutting board, clean and ready for use."
The potato is a thing in Channel 679. The potato can be whole or diced. The potato is whole. The description of the potato is "A plump potato, ready to be diced."
The pitcher of water is a container in Channel 679. The description of the pitcher of water is "A clear pitcher filled with fresh water."
The cabinet is a closed openable container in Channel 679. The cabinet is unlocked.
Stove is a thing in Channel 679. The stove can be switched on. The description of the stove is "ooo hot."
The jar of salt is a thing. It is in the cabinet.
The jar of pepper is a thing. It is in the cabinet.
The recipe book is a thing in The Warehouse. The description of the recipe book is "The recipe reads: 'To make potato soup: (1) Dice the potato. (2) Add the potato and water to the pot. (3) Season with salt and pepper. (4) Stir. (5) Heat the soup.'"
The soup is a thing in the warehouse.
To decide whether all ingredients are in the pot:
if the diced potato is part of the pot and the pitcher of water is part of the pot and the jar of salt is part of the pot and the jar of pepper is part of the pot:
decide yes;
decide no.
Instead of examining the pot:
if the soup is part of the pot:
say "The pot contains a bubbling pot of potato soup.";
otherwise if the pot is full:
say "The pot is filled with ingredients, make sure to have them all before cooking.";
otherwise:
say "The pot is empty and waiting for ingredients."
Instead of cutting the potato:
if the potato is diced:
say "The potato is already diced.";
otherwise:
now the potato is diced;
say "You dice the potato into small chunks."
Instead of inserting the diced potato into the pot:
if the potato is whole:
say "You need to dice the potato first.";
otherwise:
move the potato to the pot;
now the pot is full;
say "You add the diced potato to the pot."
Instead of inserting the pitcher of water into the pot:
if the pitcher of water is part of the pot:
say "You already poured the water into the pot.";
otherwise:
move the pitcher of water to the pot;
now the pot is full;
say "You pour the water into the pot."
Instead of inserting the jar of salt into the pot:
if the jar of salt is part of the pot:
say "You have already added salt.";
otherwise:
move the jar of salt to the pot;
say "You sprinkle a pinch of salt into the pot."
Instead of inserting the jar of pepper into the pot:
if the jar of pepper is part of the pot:
say "You have already added pepper.";
otherwise:
move the jar of pepper to the pot;
say "You grind some black pepper into the pot."
Stirring is an action applying to one thing. Understand "stir [something]" as stirring.
Turning on is an action applying to one visible thing. Understand "turn on [something]" as turning on.
Check stirring:
if the noun is not the pot:
say "You can't stir that!" instead.
Carry out stirring:
say "You stir the ingredients together, mixing them well.";
Report stirring:
say "The pot looks well mixed now."
Instead of switching on the stove:
if all ingredients are in the pot:
move the soup to the pot;
say "You have made a potato in soup. Good job Rachel Ray, but this show is getting boring. Lets try something more... exciting";
now the player is in Channel 324;
otherwise:
say "You need to add and stir all the ingredients before heating the soup."
[Ogre Fight Code]
The ogre is a person in Channel 324. The defense-value of the ogre is 7. The health of the ogre is 80.
After attacking someone with:
if the ogre is in Channel 324:
ogre-counterattacks;
otherwise:
say "You beat the bitch.";
now the player is in Channel 146.
To ogre-counterattacks:
let ogre-attack-roll be a random number from 1 to 10;
if ogre-attack-roll > the defense-value of the player:
let ogre-damage be a random number from 8 to 15;
say "The ogre charges at you and deals [ogre-damage] damage!";
decrease the health of the player by ogre-damage;
if the health of the player is 0 or the health of the player is less than 0:
end the story saying "You have been defeated by the ogre!";
otherwise:
say "The ogre swings, but you dodge just in time!";
When play begins:
say "You face a goblin and an ogre. Prepare to attack!"
"counterExample" by Isaiah Griffith
The Crypt Hallway Section 1 is a room. "You decend down a small staircase deeper into the crypt. Eventually, you come across a large chamber with a about a foot of water covering the ground. There are two archways on your left and right that lead to what you presume to be more tombs. Attached to the wall at the front of the room stands a 10 foot tall bronze kraken statue. Its mouth is agape with water pouring from it. Its head houses two eye sockets, dark caverns that kraken seem both lifeless and staring at you."
The Kraken head is a container in the Crypt Hallway Section 1. The description is "The two eye sockets seem a reasoable size to put somethin in them."
The red jewel is a thing in The Crypt Hallway Section 1.
Instead of examining the red jewel:
say "A large red jewel... Christopher would have loved this."
The blue jewel is a thing in The Crypt Hallway Section 1.
Instead of examining the blue jewel:
say "A large blue jewel. A reasonable size to put in something."
The red jewel counter is a number that varies. The red jewel counter is 2. [ Start with 1 red jewel ]
The blue jewel counter is a number that varies. The blue jewel counter is 2. [ Start with 1 blue jewel ]
The kraken's mouth is a door. The kraken's mouth is locked. The kraken's mouth is closed. The description is "The beak of the kraken is open, with a water fall pouring our of the mouth."
Instead of examining the kraken's mouth:
say "the mouth almost looks like a doorway... but how do I open it?"
The kraken's mouth is west of the Crypt Hallway Section 1. The kraken's mouth is east of the Crypt Hallway Section 2.
Instead of examining the Crypt Hallway Section 1:
if the red jewel counter < 1 or the blue jewel counter < 1:
say "You notice the Kraken and its gleaming jewels. The tentacles are watching you warily.";
otherwise:
say "You notice the Kraken and its gleaming jewels. It seems calm for now.";
Instead of taking the red jewel:
if the red jewel counter < 2:
say "You can't take that; it's already gone.";
otherwise:
decrease the red jewel counter by 1;
say "You take the red jewel.";
now the player carries the red jewel.
Instead of taking the blue jewel:
if the blue jewel counter < 2:
say "You can't take that; it's already gone.";
otherwise:
decrease the blue jewel counter by 1;
say "You take the blue jewel.";
now the player carries the blue jewel.
Instead of inserting the red jewel into the Kraken head:
if the red jewel counter is 1:
say "You place the red jewel in the socket of the Kraken's head.";
decrease the red jewel counter by 1; [ Decrease to indicate it's placed ]
now the red jewel is in the Kraken head; [ Move the jewel into the Kraken head ]
check both jewels in the Kraken head; [ Check if both jewels are placed ]
now the red jewel is in the Crypt Hallway Section 1;
otherwise:
say "You have no red jewel to place.";
Instead of inserting the blue jewel into the Kraken head:
if the blue jewel counter is 1:
say "You place the blue jewel in the socket of the Kraken's head.";
decrease the blue jewel counter by 1; [ Decrease to indicate it's placed ]
now the blue jewel is in the Kraken head; [ Move the jewel into the Kraken head ]
check both jewels in the Kraken head; [ Check if both jewels are placed ]
now the blue jewel is in the Crypt Hallway Section 1;
otherwise:
say "You have no blue jewel to place.";
Instead of removing the red jewel from the Kraken head:
if the red jewel is in the Kraken head:
increase the red jewel counter by 1; [ Increase to indicate it's removed ]
say "You remove the red jewel from the Kraken's head.";
now the player carries the red jewel;
otherwise:
say "You can't remove that; it wasn't placed there.";
Instead of removing the blue jewel from the Kraken head:
if the blue jewel is in the Kraken head:
increase the blue jewel counter by 1; [ Increase to indicate it's removed ]
say "You remove the blue jewel from the Kraken's head.";
now the player carries the blue jewel;
otherwise:
say "You can't remove that; it wasn't placed there.";
To check both jewels in the Kraken head:
if the red jewel counter is 0 and the blue jewel counter is 0: [ Check for 0, meaning both are placed ]
say "Both jewels are in place. The mouth of the great kraken statue fills with water and then decends into the ground revealing another section of the crypt.";
now the kraken's mouth is open; [ Action for the door ]
now the kraken's mouth is unlocked; [ Action for unlocking the door ]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment