(click:?link)[ (if:$index < $conversation's length-1)[ (set:$index to $index+1) (replace:?base)[(display:"dialogueBox")](display:"displayableSensor") ](else:)[(go-to:$conversation's $indexe's dialogue)] ](set:$conversation to (a: (datamap: "character", "testMan", "dialogue" , "hello, world ", "expression", 1, "imageLeft","max.png", "imageRight","sasha.png", "imageCenter","none.png", "background","backgroundTest.png" ), (datamap: "character", "test other person", "dialogue" , "hello, world b ", "expression", 1, "imageLeft","max_puff.png", "imageRight","sasha_smile.png", "imageCenter","eris.png", "background",""), (datamap: "character", "test woman", "dialogue" , "hello, world c ", "expression", 1, "imageLeft","sasha.png", "imageRight","", "imageCenter","none.png", "background","bgt2.png"), (datamap: "character", "testMan", "dialogue" , "hello, world f ", "expression", 1, "imageLeft","sasha_smile.png", "imageRight","eris.png", "imageCenter","", "background",""), (datamap: "character", "testMan", "dialogue" , "hello, world f ", "expression", 1, "imageLeft","none.png", "imageRight","none.png", "imageCenter","", "background",""), (datamap: "character", "testMan", "dialogue" , "hello, world f ", "expression", 1, "imageLeft","sasha_smile.png", "imageRight","eris.png", "imageCenter","", "background","bgt3.png"), (datamap: "character", "testMan", "dialogue" , "hello, world f ", "expression", 1, "imageLeft","none.png", "imageRight","none.png", "imageCenter","", "background",""), (datamap: "character", "testMan", "dialogue" , "hello, world f ", "expression", 1, "imageLeft","sasha_smile.png", "imageRight","eris.png", "imageCenter","max.png", "background","bgt4.png"), (datamap: "character", "testMan", "dialogue" , "hello, world f ", "expression", 1, "imageLeft","none.png", "imageRight","none.png", "imageCenter","none.png", "background",""), (datamap: "character", "testMan", "dialogue" , "choice", "expression", 1, "imageLeft","charb.png", "imageRight","", "imageCenter","", "background",""))) (display:"conversationArrayDeclaration")(set:$index to 1) [ name (text:$conversation's $index's character) (text:$conversation's $index's dialogue) [link]<link| ]<base|(click:?link)[(set:$index to $index+1) (replace:?base)[name (text:$conversation's $index's character) (text:$conversation's $index's dialogue) [link]<link| ](click:?link)[(set:$index to $index+1) (replace:?base)[name (text:$conversation's $index's character) (text:$conversation's $index's dialogue) [link]<link| ]]](display:"conversationArrayDeclaration")(set:$index to 1) [(display:"dialogueBox")]<base| (display:"displayableSensor") (display:"dialogueBoxBackground")<div class="dialogueBox">(unless:$conversation's $index's character is "")[(set:$name to $conversation's $index's character)](unless:$name is "_")[<div class="name">(text:$name)</div>](text:$conversation's $index's dialogue) [<img class="nextLink" src="images/next.png"/>]<link|</div> <!--(text:$conversation's $index's image)--> (set:$imageLeftEntry to $conversation's $index's imageLeft) (set:$imageRightEntry to $conversation's $index's imageRight) (set:$backgroundEntry to $conversation's $index's background) (set:$centerEntry to $conversation's $index's imageCenter) (display:"imageGenerateImageLeft") (display:"imageGenerateImageRight") (display:"imageGenerateBackGround") (display:"imageGenerateCenter") <div class="hideOnLandscape showOnPortrait portraitBlock"> this game is designed to work only on landscape mode </div> <!--<img class="background" src="backgrounds/bgtest.png"/><img class="char cLeft" src="backgrounds/char.png"/> <img class="char cRight" src="backgrounds/charb.png"/>-->(display:"DialogueCycleTest")<table class="DBTableBG tableDown" > <tr class="upperTr"> <td class="leftTd"><img class="ulc anhundred" src="images/ulc.png"></td> <td class="centerTd"><img class="ul anhundred" src="images/ul.png"></td> <td class="rightTd"><img class="urc anhundred" src="images/urc.png"></td> </tr> <tr class="middTr"> <td class="leftTd"><img class="ll anhundred" src="images/ll.png"></td> <td class="centerTd"><img class="c anhundred" src="images/c.png"></td> <td ><img class="rl anhundred" src="images/rl.png"></td> </tr> <tr class="lowerTr"> <td class="leftTd "><img class="dlc anhundred" src="images/dlc.png"></td> <td class="centerTd"><img class="dl anhundred" src="images/dl.png"></td> <td class="rightTd"><img class="drc anhundred" src="images/drc.png"></td> </tr> </table>(set:$imageTagHead to "<img class='char cLeft' src='images/") (set:$imageTagTail to "' />") (unless:$imageLeftEntry is "")[ (set:$imageLeft to $imageLeftEntry) (set:$imageLeftTag to $imageTagHead+$imageLeft+$imageTagTail) ] (text:$imageLeftTag) <div class="whiteBg">the sad end </div> [[Restart->start a]](display:"conversation array b") [(display:"dialogueBox")]<base| (display:"displayableSensor") (display:"dialogueBoxBackground")(set:$index to 1) (set:$conversation to (a: (datamap: "character", "testMan", "dialogue" , "hello, world ", "expression", 1, "imageLeft","charactersA.png", "imageRight","charactersA.png", "imageCenter","none.png", "background","backgroundTest.png" ), (datamap: "character", "test other person", "dialogue" , "hello, world b ", "expression", 1, "imageLeft","bpc.png", "imageRight","", "imageCenter","none.png", "background",""), (datamap: "character", "test woman", "dialogue" , "hello, world c ", "expression", 1, "imageLeft","bpb.png", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "testMan", "dialogue" , "hello, world f ", "expression", 1, "imageLeft","charactersB.png", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "testMan", "dialogue" , "the end", "expression", 1, "imageLeft","charb.png", "imageRight","", "imageCenter","", "background","")))<table class="DBTableBG tableMid" > <tr class="upperTr"> <td class="leftTd"><img class="ulc anhundred" src="images/ulc.png"></td> <td class="centerTd"><img class="ul anhundred" src="images/ul.png"></td> <td class="rightTd"><img class="urc anhundred" src="images/urc.png"></td> </tr> <tr class="middTr"> <td class="leftTd"><img class="ll anhundred" src="images/ll.png"></td> <td class="centerTd"><img class="c anhundred" src="images/c.png"></td> <td ><img class="rl anhundred" src="images/rl.png"></td> </tr> <tr class="lowerTr"> <td class="leftTd "><img class="dlc anhundred" src="images/dlc.png"></td> <td class="centerTd"><img class="dl anhundred" src="images/dl.png"></td> <td class="rightTd"><img class="drc anhundred" src="images/drc.png"></td> </tr> </table>(display:"choiceBoxBackground") <div class="choices"> [[good choice ->something else]] [[bad choice ->DialogueCycleTest]] </div><div><div id='loading'> loading <progress id='p' max='2' value ='0'><span>0</span>%</progress> </div></div>(set:$name to "")(Display:"loading")(Display:"start a")(set:$imageTagHead to "<img class='char cRight' src='images/") (set:$imageTagTail to "' />") (unless:$imageRightEntry is "")[ (set:$imageRight to $imageRightEntry) (set:$imageRightTag to $imageTagHead+$imageRight+$imageTagTail) ] (text:$imageRightTag) (set:$imageTagHead to "<img class='background messageDiv' src='images/") (set:$imageTagTail to "' />") (unless:$backgroundEntry is "")[ (set:$bground to $backgroundEntry) (set:$bgTag to $imageTagHead+$bground+$imageTagTail) ] (text:$bgTag)(set:$imageTagHead to "<img class='char cCenter' src='images/") (set:$imageTagTail to "' />") (unless:$centerEntry is "")[ (set:$center to $centerEntry) (set:$centerTag to $imageTagHead+$center+$imageTagTail) ] (text:$centerTag)(set:$conversation to (a: (datamap: "character", "_", "dialogue" , "Fateful encounters happen every day, these change the lives of those involved and seemingly uninvolved.", "imageLeft","none.png", "imageRight","none.png", "imageCenter","none.png", "background","bgt2.png" ), (datamap: "character", "", "dialogue" , "Today an apparently random happenstance decides the fate of the world", "expression", 1, "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "You", "dialogue" , "Shit, shit, shit . I’m running late. I thought i would play just one more round at home . but no i had to go looking for that rare loot. Dumb, dumb, dumb.", "expression", 1, "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "This wouldn’t happen if i had a switch but i had to save and buy it on the wii u.(nintendo give me free stuff)", "expression", 1, "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "_", "dialogue" , "on your hurry, you:", "expression", 1, "imageLeft","none.png", "imageRight","none.png", "imageCenter","", "background",""), (datamap: "character", "_", "dialogue" , "Choice_meet max", "expression", 1, "imageLeft","none.png", "imageRight","none.png", "imageCenter","", "background","") )) (display:"choiceBoxBackground") <div class="choices"> On your hurry, you: [[Runn at full speed.->meet max]] [[Calm down. “que será será”->meet sasha a]] </div> (display:"array start a")(set:$index to 1) [(display:"dialogueBox")]<base| (display:"displayableSensor") (display:"dialogueBoxBackground")(set:$conversation to (a: (datamap: "character", "_", "dialogue" , "You run head first into someone and hit each other in the head", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "???", "dialogue" , "Why are you running on a crowded street? you dingdong. Watch where you’re going!", "imageLeft","", "imageRight","", "imageCenter","max.png", "background",""), (datamap: "character", "You", "dialogue" , "Who the fuck says dingdong.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "???", "dialogue" , "I do.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "???", "dialogue" , "You dingDong!.", "imageLeft","", "imageRight","", "imageCenter","max_puff.png", "background",""), (datamap: "character", "You", "dialogue" , "Well, you dropped somethin, you dingdong-exclaiming dingdong.", "imageLeft","", "imageRight","", "imageCenter","max.png", "background",""), (datamap: "character", "_", "dialogue" , "A Notebook lies open on the ground with a legible ‘the last day of my life’ written on very big letters", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "The person took the notebook, and walked away.", "imageLeft","", "imageRight","", "imageCenter","none.png", "background",""), (datamap: "character", "", "dialogue" , "start b", "imageLeft","", "imageRight","", "imageCenter","", "background",""))) (display:"array meet max")(set:$index to 1) [(display:"dialogueBox")]<base| (display:"displayableSensor") (display:"dialogueBoxBackground")(display:"array start b")(set:$index to 1) [(display:"dialogueBox")]<base| (display:"displayableSensor") (display:"dialogueBoxBackground")(set:$conversation to (a: (datamap: "character", "_", "dialogue" , "After a minute walking through the crowd", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "you feel as submerged under water , all the world became silent and you stopped feeling the breeze.", "imageLeft","", "imageRight","", "imageCenter","", "background","bgt2inverted.png"), (datamap: "character", "", "dialogue" , "Everyone around you seems frozen in time. ", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "Surprising you in the middle of being awestruck, you hear a scream and run towards it.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "It’s someone you have seen before, and someone you haven´t met.", "imageLeft","max.png", "imageRight","sasha.png", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "Suddenly the sky starts melting like a thick drop of molasses falls between the three of you.", "imageLeft","none.png", "imageRight","none.png", "imageCenter","", "background","stars.png"), (datamap: "character", "", "dialogue" , "And as it falls it starts speaking.", "imageLeft","", "imageRight","", "imageCenter","eris.png", "background",""), (datamap: "character", "???", "dialogue" , "hello … is this thing on …", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "Let me drop a bit more .", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "Excelent.", "imageLeft","max.png", "imageRight","sasha.png", "imageCenter","eris.png", "background","bgt2inverted.png"), (datamap: "character", "", "dialogue" , "Hello, children.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "Eris", "dialogue" , "My name is Eris .", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "Now you start the introduction.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "Tell me your name and death wish.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "No questions now .I’ll explain later.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "the end", "imageLeft","", "imageRight","", "imageCenter","", "background",""), ))(display:"array meet sasha a")(set:$index to 1) [(display:"dialogueBox")]<base| (display:"displayableSensor") (display:"dialogueBoxBackground")(set:$conversation to (a: (datamap: "character", "_", "dialogue" , "You keep walking And you find someone that calls your attention. ", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "Someone walks among the crowd singing.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "???", "dialogue" , "(musical note)mumbles(musical note)", "imageLeft","", "imageRight","", "imageCenter","sasha_smile.png", "background",""), (datamap: "character", "", "dialogue" , "choice speak to sasha", "imageLeft","", "imageRight","", "imageCenter","", "background","") ))(display:"choiceBoxBackground") <div class="choices"> On your hurry, you: [[Hey I know that song ->meet sasha b]] [[Why sing in the middle of the street? ->meet sasha b]] </div> (display:"array meet sasha b")(set:$index to 1) [(display:"dialogueBox")]<base| (display:"displayableSensor") (display:"dialogueBoxBackground")(set:$conversation to (a: (datamap: "character", "???", "dialogue" , "Excuse me?", "imageLeft","", "imageRight","", "imageCenter","sasha.png", "background",""), (datamap: "character", "_", "dialogue" , ".the singer acts as if your words were mute.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "you", "dialogue" , "Why would you sing out loud in the middle of a crowd if not to wait for someone to speak with you .", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "???", "dialogue" , "Well, it’s none of your goddamned business.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "you", "dialogue" , "Well, Excuse you then", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "_", "dialogue" , "You mumbled ’what an a-hole’ under you breath.", "imageLeft","", "imageRight","", "imageCenter","", "background",""), (datamap: "character", "", "dialogue" , "And walked away.", "imageLeft","", "imageRight","", "imageCenter","none.png", "background",""), (datamap: "character", "", "dialogue" , "start b", "imageLeft","", "imageRight","", "imageCenter","", "background","") ))