Solo Game Progress 2
The snippet can be accessed without any authentication.
Authored by
kkouete2
Flowers and Quiz doesn't work for now. I put notes in the code.
Progress2 5.80 KiB
"Wizard's Apprentice"
Use American dialect, brief room descriptions, and the serial comma.
When play begins:
say "You are the wizard's apprentice. Training one day to maybe become the great grand wizard."
Bedroom is a room. The description is "As you wake up in your bedroom. The light shining from your window. You are ready for another day of learning the arts of magic itself. The study to the south is awaiting you and so does the future. Whatever awaits is up to you."
Study is a room. Study is south from Bedroom. The description is "The Grand Wizard's study. Where you come and brush up on your vast knowledge you totally have. You love to come here and do some experiments. The place is neatly cleaned and organized (wonder who did that??). To the West is the library."
Sign is a supporter in the Study. It is fixed in place. The description is "The sign reads, CAUTION! Handle potions with Care and whatever you do DON'T DRINK THEM!"
Wall is scenery in the Study. The description is "A wooden wall with patterns and designs galore. With potions lining the rows."
A potion is a kind of thing. There are three potions on the wall.
[Potions]
The red potion is a potion in the Study. The description of the red potion is "A bright red potion, bubbling with strange energy."
Instead of drinking the red potion:
say "You feel something inside your stomach rumble as you fall to the floor.";
end the story saying "You should probably not drink that. You have died.".
The blue potion is a potion in the Study. The description of the blue potion is "A calming blue liquid, giving off a faint glow."
Instead of drinking the blue potion:
say "You feel something inside your stomach rumble as you fall to the floor.";
end the story saying "You should probably not drink that. You have died.".
The green potion is a potion in the Study. The description of the green potion is "A thick green liquid that smells faintly of herbs."
Instead of drinking the green potion:
say "You feel the herbs burn your insides until they are ash.";
end the story saying "You should probably not drink that. You have died.".
Understand "potions" as red potion, blue potion, or green potion.
[Potions END]
[Meeting the Wizard]
Library is a room. The Library is west from Study. The description is "The main library. The place is full of books and wonder. This is your favorite place to be around. Especially because someone special you look up to is here."
Grand Wizard Ynnek is a man in the Library. The description is "The almighty grand wizard Ynnek. With his powerful looks and beautiful figure. He looks like someone from a fantasy."
Instead of talking to Grand Wizard Ynnek:
say "'Ah my pupil. Did you sleep well? Today we have much to do. Today we will make and test a new potion that I have been studying on for a while. I want to make that study a reality. First, [italic type]fetch me the Green Potion from the Study will you?'"
Instead of giving something to Grand Wizard Ynnek:
[note: ask Ramsay help on giving an NPC more than just one thing]
if the noun is the Green Potion:
say "Thank you my disciple. This will do just fine. Head east to the Garden and get me a specific flower. Remember this color code specifically: orange, red, yellow. [italic type]Heed my words and go.";
remove the Green Potion from play;
otherwise:
say "'That is not what I need! Come on follow the order.'"
[Garden]
Garden is a room. The Garden is east from Library. The description is "A luxurious and beautiful Garden. Filled with a variety of plants. The place has a nice breeze to it. As you walk through the place you wonder what Ynnek meant."
A bed of flowers is a container in Garden. It is open. The description of the bed of flowers is "A vibrant and mysterious bed of flowers, there are flowers with multicolored petals."
[Flowers in Garden]
A iris is in the bed of flowers. The iris is a thing. The description of the iris is "A mysterious red, yellow, and orange iris. Its petals are soft to the touch. You admire the beauty of the iris, its rich color and something you have never seen before."
A marigold is in the bed of flowers. The marigold is a thing. The description of the marigold is "A calming orange, red, and yellow marigold. The petals are shapped very indifferent."
A rose is in the bed of flowers. The rose is a thing. The description of the rose is "A luxurious rose. The petals are yellow, red, and orange. It shines within the day. Just beautiful."
[Classroom - note for Professor: This is where I have so far but it doesnt work sadly. I know we went over scenes in class but I dont know how to fix it. I will ask you about it in class Tuesday or email.]
The Classroom is a room. The classroom is northwest of the Garden. The description is "A big classroom, with desks lined nicely. The place is a little dusty; however, you see something placed by Ynnek."
A box is in the Classroom. The description of the box is "A box with a question mark on it."
Instead of examining the box:
say "You see a question on the box: 'What is (5 + 5) x 10? Please enter your answer (a number):'";
now the player is in the answering phase.
Answering phase is a scene.
Every turn during the answering phase:
if the player's command matches "[number]":
let answer be the number understood;
if answer is 80:
say "Correct! The box opens and reveals a treasure.";
end the game in victory;
otherwise:
say "Wrong answer! Try again.";
otherwise:
say "Please enter a number as your answer.";
Instead of going to the answering phase:
continue the action.
[Setting 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."
Please register or sign in to comment