{ (set: $sanity to 100) (set: $favor to 0) (set: $day to 0) (set: $ticket to 0) (set: $coffee to (datamap: "id", "coffee", "amount", 9, "time", .25, "caffeine", 5)) (set: $tea to (datamap: "id", "tea", "amount", 1, "time", 0, "caffeine", 3)) (set: $soda to (datamap: "id", "soda", "amount", 12, "time", 8, "caffeine", 1)) (set: $none to (datamap: "id", "water", "amount", 0, "caffene", 0)) (set: $preference to $none) } What is your preference on caffinated drinks? [[Tea|settea]] [[Coffee|setcof]] [[Soda|setsoda]] [[None|setnone]]{ (set: $hour to 8) (set: $minute to 0) (set: $day to $day +1) (set: $newtickets to (random:1,3)) (set: $ticket to $ticket + $newtickets) }(display: "start")(if: $preference is $coffee)[(set: $coffee's amount to 0)] (if: $preference is $soda)[(set: $soda's amount to 0)] (display: "drink")(set: $minute to $minute+5) There are { (live: 100ms)[ (if:$coffee's amount<1)[0 cups] (else:)[(print: $coffee's amount) cup(if: $coffee's amount>1)[s]] ]} of coffee left. There are (print: $soda's amount) can(if: $soda's amount>1)[s] of soda left. There's always tea in the drawer and water from the tap too. Which do you grab? { (if: $coffee's amount<1)[ (link: "Brew coffee")[(set: $minute to $minute +15) (set: $coffee's amount to 9)[[Cup of coffee|coffee]]]] (else:)[[[Cup of coffee|coffee]]]} (if: $soda's amount<1)[There is no more soda] (else:)[[[Can of soda|soda]]] [[Cup of tea|tea]] [[Cup of water|water]] [Empty preference]<Empty| (click: ?Empty)[(if: $preference is $coffee)[(set: $coffee's amount to 0)] (if: $preference is $soda)[(set: $soda's amount to 0)]] (set: $preference to $tea) (display: "main")(set: $preference to $coffee) (display: "main")(set: $preference to $soda) (display: "main")(set: $preference to $none) (display: "main"){(if: $coffee's amount<1)[You wait around for the coffee to be done. (set: $time to $time +15) (set: $coffee's amount to 9)]} You grab a cup of coffee and return to your desk.{ (if: $preference is $coffee)[(set: $sanity to $sanity + 15)] (else:)[(set: $sanity to $sanity + 10)] (set: $coffee's amount to $coffee's amount - 1)} (display: "start")You grab a can of soda and return to your desk. (if: $preference is $soda)[(set: $sanity to $sanity + 15)] (else:)[(set: $sanity to $sanity + 10)] (set: $soda's amount to $soda's amount - 1) (display: "start")(set: $minute to $minute +5)You grab a cup of tea and return to your desk. (if: $preference is $tea)[(set: $sanity to $sanity + 15)] (else:)[(set: $sanity to $sanity + 10)] (display: "start")You grab a glass of water and return to your desk. (if: $preference is $none)[(set: $sanity to $sanity + 15)] (else:)[(set: $sanity to $sanity + 10)] (display: "start")You've been at this job for $day day(if: $day>1)[s]. (live: 500ms)[(if:$minute>60)[(set: $hour to $hour+1)(set:$minute to $minute-60)] It is $hour:(if: $minute<10)[(print: "0"+(text:$minute))](else:)[$minute]] You have $ticket ticket(if: $ticket!=1)[s]. What would you like to do? [[Grab a drink|drink]] [[Check tickets|randomticket]] [Add 30 min]<30min| (click: ?30min)[(set:$minute to $minute+30)]{ (if: (either: 0,1) is 1)[It seems that $uname is having an issue with their $equip. They reported that their $equip $symptom.] (else:)[(set: $minute to $minute+5)$uname says there's a problem with the $equip.] } { (set: $minute to $minute +5) (set: $ticket to $ticket -1) (set: $uname to (random: 1,5)) <!-- Go nuts. As many as you want to add --!> (set: $equip to (random: 1,3)) <!-- Starting out with three pieces of equipment. --!> (set: $fault to (random: 1,3)) <!-- Again, this can get higher --!> (set: $symptom to (random: 1,3)) <!-- Whether this randomization is used depends on the fault --!> (if: $uname is 1)[ (set: $uname to "VP")] (if: $uname is 2)[ (set: $uname to "Bob")] (if: $uname is 3)[ (set: $uname to "HoIT")] (if: $uname is 4)[ (set: $uname to "Competant User")] (if: $uname is 5)[ (set: $uname to "Incompetant User")] (if: $equip is 1)[ (set: $equip to "monitor") (if: $fault is 1)[ (set: $fault to "Power cable unplugged") (set: $symptom to "wont turn on")] (if: $fault is 2)[ (set: $fault to "HDMI cable unplugged") (set: $symptom to "is black")] (if: $fault is 3)[ (set: $fault to "Monitor off") (set: $symptom to "is black")] ] (if: $equip is 2)[ (set: $equip to "desktop") (if: $fault is 1)[ (set: $fault to "Power cable unplugged") (set: $symptom to "wont turn on")] (if: $fault is 2)[ (set: $fault to "Desktop missing") (set: $symptom to "wont turn on")] (if: $fault is 3)[ (set: $fault to "Infested") (if: $symptom is 1)[ (set: $symptom to "is being hacked")] (if: $symptom is 2)[ (set: $symptom to "is full of windows")] (if: $symptom is 3)[ (set: $symptom to "is full of viruses")]] ] (if: $equip is 3)[ (set: $equip to "system") (if: $fault is 1)[ (set: $fault to "Password reset") (set: $symptom to "wont log in")] (if: $fault is 2)[ (set: $fault to "HDMI cable unplugged") (set: $symptom to "is black")] (if: $fault is 3)[ (set: $fault to "Infested") (if: $symptom is 1)[ (set: $symptom to "is being hacked")] (if: $symptom is 2)[ (set: $symptom to "is full of windows")] (if: $symptom is 3)[ (set: $symptom to "is full of viruses")]] ] }(display: "ticket")