{"pages":{"start":[{"say":{"label":"<p>Here&#39;s a prototype for a future tease with placeholder text and no images.<\/p>"}},{"say":{"label":"<p>Please play through and try to break it.<\/p>"}},{"say":{"label":"<p>If you have any advice on how to make the code cleaner or how to make things more user-friendly, please let me know!<\/p>"}},{"say":{"label":"<p>The premise is that you signed up for a femdom matchmaking service.<\/p><p>Six mistresses were interested and will make you an offer based on their kinks.<\/p><p>You will have the option to rank the mistresses according to your preference, which will change your odds of winding up with them, but the one who gets to dominate you will be up to some rolls of the dice.<\/p>"}},{"choice":{"options":[{"label":"Ready","commands":[{"goto":{"target":"Intro*"}}]}]}}],"ReviewAnna":[{"say":{"label":"<p>The offer was Anal Play. They&#39;re all alliterative, keep up.<\/p>"}},{"choice":{"options":[{"label":"Okay","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}],"IntroAnna":[{"disable":{"target":"IntroAnna"}},{"eval":{"script":"missCount++;\r\nmissArray.push(\"Anna\");"}},{"say":{"label":"<p>I&#39;m Anna. A is for Anal Play!<\/p>"}},{"noop":{"notification.create":{"buttonLabel":"Anna","id":"notifyAnna","title":"Anna"}}},{"choice":{"options":[{"label":"Intense.","commands":[{"goto":{"target":"populateNotifications"}}]}]}},{"noop":{"choice":{"options":[{"label":"Intense.","commands":[{"if":{"condition":"missCount < 6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"goto":{"target":"intermission"}}]}}]}]}}}],"RollAnna":[{"if":{"condition":"missCount == 6","commands":[{"say":{"label":"<p><eval>missArray[5]<\/eval> is angry that you think so little of her. She&#39;ll be extra harsh<\/p>"}},{"choice":{"options":[{"label":"Roll 1d12","commands":[{"eval":{"script":"dieMax = 12;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[5]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 5","commands":[{"say":{"label":"<p><eval>missArray[4]<\/eval> isn&#39;t thrilled with her rank. She&#39;ll be fairly harsh.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d10","commands":[{"eval":{"script":"dieMax = 10;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[4]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 4","commands":[{"say":{"label":"<p><eval>missArray[3]<\/eval> isn&#39;t thrilled with her rank. She won&#39;t go easy on you.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d8","commands":[{"eval":{"script":"dieMax = 8;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[3]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 3","commands":[{"say":{"label":"<p><eval>missArray[2]<\/eval> is waiting for you. <\/p>"}},{"choice":{"options":[{"label":"Roll 1d6","commands":[{"eval":{"script":"dieMax = 6;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! <eval>missArray[2]<\/eval> gets you. Hey, it could have been much worse.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 2","commands":[{"say":{"label":"<p><eval>missArray[1]<\/eval> is happy that you&#39;re both on the same page. Mostly. She&#39;ll go easy on you if you ask nicely.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d4","commands":[{"eval":{"script":"dieMax = 4;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You end up with <eval>missArray[1]<\/eval>. Not too shabby!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 1","commands":[{"say":{"label":"<p><eval>missArray[0]<\/eval> is thrilled that she was your first choice! The two of you will be having so much fun together!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}]}},{"choice":{"options":[{"label":"Move on","commands":[{"eval":{"script":"missCount--;\r\nNotification.get(notifyArray[missCount]).remove();\r\npages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"populateNotifications":[{"eval":{"script":"notifyCount++;\r\n\r\nif (notifyCount>missCount) {\r\n  notifyCount = 0;\r\n  pages.goto('intermission');\r\n}"}},{"if":{"condition":"notifyCount == 1","commands":[{"notification.create":{"id":"one"}},{"eval":{"script":"Notification.get('one').setTitle(missArray[notifyCount-1]);"}}]}},{"if":{"condition":"notifyCount == 2","commands":[{"notification.create":{"id":"two"}},{"eval":{"script":"Notification.get('two').setTitle(missArray[notifyCount-1]);"}}]}},{"if":{"condition":"notifyCount == 3","commands":[{"notification.create":{"id":"three"}},{"eval":{"script":"Notification.get('three').setTitle(missArray[notifyCount-1]);"}}]}},{"if":{"condition":"notifyCount == 4","commands":[{"notification.create":{"id":"four"}},{"eval":{"script":"Notification.get('four').setTitle(missArray[notifyCount-1]);"}}]}},{"if":{"condition":"notifyCount == 5","commands":[{"notification.create":{"id":"five"}},{"eval":{"script":"Notification.get('five').setTitle(missArray[notifyCount-1]);"}}]}},{"if":{"condition":"notifyCount == 6","commands":[{"notification.create":{"id":"six"}},{"eval":{"script":"Notification.get('six').setTitle(missArray[notifyCount-1]);"}}]}},{"goto":{"target":"populateNotifications"}}],"IntroCady":[{"disable":{"target":"IntroCady"}},{"eval":{"script":"missCount++;\r\nmissArray.push(\"Cady\");"}},{"say":{"label":"<p>I&#39;m Cady. C is for Cuckolding!<\/p>"}},{"noop":{"notification.create":{"id":"notifyCady","title":"Cady"}}},{"choice":{"options":[{"label":"Humiliating.","commands":[{"goto":{"target":"populateNotifications"}}]}]}},{"noop":{"choice":{"options":[{"label":"Humiliating","commands":[{"if":{"condition":"missCount < 6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"goto":{"target":"intermission"}}]}}]}]}}}],"IntroBeth":[{"disable":{"target":"IntroBeth"}},{"eval":{"script":"missCount++;\r\nmissArray.push(\"Beth\");"}},{"say":{"label":"<p>I&#39;m Beth. B is for Ballbusting!<\/p>"}},{"noop":{"notification.create":{"id":"notifyBeth","title":"Beth"}}},{"choice":{"options":[{"label":"Scary.","commands":[{"goto":{"target":"populateNotifications"}}]}]}},{"noop":{"choice":{"options":[{"label":"Scary.","commands":[{"if":{"condition":"missCount < 6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"goto":{"target":"intermission"}}]}}]}]}}}],"IntroDana":[{"disable":{"target":"IntroDana"}},{"eval":{"script":"missCount++;\r\nmissArray.push(\"Dana\");"}},{"say":{"label":"<p>I&#39;m Dana. D is for Denial!<\/p>"}},{"noop":{"notification.create":{"id":"notifyDana","title":"Dana"}}},{"choice":{"options":[{"label":"Frustrating.","commands":[{"goto":{"target":"populateNotifications"}}]}]}},{"noop":{"choice":{"options":[{"label":"Frustrating","commands":[{"if":{"condition":"missCount < 6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"goto":{"target":"intermission"}}]}}]}]}}}],"IntroEmma":[{"disable":{"target":"IntroEmma"}},{"eval":{"script":"missCount++;\r\nmissArray.push(\"Emma\");"}},{"say":{"label":"<p>I&#39;m Emma. E is for E-stim!<\/p>"}},{"noop":{"notification.create":{"buttonLabel":"Anna","id":"notifyEmma","title":"Emma"}}},{"choice":{"options":[{"label":"Shocking.","commands":[{"goto":{"target":"populateNotifications"}}]}]}},{"noop":{"choice":{"options":[{"label":"Shocking","commands":[{"if":{"condition":"missCount < 6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"goto":{"target":"intermission"}}]}}]}]}}}],"IntroFiona":[{"disable":{"target":"IntroFiona"}},{"eval":{"script":"missCount++;\r\nmissArray.push(\"Fiona\");"}},{"say":{"label":"<p>I&#39;m Fiona. F is for fucking!<\/p>"}},{"noop":{"notification.create":{"buttonLabel":"Anna","id":"notifyFiona","title":"Fiona"}}},{"choice":{"options":[{"label":"Tame.","commands":[{"goto":{"target":"populateNotifications"}}]}]}},{"noop":{"choice":{"options":[{"label":"Tame.","commands":[{"if":{"condition":"missCount < 6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"goto":{"target":"intermission"}}]}}]}]}}}],"IntroGemma":[{"disable":{"target":"IntroGemma"}},{"eval":{"script":"missCount++;\r\nmissArray.push(\"Gemma\");"}},{"say":{"label":"<p>I&#39;m Gemma. G is for Gentrification!<\/p>"}},{"noop":{"notification.create":{"buttonLabel":"Anna","id":"notifyGemma","title":"Gemma"}}},{"choice":{"options":[{"label":"Well hooray for my property value.","commands":[{"goto":{"target":"populateNotifications"}}]}]}},{"noop":{"choice":{"options":[{"label":"Well hooray for my property value.","commands":[{"if":{"condition":"missCount < 6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"goto":{"target":"intermission"}}]}}]}]}}}],"rollStart":[{"say":{"label":"<p>Each mistress will get a chance to own you.<\/p>"}},{"say":{"label":"<p>Starting with your lowest rank mistress, you will roll a die.<\/p><p>If you roll a 1, she takes control of you.<\/p><p>If you roll the maximum for that die, you edge and roll again.<\/p><p>If you roll anything else, you move on to the next mistress.<\/p>"}},{"say":{"label":"<p>The dice have progressively fewer faces (going from 12 to 4), so your odds of ending up with each mistress will improve. Roll past your second choice and you get your first choice automatically!<\/p>"}},{"choice":{"options":[{"label":"Ready","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"ReviewBeth":[{"say":{"label":"<p>The offer was Ballbusting. They&#39;re all alliterative, keep up.<\/p>"}},{"choice":{"options":[{"label":"Okay","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}],"ReviewCady":[{"say":{"label":"<p>The offer was Cuckolding. Lots of C words, forgetting this one is understandable.<\/p>"}},{"choice":{"options":[{"label":"Okay","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}],"ReviewDana":[{"say":{"label":"<p>The offer was Denial. They&#39;re all alliterative, keep up.<\/p>"}},{"choice":{"options":[{"label":"Okay","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}],"ReviewEmma":[{"say":{"label":"<p>The offer was E-stim. They&#39;re all alliterative, keep up.<\/p>"}},{"choice":{"options":[{"label":"Okay","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}],"ReviewFiona":[{"say":{"label":"<p>The offer was Fucking. They&#39;re all alliterative, keep up.<\/p>"}},{"choice":{"options":[{"label":"Okay","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}],"ReviewGemma":[{"say":{"label":"<p>There will be Starbucks. Starbucks everywhere.<\/p>"}},{"choice":{"options":[{"label":"Okay","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}],"RollBeth":[{"if":{"condition":"missCount == 6","commands":[{"say":{"label":"<p><eval>missArray[5]<\/eval> is angry that you think so little of her. She&#39;ll be extra harsh<\/p>"}},{"choice":{"options":[{"label":"Roll 1d12","commands":[{"eval":{"script":"dieMax = 12;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[5]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 5","commands":[{"say":{"label":"<p><eval>missArray[4]<\/eval> isn&#39;t thrilled with her rank. She&#39;ll be fairly harsh.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d10","commands":[{"eval":{"script":"dieMax = 10;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[4]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 4","commands":[{"say":{"label":"<p><eval>missArray[3]<\/eval> isn&#39;t thrilled with her rank. She won&#39;t go easy on you.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d8","commands":[{"eval":{"script":"dieMax = 8;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[3]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 3","commands":[{"say":{"label":"<p><eval>missArray[2]<\/eval> is waiting for you. <\/p>"}},{"choice":{"options":[{"label":"Roll 1d6","commands":[{"eval":{"script":"dieMax = 6;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! <eval>missArray[2]<\/eval> gets you. Hey, it could have been much worse.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 2","commands":[{"say":{"label":"<p><eval>missArray[1]<\/eval> is happy that you&#39;re both on the same page. Mostly. She&#39;ll go easy on you if you ask nicely.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d4","commands":[{"eval":{"script":"dieMax = 4;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You end up with <eval>missArray[1]<\/eval>. Not too shabby!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 1","commands":[{"say":{"label":"<p><eval>missArray[0]<\/eval> is thrilled that she was your first choice! The two of you will be having so much fun together!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}]}},{"choice":{"options":[{"label":"Move on","commands":[{"eval":{"script":"missCount--;\r\nNotification.get(notifyArray[missCount]).remove();\r\npages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"RollCady":[{"if":{"condition":"missCount == 6","commands":[{"say":{"label":"<p><eval>missArray[5]<\/eval> is angry that you think so little of her. She&#39;ll be extra harsh<\/p>"}},{"choice":{"options":[{"label":"Roll 1d12","commands":[{"eval":{"script":"dieMax = 12;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[5]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 5","commands":[{"say":{"label":"<p><eval>missArray[4]<\/eval> isn&#39;t thrilled with her rank. She&#39;ll be fairly harsh.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d10","commands":[{"eval":{"script":"dieMax = 10;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[4]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 4","commands":[{"say":{"label":"<p><eval>missArray[3]<\/eval> isn&#39;t thrilled with her rank. She won&#39;t go easy on you.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d8","commands":[{"eval":{"script":"dieMax = 8;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[3]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 3","commands":[{"say":{"label":"<p><eval>missArray[2]<\/eval> is waiting for you. <\/p>"}},{"choice":{"options":[{"label":"Roll 1d6","commands":[{"eval":{"script":"dieMax = 6;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! <eval>missArray[2]<\/eval> gets you. Hey, it could have been much worse.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 2","commands":[{"say":{"label":"<p><eval>missArray[1]<\/eval> is happy that you&#39;re both on the same page. Mostly. She&#39;ll go easy on you if you ask nicely.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d4","commands":[{"eval":{"script":"dieMax = 4;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You end up with <eval>missArray[1]<\/eval>. Not too shabby!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 1","commands":[{"say":{"label":"<p><eval>missArray[0]<\/eval> is thrilled that she was your first choice! The two of you will be having so much fun together!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}]}},{"choice":{"options":[{"label":"Move on","commands":[{"eval":{"script":"missCount--;\r\nNotification.get(notifyArray[missCount]).remove();\r\npages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"RollDana":[{"if":{"condition":"missCount == 6","commands":[{"say":{"label":"<p><eval>missArray[5]<\/eval> is angry that you think so little of her. She&#39;ll be extra harsh<\/p>"}},{"choice":{"options":[{"label":"Roll 1d12","commands":[{"eval":{"script":"dieMax = 12;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[5]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 5","commands":[{"say":{"label":"<p><eval>missArray[4]<\/eval> isn&#39;t thrilled with her rank. She&#39;ll be fairly harsh.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d10","commands":[{"eval":{"script":"dieMax = 10;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[4]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 4","commands":[{"say":{"label":"<p><eval>missArray[3]<\/eval> isn&#39;t thrilled with her rank. She won&#39;t go easy on you.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d8","commands":[{"eval":{"script":"dieMax = 8;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[3]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 3","commands":[{"say":{"label":"<p><eval>missArray[2]<\/eval> is waiting for you. <\/p>"}},{"choice":{"options":[{"label":"Roll 1d6","commands":[{"eval":{"script":"dieMax = 6;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! <eval>missArray[2]<\/eval> gets you. Hey, it could have been much worse.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 2","commands":[{"say":{"label":"<p><eval>missArray[1]<\/eval> is happy that you&#39;re both on the same page. Mostly. She&#39;ll go easy on you if you ask nicely.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d4","commands":[{"eval":{"script":"dieMax = 4;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You end up with <eval>missArray[1]<\/eval>. Not too shabby!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 1","commands":[{"say":{"label":"<p><eval>missArray[0]<\/eval> is thrilled that she was your first choice! The two of you will be having so much fun together!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}]}},{"choice":{"options":[{"label":"Move on","commands":[{"eval":{"script":"missCount--;\r\nNotification.get(notifyArray[missCount]).remove();\r\npages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"RollEmma":[{"if":{"condition":"missCount == 6","commands":[{"say":{"label":"<p><eval>missArray[5]<\/eval> is angry that you think so little of her. She&#39;ll be extra harsh<\/p>"}},{"choice":{"options":[{"label":"Roll 1d12","commands":[{"eval":{"script":"dieMax = 12;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[5]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 5","commands":[{"say":{"label":"<p><eval>missArray[4]<\/eval> isn&#39;t thrilled with her rank. She&#39;ll be fairly harsh.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d10","commands":[{"eval":{"script":"dieMax = 10;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[4]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 4","commands":[{"say":{"label":"<p><eval>missArray[3]<\/eval> isn&#39;t thrilled with her rank. She won&#39;t go easy on you.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d8","commands":[{"eval":{"script":"dieMax = 8;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[3]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 3","commands":[{"say":{"label":"<p><eval>missArray[2]<\/eval> is waiting for you. <\/p>"}},{"choice":{"options":[{"label":"Roll 1d6","commands":[{"eval":{"script":"dieMax = 6;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! <eval>missArray[2]<\/eval> gets you. Hey, it could have been much worse.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 2","commands":[{"say":{"label":"<p><eval>missArray[1]<\/eval> is happy that you&#39;re both on the same page. Mostly. She&#39;ll go easy on you if you ask nicely.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d4","commands":[{"eval":{"script":"dieMax = 4;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You end up with <eval>missArray[1]<\/eval>. Not too shabby!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 1","commands":[{"say":{"label":"<p><eval>missArray[0]<\/eval> is thrilled that she was your first choice! The two of you will be having so much fun together!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}]}},{"choice":{"options":[{"label":"Move on","commands":[{"eval":{"script":"missCount--;\r\nNotification.get(notifyArray[missCount]).remove();\r\npages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"RollFiona":[{"if":{"condition":"missCount == 6","commands":[{"say":{"label":"<p><eval>missArray[5]<\/eval> is angry that you think so little of her. She&#39;ll be extra harsh<\/p>"}},{"choice":{"options":[{"label":"Roll 1d12","commands":[{"eval":{"script":"dieMax = 12;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[5]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 5","commands":[{"say":{"label":"<p><eval>missArray[4]<\/eval> isn&#39;t thrilled with her rank. She&#39;ll be fairly harsh.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d10","commands":[{"eval":{"script":"dieMax = 10;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[4]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 4","commands":[{"say":{"label":"<p><eval>missArray[3]<\/eval> isn&#39;t thrilled with her rank. She won&#39;t go easy on you.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d8","commands":[{"eval":{"script":"dieMax = 8;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[3]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 3","commands":[{"say":{"label":"<p><eval>missArray[2]<\/eval> is waiting for you. <\/p>"}},{"choice":{"options":[{"label":"Roll 1d6","commands":[{"eval":{"script":"dieMax = 6;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! <eval>missArray[2]<\/eval> gets you. Hey, it could have been much worse.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 2","commands":[{"say":{"label":"<p><eval>missArray[1]<\/eval> is happy that you&#39;re both on the same page. Mostly. She&#39;ll go easy on you if you ask nicely.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d4","commands":[{"eval":{"script":"dieMax = 4;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You end up with <eval>missArray[1]<\/eval>. Not too shabby!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 1","commands":[{"say":{"label":"<p><eval>missArray[0]<\/eval> is thrilled that she was your first choice! The two of you will be having so much fun together!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}]}},{"choice":{"options":[{"label":"Move on","commands":[{"eval":{"script":"missCount--;\r\nNotification.get(notifyArray[missCount]).remove();\r\npages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"RollGemma":[{"if":{"condition":"missCount == 6","commands":[{"say":{"label":"<p><eval>missArray[5]<\/eval> is angry that you think so little of her. She&#39;ll be extra harsh<\/p>"}},{"choice":{"options":[{"label":"Roll 1d12","commands":[{"eval":{"script":"dieMax = 12;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[5]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 5","commands":[{"say":{"label":"<p><eval>missArray[4]<\/eval> isn&#39;t thrilled with her rank. She&#39;ll be fairly harsh.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d10","commands":[{"eval":{"script":"dieMax = 10;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[4]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 4","commands":[{"say":{"label":"<p><eval>missArray[3]<\/eval> isn&#39;t thrilled with her rank. She won&#39;t go easy on you.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d8","commands":[{"eval":{"script":"dieMax = 8;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You&#39;re stuck with mistress <eval>missArray[3]<\/eval>.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 3","commands":[{"say":{"label":"<p><eval>missArray[2]<\/eval> is waiting for you. <\/p>"}},{"choice":{"options":[{"label":"Roll 1d6","commands":[{"eval":{"script":"dieMax = 6;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! <eval>missArray[2]<\/eval> gets you. Hey, it could have been much worse.<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 2","commands":[{"say":{"label":"<p><eval>missArray[1]<\/eval> is happy that you&#39;re both on the same page. Mostly. She&#39;ll go easy on you if you ask nicely.<\/p>"}},{"choice":{"options":[{"label":"Roll 1d4","commands":[{"eval":{"script":"dieMax = 4;\r\nroll = Math.floor(Math.random()*dieMax+1);"}},{"if":{"condition":"roll == dieMax","commands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. Edge and roll again!<\/p>"}},{"choice":{"options":[{"label":"Edged","commands":[{"eval":{"script":"pages.goto('Roll'+missArray[missCount-1]);"}}]}]}}]}},{"if":{"condition":"roll == 1","commands":[{"say":{"label":"<p>You rolled a 1! You end up with <eval>missArray[1]<\/eval>. Not too shabby!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}],"elseCommands":[{"say":{"label":"<p>You rolled a <eval>roll<\/eval>. You get to move on to the next mistress.<\/p>"}}]}}]}]}}]}},{"if":{"condition":"missCount == 1","commands":[{"say":{"label":"<p><eval>missArray[0]<\/eval> is thrilled that she was your first choice! The two of you will be having so much fun together!<\/p>"}},{"say":{"label":"<p>Ending the game.<\/p>"}},{"end":{}}]}},{"choice":{"options":[{"label":"Move on","commands":[{"eval":{"script":"missCount--;\r\nNotification.get(notifyArray[missCount]).remove();\r\npages.goto('Roll'+missArray[missCount-1]);"}}]}]}}],"intermissionSubMenus":[{"say":{"label":"<p>Options for Mistress <eval>missArray[currentRank-1]<\/eval><\/p>"}},{"choice":{"options":[{"label":"Review offer","commands":[{"eval":{"script":"pages.goto('Review'+missArray[currentRank-1]);"}}]},{"label":"Change Rank","commands":[{"say":{"label":"<p>What rank would you like to move <eval>missArray[currentRank-1]<\/eval> to?<\/p>"}},{"choice":{"options":[{"label":"Rank 1","commands":[{"eval":{"script":"targetRank = 1;\r\nswapRank(missArray, currentRank-1, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"visible":"$(currentRank!==1) && (missCount>=1)"},{"label":"Rank 2","commands":[{"eval":{"script":"targetRank = 2;\r\nswapRank(missArray, currentRank-1, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"visible":"$(currentRank!==2) && (missCount>=2)"},{"label":"Rank 3","commands":[{"eval":{"script":"targetRank = 3;\r\nswapRank(missArray, currentRank-1, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"visible":"$(currentRank!==3) && (missCount>=3)"},{"label":"Rank 4","commands":[{"eval":{"script":"targetRank = 4;\r\nswapRank(missArray, currentRank-1, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"visible":"$(currentRank!==4) && (missCount>=4)"},{"label":"Rank 5","commands":[{"eval":{"script":"targetRank = 5;\r\nswapRank(missArray, currentRank-1, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"visible":"$(currentRank!==5) && (missCount>=5)"},{"label":"Rank 6","commands":[{"eval":{"script":"targetRank = 6;\r\nswapRank(missArray, currentRank-1, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"visible":"$(currentRank!==6) && (missCount>=6)"},{"label":"Go Back","commands":[{"goto":{"target":"intermissionSubMenus"}}]}]}}]},{"label":"Go Back","commands":[{"goto":{"target":"intermission"}}]}]}}],"intermission-old":[{"if":{"condition":"missCount == 1","commands":[{"goto":{"target":"Intro*"}}]}},{"if":{"condition":"missCount < 6","commands":[{"say":{"label":"<p>You can review what each mistress has in store and rank your preferences before moving on to the next offer.<\/p>","mode":"instant"}}],"elseCommands":[{"say":{"label":"<p>We&#39;re all done with the introductions. You can adjust your ranks one last time before we proceed.<\/p>","mode":"instant"}}]}},{"choice":{"options":[{"label":"Rank 1","commands":[{"say":{"label":"<p>Options for Mistress <eval>missArray[0]<\/eval><\/p>"}},{"choice":{"options":[{"label":"Review offer","commands":[{"eval":{"script":"pages.goto('Review'+missArray[0]);"}}]},{"label":"Change Rank","commands":[{"say":{"label":"<p>What rank would you like to move <eval>missArray[0]<\/eval> to?<\/p>"}},{"prompt":{"variable":"targetRank"}},{"if":{"condition":"targetRank<=missCount","commands":[{"eval":{"script":"swapRank(missArray, 0, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"elseCommands":[{"say":{"label":"<p>That number doesn&#39;t make any sense!<\/p>"}},{"goto":{"target":"intermission"}}]}}]},{"label":"Go Back","commands":[{"goto":{"target":"intermission"}}]}]}}]},{"label":"Rank 2","commands":[{"say":{"label":"<p>Options for Mistress <eval>missArray[1]<\/eval><\/p>"}},{"choice":{"options":[{"label":"Review offer","commands":[{"eval":{"script":"pages.goto('Review'+missArray[1]);"}}]},{"label":"Change Rank","commands":[{"say":{"label":"<p>What rank would you like to move <eval>missArray[1]<\/eval> to?<\/p>"}},{"prompt":{"variable":"targetRank"}},{"if":{"condition":"targetRank<=missCount","commands":[{"eval":{"script":"swapRank(missArray, 1, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"elseCommands":[{"say":{"label":"<p>That number doesn&#39;t make any sense!<\/p>"}},{"goto":{"target":"intermission"}}]}}]},{"label":"Go Back","commands":[{"goto":{"target":"intermission"}}]}]}}]},{"label":"Rank 3","commands":[{"say":{"label":"<p>Options for Mistress <eval>missArray[2]<\/eval><\/p>"}},{"choice":{"options":[{"label":"Review offer","commands":[{"eval":{"script":"pages.goto('Review'+missArray[2]);"}}]},{"label":"Change Rank","commands":[{"say":{"label":"<p>What rank would you like to move <eval>missArray[2]<\/eval> to?<\/p>"}},{"prompt":{"variable":"targetRank"}},{"if":{"condition":"targetRank<=missCount","commands":[{"eval":{"script":"swapRank(missArray, 2, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"elseCommands":[{"say":{"label":"<p>That number doesn&#39;t make any sense!<\/p>"}},{"goto":{"target":"intermission"}}]}}]},{"label":"Go Back","commands":[{"goto":{"target":"intermission"}}]}]}}],"visible":"$missCount>2"},{"label":"Rank 4","commands":[{"say":{"label":"<p>Options for Mistress <eval>missArray[3]<\/eval><\/p>"}},{"choice":{"options":[{"label":"Review offer","commands":[{"eval":{"script":"pages.goto('Review'+missArray[3]);"}}]},{"label":"Change Rank","commands":[{"say":{"label":"<p>What rank would you like to move <eval>missArray[3]<\/eval> to?<\/p>"}},{"prompt":{"variable":"targetRank"}},{"if":{"condition":"targetRank<=missCount","commands":[{"eval":{"script":"swapRank(missArray, 3, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"elseCommands":[{"say":{"label":"<p>That number doesn&#39;t make any sense!<\/p>"}},{"goto":{"target":"intermission"}}]}}]},{"label":"Go Back","commands":[{"goto":{"target":"intermission"}}]}]}}],"visible":"$missCount>3"},{"label":"Rank 5","commands":[{"say":{"label":"<p>Options for Mistress <eval>missArray[4]<\/eval><\/p>"}},{"choice":{"options":[{"label":"Review offer","commands":[{"eval":{"script":"pages.goto('Review'+missArray[4]);"}}]},{"label":"Change Rank","commands":[{"say":{"label":"<p>What rank would you like to move <eval>missArray[4]<\/eval> to?<\/p>"}},{"prompt":{"variable":"targetRank"}},{"if":{"condition":"targetRank<=missCount","commands":[{"eval":{"script":"swapRank(missArray, 4, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"elseCommands":[{"say":{"label":"<p>That number doesn&#39;t make any sense!<\/p>"}},{"goto":{"target":"intermission"}}]}}]},{"label":"Go Back","commands":[{"goto":{"target":"intermission"}}]}]}}],"visible":"$missCount>4"},{"label":"Rank 6","commands":[{"say":{"label":"<p>Options for Mistress <eval>missArray[5]<\/eval><\/p>"}},{"choice":{"options":[{"label":"Review offer","commands":[{"eval":{"script":"pages.goto('Review'+missArray[5]);"}}]},{"label":"Change Rank","commands":[{"say":{"label":"<p>What rank would you like to move <eval>missArray[5]<\/eval> to?<\/p>"}},{"prompt":{"variable":"targetRank"}},{"if":{"condition":"targetRank<=missCount","commands":[{"eval":{"script":"swapRank(missArray, 5, targetRank-1);"}},{"goto":{"target":"populateNotifications"}}],"elseCommands":[{"say":{"label":"<p>That number doesn&#39;t make any sense!<\/p>"}},{"goto":{"target":"intermission"}}]}}]},{"label":"Go Back","commands":[{"goto":{"target":"intermission"}}]}]}}],"visible":"$missCount>5"},{"label":"Done","commands":[{"if":{"condition":"missCount<6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"say":{"label":"<p>Are you sure?<\/p>"}},{"choice":{"options":[{"label":"Yes, let's continue","commands":[{"goto":{"target":"rollStart"}}],"color":"#4caf50"},{"label":"Wait! Go back!","commands":[{"goto":{"target":"intermission"}}],"color":"#fdd835"}]}}]}}],"color":"#4caf50"}]}}],"intermission":[{"if":{"condition":"missCount == 1","commands":[{"goto":{"target":"Intro*"}}]}},{"if":{"condition":"missCount < 6","commands":[{"say":{"label":"<p>You can review what each mistress has in store and rank your preferences before moving on to the next offer.<\/p>","mode":"instant"}}],"elseCommands":[{"say":{"label":"<p>We&#39;re all done with the introductions. You can adjust your ranks one last time before we proceed.<\/p>","mode":"instant"}}]}},{"choice":{"options":[{"label":"Rank 1","commands":[{"eval":{"script":"currentRank = 1;"}},{"goto":{"target":"intermissionSubMenus"}}]},{"label":"Rank 2","commands":[{"eval":{"script":"currentRank = 2;"}},{"goto":{"target":"intermissionSubMenus"}}]},{"label":"Rank 3","commands":[{"eval":{"script":"currentRank = 3;"}},{"goto":{"target":"intermissionSubMenus"}}],"visible":"$missCount>2"},{"label":"Rank 4","commands":[{"eval":{"script":"currentRank = 4;"}},{"goto":{"target":"intermissionSubMenus"}}],"visible":"$missCount>3"},{"label":"Rank 5","commands":[{"eval":{"script":"currentRank = 5;"}},{"goto":{"target":"intermissionSubMenus"}}],"visible":"$missCount>4"},{"label":"Rank 6","commands":[{"eval":{"script":"currentRank = 6;"}},{"goto":{"target":"intermissionSubMenus"}}],"visible":"$missCount>5"},{"label":"Done","commands":[{"if":{"condition":"missCount<6","commands":[{"goto":{"target":"Intro*"}}],"elseCommands":[{"say":{"label":"<p>Are you sure?<\/p>"}},{"choice":{"options":[{"label":"Yes, let's continue","commands":[{"goto":{"target":"rollStart"}}],"color":"#4caf50"},{"label":"Wait! Go back!","commands":[{"goto":{"target":"intermission"}}],"color":"#fdd835"}]}}]}}],"color":"#4caf50"}]}}]},"init":"var missCount = 0; \/\/Current number of mistresses in play. Increases as you go through Intro pages, decrements as you go through rolls.\r\nvar missArray = []; \/\/Array with only the mistresses visited so far\r\nvar notifyCount = 0; \/\/Loops over this when repopulating notifications with each new mistress or rank change.\r\nvar notifyArray = ['one', 'two', 'three', 'four', 'five', 'six']; \/\/just the string identifiers of the six notifications in order for when you need to close them.\r\nvar currentRank = 0; \/\/ Used when selecting a mistress in intermission. Indexes from 1 to be in step with misscount, so you should generally call missArray[currentRank-1]\r\nvar targetRank = 0; \/\/Used input to change rank of a mistress from their current one\r\nvar roll = 0;\r\nvar dieMax = 0; \/\/Max value of each die. 12 for a d12 and so on.\r\n\r\n\r\n\r\n\/\/Stolen stackoverfunction to reposition array elements. Doesn't swap so much as move an existing element to a new position then bump everything else up or down based on the empty space created.\r\nfunction swapRank(arr, fromIndex, toIndex) {\r\n    var element = arr[fromIndex];\r\n    arr.splice(fromIndex, 1);\r\n    arr.splice(toIndex, 0, element);\r\n}\r\n\r\n\/*\r\nThe tease randomly walks you through 6 unique Intro pages each representing a mistress.\r\nIntro pages send you to populateNotifications, which loops back to itself to create a notification for each \r\nmistress with their name, based on the order they appear in the missArray array.\r\npopulatenotifications sends you to intermission once it hits the end of missArray. \r\nintermission lets you review previous mistress offers, change their rank (which sends you back to populateNotifications \r\nto create a new list whose vertical order reflects their changed ranks), or move on to the next mistress (Intro*) or \r\nthe next part of the tease if you've found 6 mistresses (rollStart)\r\nrollStart sends you to the 'Roll' page for each mistress from lowest to highest rank.\r\nRNG determines if you advance. The tease ends if you roll a 1 or get to your highest-ranked mistress.\r\n*\/","modules":{"notification":{}}}