Compare commits

..

No commits in common. "50b20756e4e974e82727e6898cbc789ceafb65fb" and "397ed328313b43de2364e828fba86740f399940b" have entirely different histories.

4 changed files with 5828 additions and 7865 deletions

View File

@ -241,408 +241,14 @@ Tree("32_Grotto_Im_Grotto_Essen_Intro") {
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16") BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
} }
BTC.Run("MediaPlayer.VIDEOS.BestellungEssenG2") // G sagt was
BTC.Run("MediaPlayer.VIDEOS.BestellungEssenGid_3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4a")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4b")
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_Essen-U-3")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedInsalata")
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4a")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedPizochen")
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4b")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedRisotto")
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
}
}
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen")
}
}
}
// -- 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_Essen")
}
}
// --- Im Grotto Essen - Grotto Unterhaltung ---
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G2")
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13") BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle3")
BTC.Wait(10)
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle3")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F4")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle5")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-5a")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-5b")
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.GrottoUnterhaltung_FIdle5")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F6")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle6")
Composite(Marathon) {
Composite(Sequence) {
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G7")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle8")
}
Composite(Sequence) {
BTC.Wait(25)
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle6")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle9")
}
Composite(Sequence) {
BTC.Wait(5)
// Getraenke anzeigen
BTC.Show("GO.INTERACTABLES.GazosaMandarina")
BTC.Show("GO.INTERACTABLES.Tazzin")
BTC.Show("GO.INTERACTABLES.Gazosa")
}
}
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-9a")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-9b")
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.GrottoUnterhaltung_GIdle8")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G10")
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle9")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F11")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-12a")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-12b")
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()
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F13")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
}
// -- 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()
}
}
Composite(Marathon) {
Composite(Sequence) {
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle16")
}
Composite(Sequence) {
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G15")
}
Composite(Sequence) {
BTC.Wait(5.8)
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.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G17")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle18")
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle16")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F19")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle18")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-21")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-24")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Grotto_Unterhaltung-U-27")
BTC.StartSpeechIntentRecognition()
Composite(Race) {
// -- Race 1: User sagt etwas
Composite(Sequence) {
BTC.UserStartedSpeechInput()
Composite(Selector) {
// -- Selector 1: Intent erkannt
Composite(Sequence) {
BTC.SpeechIntentRecognized()
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
// Intent erkannt
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Grotto_Unterhaltung-U-21")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G22")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Grotto_Unterhaltung-U-24")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G25")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Grotto_Unterhaltung-U-27")
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G28")
}
}
}
// -- Selector 2: Intent nicht erkannt
Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G28")
}
}
}
// -- Race 2: User sagt nichts
Composite(Sequence) {
BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_GIdle21")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G28")
}
}
Composite(Marathon) {
Composite(Sequence) {
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F30")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
}
Composite(Sequence) {
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G26")
}
}
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
// --- Im Grotto Essen - Outro ---
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
BTC.Run("MediaPlayer.VIDEOS.OutroFidle1")
BTC.Run("MediaPlayer.VIDEOS.OutroGidle3")
Composite(Marathon) {
BTC.SetPosition("GO.XRInteractionHandsSetup.XROrigin", -1.02, 0, -3.019)
BTC.SetPosition("GO.HANDMENU", -1.02, 0, -3.019)
BTC.RotateToAngle("GO.XRInteractionHandsSetup.XROrigin", 180.0)
BTC.RotateToAngle("GO.HANDMENU", 180.0)
BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
}
BTC.Hide("MediaPlayer.VIDEOS.OutroGidle3")
BTC.Run("MediaPlayer.VIDEOS.OutroG2")
BTC.Run("MediaPlayer.VIDEOS.OutroGidle3")
BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
BTC.Run("MediaPlayer.VIDEOS.OutroF4")
BTC.Run("MediaPlayer.VIDEOS.OutroFidle5")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Outro-U-5a")
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.OutroFidle5")
BTC.Run("MediaPlayer.VIDEOS.OutroF6")
BTC.Run("MediaPlayer.VIDEOS.OutroFidle7")
BTC.Hide("MediaPlayer.VIDEOS.OutroGidle3")
BTC.Run("MediaPlayer.VIDEOS.OutroG8")
BTC.Run("MediaPlayer.VIDEOS.OutroGidle9")
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle7")
Composite(Marathon) {
Composite(Sequence) {
BTC.Wait(6)
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
}
BTC.Run("MediaPlayer.VIDEOS.OutroF10")
}
// Go to scene 1.0 SBB
BTC.SetStoryBVisited()
BTC.Run("LoadScene.NEXT.10SBB")
} }
} }
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") { Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") {
Composite(Sequence) { Composite(Sequence) {
// --- Im Grotto Essen - Nachfrage Kellner Getraenk ---
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12") BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_G1") BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_G1")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2") BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
@ -725,16 +331,20 @@ Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu") {
} }
} }
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen") {
Composite(Sequence) {
// --- Im Grotto Essen - Nachfrage Kellner Essen ---
BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerEs_G2")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4a") Tree("Old") {
BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4b") 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() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -750,52 +360,70 @@ Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen") {
// Intent erkannt // Intent erkannt
Composite(Race) { Composite(Race) {
Composite(Sequence) { Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-3") BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.2")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedInsalata")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4a")
BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedPizochen")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
}
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4b")
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedRisotto") BTC.SetBool("ChoosedRisotto")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3") }
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 // -- Selector 2: Intent nicht erkannt
Composite(Sequence) { 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.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu") BTC.SetBool("ChoosedRisotto")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3") }
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")
} }
} }
} }
// -- Race 2: User sagt nichts
Composite(Sequence) { Composite(Sequence) {
BTC.Wait(5) BTC.Wait(5)
BTC.CompareUserSpeechInputStarted(false) BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener() BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition() BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
}
}
}
}
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu") { BTC.CompareUserSpeechInputStarted(true)
}
}
}
// Selector 3: Fallback Button
Composite(Sequence) { Composite(Sequence) {
// Fallback Button
Composite(Marathon) { Composite(Marathon) {
BTC.Show("GO.GO.SpeechButton") BTC.Show("GO.GO.SpeechButton")
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Risotto") BTC.Set("TextMeshPro.GO.Option1Button", "text", "Risotto")
@ -845,7 +473,302 @@ Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu") {
} }
} }
} }
}
}
// -- 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")
}
} }

File diff suppressed because it is too large Load Diff

View File

@ -44,7 +44,7 @@
"Sto bene, grazie.", "Sto bene, grazie.",
"Tutto bene!", "Tutto bene!",
"Sono curioso di vedere dove vogliamo viaggiare.", "Sono curioso di vedere dove vogliamo viaggiare.",
"Cos\u00ec cos\u00ec." "Cos\u00e cos\u00ec."
] ]
}, },
{ {
@ -633,14 +633,42 @@
"Niente." "Niente."
] ]
}, },
{
"intentID": "Im_Grotto_essen-Nachfrage_Kellner_Getraenk-U-3a",
"intentSentences": [
"Io vorrei una gazzosa.",
"Prendo una gazzosa.",
"Ho scelto la limonata.",
"Vorrei ordinare una gazzosa."
]
},
{
"intentID": "Im_Grotto_essen-Nachfrage_Kellner_Getraenk-U-3b",
"intentSentences": [
"Io vorrei del vino, per favore.",
"Vorrei del Merlot.",
"Vorrei un tazzin.",
"Prendo il vino.",
"Vorrei ordinare un tazzin."
]
},
{
"intentID": "Im_Grotto_essen-Nachfrage_Kellner_Getraenk-U-4",
"intentSentences": [
"Io vorrei dell'acqua.",
"Non voglio da bere.",
"Vorrei un caff\u00e8.",
"Vorrei qualcos'altro.",
"Niente."
]
},
{ {
"intentID": "Im_Grotto_essen-Bestellung_Essen-U-3", "intentID": "Im_Grotto_essen-Bestellung_Essen-U-3",
"intentSentences": [ "intentSentences": [
"Io vorrei un'insalata, per favore.", "Io vorrei un'insalata, per favore.",
"Prendo l'insalata.", "Prendo l'insalata.",
"Ho scelto l'insalata.", "Ho scelto l'insalata.",
"Vorrei ordinare un'insalata.", "Vorrei ordinare un'insalata."
"Insalata."
] ]
}, },
{ {
@ -649,8 +677,7 @@
"Io vorrei i pizochen, per favore.", "Io vorrei i pizochen, per favore.",
"Prendo i pizochen.", "Prendo i pizochen.",
"Ho scelto i pizochen.", "Ho scelto i pizochen.",
"Vorrei ordinare i pizochen.", "Vorrei ordinare i pizochen."
"Pizochen."
] ]
}, },
{ {
@ -659,8 +686,34 @@
"Io vorrei il risotto, per favore.", "Io vorrei il risotto, per favore.",
"Prendo il risotto.", "Prendo il risotto.",
"Ho scelto il risotto.", "Ho scelto il risotto.",
"Vorrei ordinare il risotto.", "Vorrei ordinare il risotto."
"Risotto." ]
},
{
"intentID": "Im_Grotto_essen-Nachfrage_Kellner_Essen-U-3a",
"intentSentences": [
"Io vorrei un'insalata, per favore.",
"Prendo l'insalata.",
"Ho scelto l'insalata.",
"Vorrei ordinare un'insalata."
]
},
{
"intentID": "Im_Grotto_essen-Nachfrage_Kellner_Essen-U-3b",
"intentSentences": [
"Io vorrei i pizochen, per favore.",
"Prendo i pizochen.",
"Ho scelto i pizochen.",
"Vorrei ordinare i pizochen."
]
},
{
"intentID": "Im_Grotto_essen-Nachfrage_Kellner_Essen-U-3c",
"intentSentences": [
"Io vorrei il risotto, per favore.",
"Prendo il risotto.",
"Ho scelto il risotto.",
"Vorrei ordinare il risotto."
] ]
}, },
{ {
@ -675,10 +728,14 @@
"intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-5b", "intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-5b",
"intentSentences": [ "intentSentences": [
"S\u00ec.", "S\u00ec.",
"S\u00ec, originariamente significava cantina.", "S\u00ec, originariamente significava \"cantina\".",
"S\u00ec, era come un frigo naturale dove consevare i generi alimentari." "S\u00ec, era come un frigo naturale dove consevare i generi alimentari."
] ]
}, },
{
"intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-5c",
"intentSentences": []
},
{ {
"intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-9a", "intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-9a",
"intentSentences": [ "intentSentences": [
@ -691,7 +748,7 @@
"intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-9b", "intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-9b",
"intentSentences": [ "intentSentences": [
"No.", "No.",
"No, non ho mai mangiato in un grotto.", "No, non ho mai mangiato in un grotto. ",
"No, purtroppo no." "No, purtroppo no."
] ]
}, },
@ -709,9 +766,9 @@
"intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-12b", "intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-12b",
"intentSentences": [ "intentSentences": [
"Non mi piace molto.", "Non mi piace molto.",
"Non cos\u00ec bene.", "Non cos\u00ecbene.",
"Non molto.", "Non molto.",
"Non \u00e8 cos\u00ec bella.", "Non \u00e8 cos\u00ecbella.",
"Non so." "Non so."
] ]
}, },
@ -729,9 +786,9 @@
"intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-24", "intentID": "Im_Grotto_essen-Grotto_Unterhaltung-U-24",
"intentSentences": [ "intentSentences": [
"Non mi piace molto.", "Non mi piace molto.",
"Non cos\u00ec tanto.", "Non cos\u00ectanto.",
"Non molto.", "Non molto.",
"Non \u00e8 cos\u00ec bella." "Non \u00e8 cos\u00ecbella."
] ]
}, },
{ {