775 lines
32 KiB
Plaintext

Tree("Root") {
Composite(Sequence) {
BTC.InitializeSpeechManager()
BTC.SetSpeechRecognitionLanguage("it-IT")
BTC.SetVoiceName("it-IT-FabiolaNeural")
Composite(Race) {
Composite(Sequence) {
// Error in Speech Service: Cancel BTC Trees
BTC.SpeechErrorOccured()
BTC.SetBool("error")
}
Composite(Sequence) {
RunTree("32_Grotto_Im_Grotto_Essen_Intro")
}
}
Composite(Sequence) {
BTC.CompareBool("error")
// Error Handling
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
BTC.Show("GO.GO.SpeechButton")
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Restart")
BTC.Show("GO.GO.Option1Button")
BTC.Run("NamedEventTrigger.GO.Option1Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
}
}
}
Tree("32_Grotto_Im_Grotto_Essen_Intro") {
// --- Im Grotto Essen - Intro ---
Composite(Sequence) {
BTC.Run("MediaPlayer.VIDEOS.IntroFidle1")
Composite(Marathon) {
BTC.Run("StudioEventEmitter.STATIC.KuechenAmbi")
BTC.Run("StudioEventEmitter.STATIC.AmbiGarten")
BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
}
BTC.Wait(3)
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle1")
BTC.Run("MediaPlayer.VIDEOS.IntroF2")
BTC.Run("MediaPlayer.VIDEOS.IntroFidle3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Intro-U-3a")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
}
}
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle3")
BTC.Run("MediaPlayer.VIDEOS.IntroF4")
BTC.Run("MediaPlayer.VIDEOS.IntroFidle5")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Intro-U-5a")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Intro-U-7b")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
// Intent erkannt
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Intro-U-5a")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
BTC.Run("MediaPlayer.VIDEOS.IntroF6")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Intro-U-7b")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
BTC.Run("MediaPlayer.VIDEOS.IntroF8")
}
}
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
BTC.Run("MediaPlayer.VIDEOS.IntroF8")
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle5")
BTC.Run("MediaPlayer.VIDEOS.IntroF8")
}
}
BTC.Run("MediaPlayer.VIDEOS.IntroFidle7")
// --- Im Grotto Essen - Bestellung Getraenk ---
BTC.Wait(3)
Composite(Marathon) {
Composite(Sequence) {
BTC.Wait(2)
BTC.Hide("MediaPlayer.VIDEOS.IntroFidle7")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle2")
}
Composite(Sequence) {
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G3")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle4")
}
}
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle2")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_F5")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle6")
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle4")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G7")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle8")
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_Fidle6")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_F9")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle10")
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle8")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G11")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle10")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-13")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-14")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-16")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
// Intent erkannt
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-13")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G14")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-14")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G15")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-16")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G17")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
}
}
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk")
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk")
}
}
// --- Im Grotto Essen - Bestellung Essen ---
Composite(Marathon) {
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
}
// G sagt was
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13")
}
}
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") {
Composite(Sequence) {
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_G1")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-13")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-14")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Getraenk-U-16")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
// Intent erkannt
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-13")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G14")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-14")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G15")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-16")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G17")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
}
}
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu")
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu")
}
}
}
}
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu") {
Composite(Sequence) {
// Fallback Button
Composite(Marathon) {
BTC.Show("GO.GO.SpeechButton")
BTC.Set("TextMeshPro.GO.Option1Button", "text", "una gazzosa")
BTC.Show("GO.GO.Option1Button")
}
BTC.Run("NamedEventTrigger.GO.Option1Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
}
}
Tree("Old") {
Composite(Sequence) {
// --- Im Grotto Essen - Nachfrage Kellner Essen ---
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerEs_01")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerEs_01")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerEs_01")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.2")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.4")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
// Intent erkannt
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.2")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedRisotto")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.3")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedPizochen")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.4")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedInsalata")
}
}
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
// --- Im Grotto Essen - Nachfrage Kellner Unklar ---
// SpeechIntentRecognized Failed: kein Intent erkannt
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_01")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_01")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_01")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
Composite(Sequence) {
BTC.UserStartedSpeechInput()
BTC.SpeechIntentRecognized()
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.2")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedRisotto")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.3")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedPizochen")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.4")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedInsalata")
}
}
}
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
BTC.CompareUserSpeechInputStarted(true)
}
}
}
// Selector 3: Fallback Button
Composite(Sequence) {
Composite(Marathon) {
BTC.Show("GO.GO.SpeechButton")
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Risotto")
BTC.Show("GO.GO.Option1Button")
BTC.Set("TextMeshPro.GO.Option2Button", "text", "Pizochen")
BTC.Show("GO.GO.Option2Button")
BTC.Set("TextMeshPro.GO.Option3Button", "text", "Insalata")
BTC.Show("GO.GO.Option3Button")
}
Composite(Race) {
Composite(Sequence) {
// Risotto
BTC.Run("NamedEventTrigger.GO.Option1Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option3Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.Option3Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
BTC.SetBool("ChoosedRisotto")
}
Composite(Sequence) {
// Pizochen
BTC.Run("NamedEventTrigger.GO.Option2Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option3Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.Option3Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
BTC.SetBool("ChoosedPizochen")
}
Composite(Sequence) {
// Insalata
BTC.Run("NamedEventTrigger.GO.Option3Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.Option3Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
BTC.SetBool("ChoosedInsalata")
}
}
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
// Fallback Button
Composite(Sequence) {
Composite(Marathon) {
BTC.Show("GO.GO.SpeechButton")
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Risotto")
BTC.Show("GO.GO.Option1Button")
BTC.Set("TextMeshPro.GO.Option2Button", "text", "Pizochen")
BTC.Show("GO.GO.Option2Button")
BTC.Set("TextMeshPro.GO.Option3Button", "text", "Insalata")
BTC.Show("GO.GO.Option3Button")
}
Composite(Race) {
Composite(Sequence) {
// Risotto
BTC.Run("NamedEventTrigger.GO.Option1Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option3Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.Option3Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
BTC.SetBool("ChoosedRisotto")
}
Composite(Sequence) {
// Pizochen
BTC.Run("NamedEventTrigger.GO.Option2Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option3Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.Option3Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
BTC.SetBool("ChoosedPizochen")
}
Composite(Sequence) {
// Insalata
BTC.Run("NamedEventTrigger.GO.Option3Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button")
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button")
BTC.Hide("GO.GO.Option1Button")
BTC.Hide("GO.GO.Option2Button")
BTC.Hide("GO.GO.Option3Button")
BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
BTC.SetBool("ChoosedInsalata")
}
}
}
}
}
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_03")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_03")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_03")
BTC.Wait(5)
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_04")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_04")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_04")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_unklar.5")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
}
}
// Getränke hinstellen fuer User und Franscesca
BTC.Show("GO.INTERACTABLES.GazosaMandarina")
BTC.Show("GO.INTERACTABLES.Tazzin")
BTC.Show("GO.INTERACTABLES.Gazosa")
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_09")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_09")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_09")
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_10")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_10")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_10")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_unklar.11")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
}
}
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_15")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_15")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_15")
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_16")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_16")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_16")
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_18")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_18")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_18")
Composite(Marathon) {
BTC.Show("GO.INTERACTABLES.PizochenFrancesca")
Composite(Race) {
Composite(Sequence) {
BTC.CompareBool("ChoosedPizochen")
BTC.Show("GO.INTERACTABLES.PizochenUser")
}
Composite(Sequence) {
BTC.CompareBool("ChoosedInsalata")
BTC.Show("GO.INTERACTABLES.InsalataUser")
}
Composite(Sequence) {
BTC.CompareBool("ChoosedRisotto")
BTC.Show("GO.INTERACTABLES.RisottoUser")
}
}
}
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_22")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_22")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_22")
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_23")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_23")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_23")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_unklar.24")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
}
}
// --- Im Grotto Essen - Outro ---
Composite(Marathon) {
BTC.SetPosition("GO.XRInteractionHandsSetup.XROrigin", -1.14, 0, 1.698)
BTC.SetPosition("GO.HANDMENU", -1.14, 0, 1.698)
BTC.RotateToAngle("GO.XRInteractionHandsSetup.XROrigin", 60.0)
BTC.RotateToAngle("GO.HANDMENU", 60.0)
}
BTC.Show("Depthkit.VIDEOS.Outro1ImGrottoesse")
BTC.Run("Depthkit.VIDEOS.Outro1ImGrottoesse")
BTC.Hide("Depthkit.VIDEOS.Outro1ImGrottoesse")
BTC.Show("Depthkit.VIDEOS.Outro2ImGrottoesse")
BTC.Run("Depthkit.VIDEOS.Outro2ImGrottoesse")
BTC.Hide("Depthkit.VIDEOS.Outro2ImGrottoesse")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Outro.3")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
}
}
BTC.Show("Depthkit.VIDEOS.Outro6ImGrottoesse")
BTC.Run("Depthkit.VIDEOS.Outro6ImGrottoesse")
BTC.Hide("Depthkit.VIDEOS.Outro6ImGrottoesse")
BTC.Show("Depthkit.VIDEOS.Outro7ImGrottoesse")
BTC.Run("Depthkit.VIDEOS.Outro7ImGrottoesse")
BTC.Hide("Depthkit.VIDEOS.Outro7ImGrottoesse")
BTC.Show("Depthkit.VIDEOS.Outro8ImGrottoesse")
BTC.Run("Depthkit.VIDEOS.Outro8ImGrottoesse")
BTC.Hide("Depthkit.VIDEOS.Outro8ImGrottoesse")
BTC.Show("Depthkit.VIDEOS.Outro10ImGrottoess")
BTC.Run("Depthkit.VIDEOS.Outro10ImGrottoess")
BTC.Hide("Depthkit.VIDEOS.Outro10ImGrottoess")
RunTree("32_Grotto_Hide")
}
}
Tree("32_Grotto_Hide") {
Composite(Sequence) {
// Go to scene 1.0 SBB
BTC.SetStoryBVisited()
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
BTC.Run("LoadScene.NEXT.10SBB")
}
}