From e5e611f234aaa2e6909e71ccb83388ea88ceb02b Mon Sep 17 00:00:00 2001 From: Emma <35468679+emmAtk13@users.noreply.github.com> Date: Sun, 29 Mar 2020 14:55:12 -0400 Subject: [PATCH] adds start over option to html --- index.html | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 8a74db6..9e3b445 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ tw-link.visited:hover } -(text-color: "black")["**Alright! Let's play a game!**" They announce cheerily.] +(text-color: "black")["**Alright! Let's play a game!**" They announce cheerily.] ["Today you will be trying to win a //good potion//!" The game itself it very easy. I learned it from a man named Monty Hall."] ["Would you like to hear the rules?"] @@ -64,7 +64,7 @@ tw-link.visited:hover (if: $purplebag is "bad potion" and $orangebag is "good potion")[(set: $greenbag to "bad potion")] (set: $switched to "false") -["Alright! You are going to see three bags," they gesture at the three bags in front of them.] +["Alright! You are going to see three bags," they gesture at the three bags in front of them.] [<img src="https://i.imgur.com/6JYHB1y.png" alt="purple bag shut" height="250" width="300" /> <img src="https://i.imgur.com/cV1W71R.png" alt="purple bag shut" height="250" width="300" /> <img src="https://i.imgur.com/f7l3t11.png" alt="purple bag shut" height="250" width="300" />] @@ -84,14 +84,14 @@ tw-link.visited:hover [[Yeah, let's get this started!->No, I already know how this works.]] -[[I changed my mind. I'd rather not play.->You decline.]][Let's get started!] +[[I changed my mind. I'd rather not play.->You decline.]][Let's get started!] [Please pick a bag!] [<img src="https://i.imgur.com/6JYHB1y.png" alt="purple bag shut" height="250" width="300" /> <img src="https://i.imgur.com/cV1W71R.png" alt="purple bag shut" height="250" width="300" /> <img src="https://i.imgur.com/f7l3t11.png" alt="purple bag shut" height="250" width="300" />] (text-color: "purple")[[The purple bag!]] (text-color: "orange")[[The orange bag!]] -(text-color: "green")[[The green bag!]](set: $playerchoice1 to "purple bag")[An excellent choice!] +(text-color: "green")[[The green bag!]](set: $playerchoice1 to "purple bag")[An excellent choice!] [Well let's take a look inside the...] @@ -105,7 +105,8 @@ tw-link.visited:hover (if: $hostchoice1 is "orange bag" and $orangebag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](if: $hostchoice1 is "orange bag" and $orangebag is "bad potion")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>](if: $hostchoice1 is "green bag" and $greenbag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](if: $greenbag is "bad potion" and $hostchoice1 is "green bag")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>] (if: $continue is "yes")[[On to the next question?]] -(if: $continue is "no")[[Would you like to play again?->Start]](set: $playerchoice1 to "orange bag")[Superb choice!] +(if: $continue is "no")[[[Would you like to play again?->Start]] +[[Or start from beginning?->Title]]](set: $playerchoice1 to "orange bag")[Superb choice!] [Well let's take a look inside the...] @@ -119,7 +120,8 @@ tw-link.visited:hover (if: $hostchoice1 is "purple bag" and $purplebag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](if: $hostchoice1 is "purple bag" and $purplebag is "bad potion")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>](if: $hostchoice1 is "green bag" and $greenbag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](if: $greenbag is "bad potion" and $hostchoice1 is "green bag")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>] (if: $continue is "yes")[[On to the next question?]] -(if: $continue is "no")[[Would you like to play again?->Start]](set: $playerchoice1 to "green bag")[A great choice!] +(if: $continue is "no")[[[Would you like to play again?->Start]] +[[Or start from beginning?->Title]]](set: $playerchoice1 to "green bag")[A great choice!] [Well let's take a look inside the...] @@ -134,10 +136,11 @@ tw-link.visited:hover (if: $hostchoice1 is "purple bag" and $purplebag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](if: $hostchoice1 is "purple bag" and $purplebag is "bad potion")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>](if: $hostchoice1 is "orange bag" and $orangebag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](if: $orangebag is "bad potion" and $hostchoice1 is "orange bag")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>] (if: $continue is "yes")[[On to the next question?]] -(if: $continue is "no")[[Would you like to play again?->Start]]Would you like to... +(if: $continue is "no")[[[Would you like to play again?->Start]] +[[Or start from beginning?->Title]]]Would you like to... [[Keep your bag?]] -[[Switch your bag?]][They nod their head.] +[[Switch your bag?]][They nod their head.] [Alright folks, let's see if we have a winner!] (if: $playerchoice1 is "purple bag" and $hostchoice1 is "orange bag")[(set: $lastbag to "green bag")](if: $playerchoice1 is "purple bag" and $hostchoice1 is "green bag")[(set: $lastbag to "orange bag")](if: $playerchoice1 is "orange bag" and $hostchoice1 is "purple bag")[(set: $lastbag to "green bag")](if: $playerchoice1 is "orange bag" and $hostchoice1 is "green bag")[(set: $lastbag to "purple bag")](if: $playerchoice1 is "green bag" and $hostchoice1 is "purple bag")[(set: $lastbag to "orange bag")](if: $playerchoice1 is "green bag" and $hostchoice1 is "orange bag")[(set: $lastbag to "purple bag")] @@ -150,7 +153,7 @@ tw-link.visited:hover (if: $lastbag is "purple bag")[(if: $purplebag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](else:)[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>]](if: $lastbag is "orange bag")[(if: $orangebag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](else:)[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>]](if: $lastbag is "green bag")[(if: $greenbag is "good potion")[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>](else:)[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>]] -[[Next]](if: $switched is "false" and $playerchoice1 is "purple bag")[(if: $hostchoice1 is "orange bag")[(set: $switched to "true")(set: $playerchoice1 to "green bag") You choose to switch to the green bag.]](if: $switched is "false" and $playerchoice1 is "purple bag")[(if: $hostchoice1 is "green bag")[(set: $switched to "true")(set: $playerchoice1 to "orange bag") You choose to switch to the orange bag.]](if: $switched is "false" and $playerchoice1 is "orange bag")[(if: $hostchoice1 is "green bag")[(set: $switched to "true")(set: $playerchoice1 to "purple bag") You choose to switch to the purple bag.]](if: $switched is "false" and $playerchoice1 is "orange bag")[(if: $hostchoice1 is "purple bag")[(set: $switched to "true")(set: $playerchoice1 to "green bag") You choose to switch to the green bag.]](if: $switched is "false" and $playerchoice1 is "green bag")[(if: $hostchoice1 is "purple bag")[(set: $switched to "true")(set: $playerchoice1 to "orange bag") You choose to switch to the orange bag.]](if: $switched is "false" and $playerchoice1 is "green bag")[(if: $hostchoice1 is "orange bag")[(set: $switched to "true")(set: $playerchoice1 to "purple bag") You choose to switch to the purple bag.]] +[[Next]](if: $switched is "false" and $playerchoice1 is "purple bag")[(if: $hostchoice1 is "orange bag")[(set: $switched to "true")(set: $playerchoice1 to "green bag") You choose to switch to the green bag.]](if: $switched is "false" and $playerchoice1 is "purple bag")[(if: $hostchoice1 is "green bag")[(set: $switched to "true")(set: $playerchoice1 to "orange bag") You choose to switch to the orange bag.]](if: $switched is "false" and $playerchoice1 is "orange bag")[(if: $hostchoice1 is "green bag")[(set: $switched to "true")(set: $playerchoice1 to "purple bag") You choose to switch to the purple bag.]](if: $switched is "false" and $playerchoice1 is "orange bag")[(if: $hostchoice1 is "purple bag")[(set: $switched to "true")(set: $playerchoice1 to "green bag") You choose to switch to the green bag.]](if: $switched is "false" and $playerchoice1 is "green bag")[(if: $hostchoice1 is "purple bag")[(set: $switched to "true")(set: $playerchoice1 to "orange bag") You choose to switch to the orange bag.]](if: $switched is "false" and $playerchoice1 is "green bag")[(if: $hostchoice1 is "orange bag")[(set: $switched to "true")(set: $playerchoice1 to "purple bag") You choose to switch to the purple bag.]] (if: $playerchoice1 is "purple bag")[<img src="https://i.imgur.com/6JYHB1y.png" alt="purple bag shut" height="250" width="300" />](if: $playerchoice1 is "orange bag")[<img src="https://i.imgur.com/cV1W71R.png" alt="purple bag shut" height="250" width="300" />](if: $playerchoice1 is "green bag")[<img src="https://i.imgur.com/f7l3t11.png" alt="purple bag shut" height="250" width="300" />] @@ -160,14 +163,15 @@ tw-link.visited:hover (if: $playerchoice1 is "purple bag")[(if: $purplebag is "bad potion")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>](else:)[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>]](if: $playerchoice1 is "orange bag")[(if: $orangebag is "bad potion")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>](else:)[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>]](if: $playerchoice1 is "green bag")[(if: $greenbag is "bad potion")[<img src="https://i.imgur.com/BjOXUZU.png" alt="bad potion" height="300" width="300"/>](else:)[<img src="https://i.imgur.com/lIbXqGr.png" alt="good potion" height="300" width="300"/>]] -[[Would you like to play again? ->Start]][You run down the old dirt path, the only one that leads into town.] +[[Would you like to play again? ->Start]] +[[Or start from beginning?->Title]][You run down the old dirt path, the only one that leads into town.] [Today is the day!] [The traveling peddler comes back to town, with stories of their adventures in far away lands and fantastic wares to sell.] [[Run]] -[For some reason, you say //no// to playing.] +[For some reason, you say //no// to playing.] [The peddler stares at you for another minute, then turns to the child next to you, asking them the same question.] (set: $outcome to (either: "wins", "loses")) @@ -179,14 +183,14 @@ tw-link.visited:hover [You start to think about that day, imagining what might have happened if you had said yes.] -[[Imagine that day again...->Story Intro]] [But you like them visiting for the games. Each time they visit, they play a game with one of the villagers.] +[[Imagine that day again...->Story Intro]] [But you like them visiting for the games. Each time they visit, they play a game with one of the villagers.] [This time, you're hoping they'll pick you.] [You see a crowd is starting to form in the center of town around the peddler.] [[Run faster.]] -[[Continue at your pace.]][Pumping all your energy into your legs, you run as fast as you can. You just barely make it to the front of the crowd when you feel it close tightly around you.] +[[Continue at your pace.]][Pumping all your energy into your legs, you run as fast as you can. You just barely make it to the front of the crowd when you feel it close tightly around you.] [Directly in front of you is the peddler. They stare at you for a moment.] @@ -201,7 +205,7 @@ tw-link.visited:hover [[You accept the offer.->Start]] [[You decline.]] -[You're already pretty tired from yesterday. You think you can just make it at the current pace.] +[You're already pretty tired from yesterday. You think you can just make it at the current pace.] [You just barely miss it. The crowd closes in in front of you. Seeing no other option, you start to weave around people. The crowd jostles you around.]