Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adds start over option to html
  • Loading branch information
Emma authored and Emma committed Mar 29, 2020
1 parent d60adf1 commit e5e611f
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions index.html
Expand Up @@ -46,7 +46,7 @@ tw-link.visited:hover
}


</style><script role="script" id="twine-user-script" type="text/twine-javascript"></script><tw-passagedata pid="1" name="Start" tags="" position="412,347" size="100,100">(text-color: &quot;black&quot;)[&quot;**Alright! Let&#39;s play a game!**&quot; They announce cheerily.]
</style><script role="script" id="twine-user-script" type="text/twine-javascript"></script><tw-passagedata pid="1" name="Start" tags="" position="390,460" size="100,100">(text-color: &quot;black&quot;)[&quot;**Alright! Let&#39;s play a game!**&quot; They announce cheerily.]
[&quot;Today you will be trying to win a //good potion//!&quot; The game itself it very easy. I learned it from a man named Monty Hall.&quot;]

[&quot;Would you like to hear the rules?&quot;]
Expand All @@ -64,7 +64,7 @@ tw-link.visited:hover
(if: $purplebag is &quot;bad potion&quot; and $orangebag is &quot;good potion&quot;)[(set: $greenbag to &quot;bad potion&quot;)]

(set: $switched to &quot;false&quot;)
</tw-passagedata><tw-passagedata pid="2" name="Yes! Please explain them to me." tags="" position="926,278" size="100,100">[&quot;Alright! You are going to see three bags,&quot; they gesture at the three bags in front of them.]
</tw-passagedata><tw-passagedata pid="2" name="Yes! Please explain them to me." tags="" position="1001,258" size="100,100">[&quot;Alright! You are going to see three bags,&quot; they gesture at the three bags in front of them.]

[&lt;img src=&quot;https://i.imgur.com/6JYHB1y.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt; &lt;img src=&quot;https://i.imgur.com/cV1W71R.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt; &lt;img src=&quot;https://i.imgur.com/f7l3t11.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt;]

Expand All @@ -84,14 +84,14 @@ tw-link.visited:hover


[[Yeah, let&#39;s get this started!-&gt;No, I already know how this works.]]
[[I changed my mind. I&#39;d rather not play.-&gt;You decline.]]</tw-passagedata><tw-passagedata pid="3" name="No, I already know how this works." tags="" position="744,369" size="100,100">[Let&#39;s get started!]
[[I changed my mind. I&#39;d rather not play.-&gt;You decline.]]</tw-passagedata><tw-passagedata pid="3" name="No, I already know how this works." tags="" position="863,419" size="100,100">[Let&#39;s get started!]
[Please pick a bag!]

[&lt;img src=&quot;https://i.imgur.com/6JYHB1y.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt; &lt;img src=&quot;https://i.imgur.com/cV1W71R.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt; &lt;img src=&quot;https://i.imgur.com/f7l3t11.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt;]

(text-color: &quot;purple&quot;)[[The purple bag!]]
(text-color: &quot;orange&quot;)[[The orange bag!]]
(text-color: &quot;green&quot;)[[The green bag!]]</tw-passagedata><tw-passagedata pid="4" name="The purple bag!" tags="" position="382,527" size="100,100">(set: $playerchoice1 to &quot;purple bag&quot;)[An excellent choice!]
(text-color: &quot;green&quot;)[[The green bag!]]</tw-passagedata><tw-passagedata pid="4" name="The purple bag!" tags="" position="288,657" size="100,100">(set: $playerchoice1 to &quot;purple bag&quot;)[An excellent choice!]

[Well let&#39;s take a look inside the...]

Expand All @@ -105,7 +105,8 @@ tw-link.visited:hover
(if: $hostchoice1 is &quot;orange bag&quot; and $orangebag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $hostchoice1 is &quot;orange bag&quot; and $orangebag is &quot;bad potion&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $hostchoice1 is &quot;green bag&quot; and $greenbag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $greenbag is &quot;bad potion&quot; and $hostchoice1 is &quot;green bag&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]

(if: $continue is &quot;yes&quot;)[[On to the next question?]]
(if: $continue is &quot;no&quot;)[[Would you like to play again?-&gt;Start]]</tw-passagedata><tw-passagedata pid="5" name="The orange bag!" tags="" position="630,592" size="100,100">(set: $playerchoice1 to &quot;orange bag&quot;)[Superb choice!]
(if: $continue is &quot;no&quot;)[[[Would you like to play again?-&gt;Start]]
[[Or start from beginning?-&gt;Title]]]</tw-passagedata><tw-passagedata pid="5" name="The orange bag!" tags="" position="653,671" size="100,100">(set: $playerchoice1 to &quot;orange bag&quot;)[Superb choice!]

[Well let&#39;s take a look inside the...]

Expand All @@ -119,7 +120,8 @@ tw-link.visited:hover
(if: $hostchoice1 is &quot;purple bag&quot; and $purplebag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $hostchoice1 is &quot;purple bag&quot; and $purplebag is &quot;bad potion&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $hostchoice1 is &quot;green bag&quot; and $greenbag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $greenbag is &quot;bad potion&quot; and $hostchoice1 is &quot;green bag&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]

(if: $continue is &quot;yes&quot;)[[On to the next question?]]
(if: $continue is &quot;no&quot;)[[Would you like to play again?-&gt;Start]]</tw-passagedata><tw-passagedata pid="6" name="The green bag!" tags="" position="890,654" size="100,100">(set: $playerchoice1 to &quot;green bag&quot;)[A great choice!]
(if: $continue is &quot;no&quot;)[[[Would you like to play again?-&gt;Start]]
[[Or start from beginning?-&gt;Title]]]</tw-passagedata><tw-passagedata pid="6" name="The green bag!" tags="" position="957,769" size="100,100">(set: $playerchoice1 to &quot;green bag&quot;)[A great choice!]

[Well let&#39;s take a look inside the...]

Expand All @@ -134,10 +136,11 @@ tw-link.visited:hover
(if: $hostchoice1 is &quot;purple bag&quot; and $purplebag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $hostchoice1 is &quot;purple bag&quot; and $purplebag is &quot;bad potion&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $hostchoice1 is &quot;orange bag&quot; and $orangebag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](if: $orangebag is &quot;bad potion&quot; and $hostchoice1 is &quot;orange bag&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]

(if: $continue is &quot;yes&quot;)[[On to the next question?]]
(if: $continue is &quot;no&quot;)[[Would you like to play again?-&gt;Start]]</tw-passagedata><tw-passagedata pid="7" name="On to the next question?" tags="" position="536,794" size="100,100">Would you like to...
(if: $continue is &quot;no&quot;)[[[Would you like to play again?-&gt;Start]]
[[Or start from beginning?-&gt;Title]]]</tw-passagedata><tw-passagedata pid="7" name="On to the next question?" tags="" position="493,836" size="100,100">Would you like to...

[[Keep your bag?]]
[[Switch your bag?]]</tw-passagedata><tw-passagedata pid="8" name="Keep your bag?" tags="" position="93,635" size="100,100">[They nod their head.]
[[Switch your bag?]]</tw-passagedata><tw-passagedata pid="8" name="Keep your bag?" tags="" position="39,642" size="100,100">[They nod their head.]

[Alright folks, let&#39;s see if we have a winner!]
(if: $playerchoice1 is &quot;purple bag&quot; and $hostchoice1 is &quot;orange bag&quot;)[(set: $lastbag to &quot;green bag&quot;)](if: $playerchoice1 is &quot;purple bag&quot; and $hostchoice1 is &quot;green bag&quot;)[(set: $lastbag to &quot;orange bag&quot;)](if: $playerchoice1 is &quot;orange bag&quot; and $hostchoice1 is &quot;purple bag&quot;)[(set: $lastbag to &quot;green bag&quot;)](if: $playerchoice1 is &quot;orange bag&quot; and $hostchoice1 is &quot;green bag&quot;)[(set: $lastbag to &quot;purple bag&quot;)](if: $playerchoice1 is &quot;green bag&quot; and $hostchoice1 is &quot;purple bag&quot;)[(set: $lastbag to &quot;orange bag&quot;)](if: $playerchoice1 is &quot;green bag&quot; and $hostchoice1 is &quot;orange bag&quot;)[(set: $lastbag to &quot;purple bag&quot;)]
Expand All @@ -150,7 +153,7 @@ tw-link.visited:hover

(if: $lastbag is &quot;purple bag&quot;)[(if: $purplebag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](else:)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]](if: $lastbag is &quot;orange bag&quot;)[(if: $orangebag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](else:)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]](if: $lastbag is &quot;green bag&quot;)[(if: $greenbag is &quot;good potion&quot;)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](else:)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]]

[[Next]]</tw-passagedata><tw-passagedata pid="9" name="Switch your bag?" tags="" position="267,810" size="100,100">(if: $switched is &quot;false&quot; and $playerchoice1 is &quot;purple bag&quot;)[(if: $hostchoice1 is &quot;orange bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;green bag&quot;) You choose to switch to the green bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;purple bag&quot;)[(if: $hostchoice1 is &quot;green bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;orange bag&quot;) You choose to switch to the orange bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;orange bag&quot;)[(if: $hostchoice1 is &quot;green bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;purple bag&quot;) You choose to switch to the purple bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;orange bag&quot;)[(if: $hostchoice1 is &quot;purple bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;green bag&quot;) You choose to switch to the green bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;green bag&quot;)[(if: $hostchoice1 is &quot;purple bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;orange bag&quot;) You choose to switch to the orange bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;green bag&quot;)[(if: $hostchoice1 is &quot;orange bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;purple bag&quot;) You choose to switch to the purple bag.]]
[[Next]]</tw-passagedata><tw-passagedata pid="9" name="Switch your bag?" tags="" position="217,812" size="100,100">(if: $switched is &quot;false&quot; and $playerchoice1 is &quot;purple bag&quot;)[(if: $hostchoice1 is &quot;orange bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;green bag&quot;) You choose to switch to the green bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;purple bag&quot;)[(if: $hostchoice1 is &quot;green bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;orange bag&quot;) You choose to switch to the orange bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;orange bag&quot;)[(if: $hostchoice1 is &quot;green bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;purple bag&quot;) You choose to switch to the purple bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;orange bag&quot;)[(if: $hostchoice1 is &quot;purple bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;green bag&quot;) You choose to switch to the green bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;green bag&quot;)[(if: $hostchoice1 is &quot;purple bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;orange bag&quot;) You choose to switch to the orange bag.]](if: $switched is &quot;false&quot; and $playerchoice1 is &quot;green bag&quot;)[(if: $hostchoice1 is &quot;orange bag&quot;)[(set: $switched to &quot;true&quot;)(set: $playerchoice1 to &quot;purple bag&quot;) You choose to switch to the purple bag.]]

(if: $playerchoice1 is &quot;purple bag&quot;)[&lt;img src=&quot;https://i.imgur.com/6JYHB1y.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt;](if: $playerchoice1 is &quot;orange bag&quot;)[&lt;img src=&quot;https://i.imgur.com/cV1W71R.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt;](if: $playerchoice1 is &quot;green bag&quot;)[&lt;img src=&quot;https://i.imgur.com/f7l3t11.png&quot; alt=&quot;purple bag shut&quot; height=&quot;250&quot; width=&quot;300&quot; /&gt;]

Expand All @@ -160,14 +163,15 @@ tw-link.visited:hover

(if: $playerchoice1 is &quot;purple bag&quot;)[(if: $purplebag is &quot;bad potion&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](else:)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]](if: $playerchoice1 is &quot;orange bag&quot;)[(if: $orangebag is &quot;bad potion&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](else:)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]](if: $playerchoice1 is &quot;green bag&quot;)[(if: $greenbag is &quot;bad potion&quot;)[&lt;img src=&quot;https://i.imgur.com/BjOXUZU.png&quot; alt=&quot;bad potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;](else:)[&lt;img src=&quot;https://i.imgur.com/lIbXqGr.png&quot; alt=&quot;good potion&quot; height=&quot;300&quot; width=&quot;300&quot;/&gt;]]

[[Would you like to play again? -&gt;Start]]</tw-passagedata><tw-passagedata pid="11" name="Story Intro" tags="" position="301,10.5" size="100,100">[You run down the old dirt path, the only one that leads into town.]
[[Would you like to play again? -&gt;Start]]
[[Or start from beginning?-&gt;Title]]</tw-passagedata><tw-passagedata pid="11" name="Story Intro" tags="" position="301,10.5" size="100,100">[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]]
</tw-passagedata><tw-passagedata pid="12" name="You decline." tags="" position="496,154.5" size="100,100">[For some reason, you say //no// to playing.]
</tw-passagedata><tw-passagedata pid="12" name="You decline." tags="" position="592,141.5" size="100,100">[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: &quot;wins&quot;, &quot;loses&quot;))
Expand All @@ -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...-&gt;Story Intro]] </tw-passagedata><tw-passagedata pid="13" name="Run" tags="" position="541,12.5" size="100,100">[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...-&gt;Story Intro]] </tw-passagedata><tw-passagedata pid="13" name="Run" tags="" position="605,10.5" size="100,100">[But you like them visiting for the games. Each time they visit, they play a game with one of the villagers.]

[This time, you&#39;re hoping they&#39;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.]]</tw-passagedata><tw-passagedata pid="14" name="Run faster." tags="" position="292,177.5" size="100,100">[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.]]</tw-passagedata><tw-passagedata pid="14" name="Run faster." tags="" position="311,275.5" size="100,100">[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.]

Expand All @@ -201,7 +205,7 @@ tw-link.visited:hover

[[You accept the offer.-&gt;Start]]
[[You decline.]]
</tw-passagedata><tw-passagedata pid="15" name="Continue at your pace." tags="" position="865,131.5" size="100,100">[You&#39;re already pretty tired from yesterday. You think you can just make it at the current pace.]
</tw-passagedata><tw-passagedata pid="15" name="Continue at your pace." tags="" position="932,121.5" size="100,100">[You&#39;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.]

Expand Down

0 comments on commit e5e611f

Please sign in to comment.