(set: $food to " ") \ (set: $inventory to (a:))\ (set: $Customer1 to false)\ (set: $Customer2 to false)\ (set: $Customer3 to false)\ <!-- The above portion initializes all the variables we need for the story. If you need a new variable, it's best to declare it (set:) at the start of the story so that we don't run into any problems down the line!--> I am introducing the character [[Juan]] They wake up in their [[bedroom->Juan's room]]. |ntbk>[They see their notebook on their bedside table... do you wanna (link:"get it")[(hide:?ntbk)+(show:?ntbk_after)+(set:$inventory to $inventory + (a:"notebook"))]?] |ntbk_after)[Juan got their notebook!] Introduce the choice mechanics! Juan can pick from a set of meals to put up for their menu for the day. [[Food 1]] [[Food 2]] [[Food 3]] This passage describes who Juan is(set: $food to "Food 1") This passage describes what happens when Juan picks $food Now we [[open]] the store! (set: $food to "Food 2") This passage describes what happens when Juan picks $food Now we [[open]] the store!(set: $food to "Food 3") This passage describes what happens when Juan picks $food Now we [[open]] the store!The store is serving $food A figure approaches, taking a seat at a table. "I'll have $food, please." "Coming right up! Here's your order!" "Wow, thank you. By the way, you're invited to this big dinner thing." "Woah. I just have a few deliveries to attend to, but I'll get to that!" "Nice, thank you. Bye." The figure leaves. (if:$inventory does not contain "notebook")[ I should probably get my notebook... I think it's in my [[room]].] (else:)[I got my notebook and I'm off to [[work]]!] You are in [[Juan's room]]. Juan sees the notebook on their [[bedside table]]. Juan can leave the room and head to [[work]].(set: $inventory to $inventory + (a:"notebook"))\ Juan has gotten their (text-colour:green)[''notebook''] It's time to go to [[work]]!(if: $inventory contains "notebook")[\ Juan checks their notebook and sees they have to deliver to three customers today. Which one should Juan go to first? (if: $Customer1 is false)[Let's go to [[Customer 1]]!]\ (else:)[We've delivered to Customer 1!] <br> (if: $Customer2 is false)[Let's go to [[Customer 2]]!]\ (else:)[We've delivered to Customer 2!] <br> (if: $Customer3 is false)[Let's go to [[Customer 3]]!]\ (else:)[We've delivered to Customer 3!] <br> (if: $Customer1 is true and $Customer2 is true and $Customer3 is true)["I'm done with my deliveries! It's time to go to [[dinner]]!"] ] (else:)[=\ "Oh no, I don't have my notebook!" "I should go back to my [[room]]..."(set:$Customer1 to true)\ "Here's your food!" "Thanks! Before you go though, do you want a (text-colour:green)[good thing]?" |choice>[\ (link:"Yes")[ (set:$inventory to $inventory+(a:"Good Item 1"))+(hide:?choice)+(show:?after_choice)]\ or \ (link:"No")[(set:$inventory to $inventory + (a:"Bad Item 1"))+(hide:?choice)+(show:?after_choice)]?]\ |after-choice)[=\ (if:$inventory contains "Good Item 1")["Okay! Here's (text-colour:green)[Good Item 1]."] (else-if:$inventory contains "Bad Item 1")["What do you mean no!? Here's (text-colour:red)[Bad Item 1] for you!"] Time to [[deliver->work]] to someone else!(set:$Customer2 to true)\ "Here's your food!" "Thanks! Before you go though, do you want a (text-colour:green)[good thing]?" |choice>[\ (link:"Yes")[ (set:$inventory to $inventory+(a:"Good Item 2"))+(hide:?choice)+(show:?after_choice)]\ or \ (link:"No")[(set:$inventory to $inventory + (a:"Bad Item 2"))+(hide:?choice)+(show:?after_choice)]?]\ |after-choice)[=\ (if:$inventory contains "Good Item 2")["Okay! Here's (text-colour:green)[Good Item 2]."] (else-if:$inventory contains "Bad Item 2")["What do you mean no!? Here's (text-colour:red)[Bad Item 2] for you!"] Time to [[deliver->work]] to someone else!(set:$Customer3 to true)\ "Here's your food!" "Thanks! Before you go though, do you want a (text-colour:green)[good thing]?" |choice>[\ (link:"Yes")[ (set:$inventory to $inventory+(a:"Good Item 3"))+(hide:?choice)+(show:?after_choice)]\ or \ (link:"No")[(set:$inventory to $inventory + (a:"Bad Item 3"))+(hide:?choice)+(show:?after_choice)]?]\ |after-choice)[=\ (if:$inventory contains "Good Item 3")["Okay! Here's (text-colour:green)[Good Item 3]."] (else-if:$inventory contains "Bad Item 3")["What do you mean no!? Here's (text-colour:red)[Bad Item 3] for you!"] Time to [[deliver->work]] to someone else!"Juan! It is time to decide your fate." "Present to us your items three!" Juan places down the items from their bayong... (a:$inventory's 2nd)! (a:$inventory's 3rd)! (a:$inventory's 4th)! "Now... you will be [[judged]]!"(if:$inventory contains "Good Item 1" and "Good Item 2" and "Good Item 3")[You got the (text-colour:green)[good ending]!]\ (else-if:$inventory contains "Bad Item 1" and "Bad Item 2" and "Bad Item 3")[You got the (text-colour:red)[bad ending]!]\ (else:)[You got the (text-colour:yellow)[neutral ending]!]\ <br> <br> <br> <br> (link:"Play again?")[(reload:))]Juan's room is pretty clean.