
<sequence>
  <scene id="fork">

    <resources>
    </resources>

    <script>
		<switchtosceneifall id="scene_happyend_0">
			<testvariable key="pylons" value="8"/>
		</switchtosceneifall>
    </script>
  </scene>

<!-- ============ SAD  </dialogtextsequence>  ============== -->

  <scene id="scene_sadend_0">

    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outro2.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="0" duration="0"/> <setbrightness value="1" duration="1.5"/> <waitforall> <brightness/> </waitforall>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

	    <dialogtextsequence characterdelay="0.02" orientation="right">
		"John, guarda, è una mongolfiera! Questo è l’occhio di cui l’uomo parlava nel diario!"
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Valerie, presto, dobbiamo riuscire a entrare nella cesta prima che il vento porti via la mongolfiera!"
		</dialogtextsequence>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>

    </script>
  </scene>


  <scene id="scene_sadend_1">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroB0.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<setvariable key="hidemap" value = "true"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

        <rumbleeffect type="5" periods="0"/>

		<dialogtextsequence characterdelay="0.02" orientation="neutral">
		Prima che la mongolfiera si allontani, Valerie afferra la scala. Velocemente vi sale sopra. Ma John è distrutto, è stata una giornata estenuante e a fatica riesce a tenersi aggrappato alla scala. Valerie è determinata a non abbandonare il suo compagno. Raggiunge la parte inferiore della mongolfiera, ma improvvisamente l’isola inizia a tremare e la mano di John scivola via. Gli occhi le si riempiono di lacrime quando si rende conto di non avere scelta, deve abbandonare John.
        Ormai indifeso, John guarda la mongolfiera e Valerie che si allontanano verso il mare aperto.
		</dialogtextsequence>
		<hidedialogbox/>

        <rumbleeffect type="2"/>


		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<fadeoutallsound duration="0.5"/>
		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
        <rumbleeffect type="0"/>
    </script>
  </scene>

  <scene id="scene_sadend_2">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroB1.jpg"/>
      </bg>
	  <sounds>
	    <atmo id="water" minpitch="0.9" maxpitch="1.1" minpause="1.0" maxpause="2.5">
			<sample file="sound>water/splash00.wav"/>
			<sample file="sound>water/splash01.wav"/>
			<sample file="sound>water/splash02.wav"/>
			<sample file="sound>water/splash03.wav"/>
		</atmo>
	  </sounds>
      <dialogbox/>
    </resources>

    <script>
		<fadeinsound id="water" duration="1.0"/>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"No, John, mi dispiace."
		</dialogtextsequence>
		<hidedialogbox/>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_sadend_3">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroB2.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="4.5"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="neutral">
		Senza poter fare niente, guarda l’isola mentre si dissolve e scompare nel tempo.
		</dialogtextsequence>
		<hidedialogbox/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_sadend_4">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroB3.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="5"/>
		</waitforall>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_sadend_5">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroB4.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="neutral">
		Al termine, non resta nessun segno a indicare l’esistenza dell’isola. L’oceano è calmo davanti a Valerie.
		</dialogtextsequence>
		<hidedialogbox/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_sadend_6">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroB5.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"John, ti prometto che quando l’isola riapparirà tra 20 anni, tornerò a prenderti. Non ti dimenticherò mai."
		</dialogtextsequence>
		<hidedialogbox/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<fadeoutsound id="water" duration="1.0"/>
		<setbrightness value="0" duration="1.5"/> <waitforall> <brightness/> </waitforall>

		<switchtosequence file="sequence>credits.xml"/>

    </script>
  </scene>


<!-- ============ HAPPY  </dialogtextsequence>  ============== -->

  <scene id="scene_happyend_0">

    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outro2.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="0" duration="0"/> <setbrightness value="1" duration="1.5"/> <waitforall> <brightness/> </waitforall>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

	    <dialogtextsequence characterdelay="0.02" orientation="right">
		"È una mongolfiera! Questo è l’occhio di cui l’uomo parlava nel diario!"
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Valerie, presto, dobbiamo riuscire a entrare nella cesta prima che il vento porti via la mongolfiera! Non lasciare la scala di corda, è la nostra unica possibilità di salvezza."
		</dialogtextsequence>

		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>

    </script>
  </scene>

  <scene id="scene_happyend_1">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroA0.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<setvariable key="hidemap" value = "true"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

        <rumbleeffect type="5" periods="0"/>

		<dialogtextsequence characterdelay="0.02" orientation="neutral">
		Prima che la mongolfiera si allontani, Valerie afferra la scala. Velocemente vi sale sopra. Ma John è distrutto, è stata una giornata estenuante e a fatica riesce a tenersi aggrappato alla scala. Valerie è determinata a non abbandonare il suo compagno. Con le ultime forze rimaste, riesce a portare in salvo John dentro la cesta, accanto a lei.
        La mongolfiera si dirige dolcemente verso il mare aperto.
		</dialogtextsequence>
		<hidedialogbox/>

        <rumbleeffect type="0"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<fadeoutallsound duration="0.5"/>
		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_happyend_2">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroA1.jpg"/>
      </bg>
	  <sounds>
	    <atmo id="water" minpitch="0.9" maxpitch="1.1" minpause="1.0" maxpause="2.5">
			<sample file="sound>water/splash00.wav"/>
			<sample file="sound>water/splash01.wav"/>
			<sample file="sound>water/splash02.wav"/>
			<sample file="sound>water/splash03.wav"/>
		</atmo>
	  </sounds>
      <dialogbox/>
    </resources>

    <script>
		<fadeinsound id="water" duration="1.0"/>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Grazie Valerie, senza di te non ce l’avrei mai fatta."
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Non ti avrei mai lasciato sull’isola, John."
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Guarda laggiù Valerie… l’isola!"
		</dialogtextsequence>
		<hidedialogbox/>

		<rumbleeffect type="0"/>
		<rumbleeffect type="4"/>
		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_happyend_3">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroA2.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="4.5"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Sta sprofondando nel mare."
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Le sfere di energia che abbiamo trovato hanno stabilizzato l’isola nel tempo. Stiamo assistendo alla catastrofe che minacciava l&apos;isola."
		</dialogtextsequence>
		<hidedialogbox/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<rumbleeffect type="0"/>
		<rumbleeffect type="4"/>
		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_happyend_4">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroA3.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Vuoi dire che i salti temporali stavano solo ritardando l’affondamento dell’isola?"
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Sì, finalmente il destino ha fatto il suo corso."
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Forse adesso troverà pace."
		</dialogtextsequence>
		<hidedialogbox/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<rumbleeffect type="0"/>
		<rumbleeffect type="4"/>
		<setbrightness value="2" duration="0.15"/> <waitforall> <brightness/> </waitforall>
    </script>
  </scene>

  <scene id="scene_happyend_5">
    <resources>
      <bg id="background" priority="2">
        <bitmap file="sequences/outro/outroA4.jpg"/>
      </bg>
      <dialogbox/>
    </resources>

    <script>
		<setbrightness value="1" duration="0.15"/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Siamo salvi adesso?"
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Vediamo dove ci porterà il vento. Spero che mi darai un mano."
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Darti una mano?"
		</dialogtextsequence>

		<dialogtextsequence characterdelay="0.02" orientation="left">
		"Beh, sì, in fondo ho 50 anni in più sulle spalle."
		</dialogtextsequence>
		<hidedialogbox/>

		<starttimer/>
		<waitforall>
			<timerelapsed time="3"/>
		</waitforall>

		<fadeoutsound id="water" duration="1.0"/>
		<setbrightness value="0" duration="1.5"/> <waitforall> <brightness/> </waitforall>

		<switchtosequence file="sequence>credits.xml"/>

    </script>
  </scene>

</sequence>
