Merge branch 'programming'

This commit is contained in:
Nadine Ganz 2025-07-31 17:07:48 +02:00
commit ea82367a8c
4 changed files with 7820 additions and 5783 deletions

View File

@ -241,14 +241,408 @@ Tree("32_Grotto_Im_Grotto_Essen_Intro") {
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16") BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
} }
// G sagt was BTC.Run("MediaPlayer.VIDEOS.BestellungEssenG2")
BTC.Run("MediaPlayer.VIDEOS.BestellungEssenGid_3")
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13") 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.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")
@ -331,20 +725,16 @@ Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu") {
} }
} }
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen") {
Tree("Old") {
Composite(Sequence) { Composite(Sequence) {
// --- Im Grotto Essen - Nachfrage Kellner Essen --- // --- Im Grotto Essen - Nachfrage Kellner Essen ---
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerEs_01") BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerEs_01") BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerEs_G2")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerEs_01") BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.2") BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.3") BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4a")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.4") BTC.AddPossbileSpeechIntent("Im_Grotto_essen-Bestellung_Essen-U-4b")
BTC.StartSpeechIntentRecognition() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -360,255 +750,31 @@ Tree("Old") {
// Intent erkannt // Intent erkannt
Composite(Race) { Composite(Race) {
Composite(Sequence) { Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen.Nachfrage_Kellner_Essen.2") BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-3")
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.ClearPossbileSpeechIntents()
BTC.SetBool("ChoosedInsalata") BTC.SetBool("ChoosedInsalata")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
} }
}
}
// -- 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) { Composite(Sequence) {
BTC.UserStartedSpeechInput() BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4a")
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.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") BTC.SetBool("ChoosedPizochen")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
} }
Composite(Sequence) { Composite(Sequence) {
// Insalata BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4b")
BTC.Run("NamedEventTrigger.GO.Option3Button") BTC.ClearPossbileSpeechIntents()
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button") BTC.SetBool("ChoosedRisotto")
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button") BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
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 // -- Selector 2: Intent nicht erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
} }
} }
} }
@ -620,155 +786,66 @@ Tree("Old") {
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")
} }
} }
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") { Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen_Handmenu") {
Composite(Sequence) { Composite(Sequence) {
// Go to scene 1.0 SBB // Fallback Button
BTC.SetStoryBVisited() Composite(Marathon) {
BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black") BTC.Show("GO.GO.SpeechButton")
BTC.Run("LoadScene.NEXT.10SBB") 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")
}
}
} }
} }

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\u00e cos\u00ec." "Cos\u00ec cos\u00ec."
] ]
}, },
{ {
@ -633,42 +633,14 @@
"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."
] ]
}, },
{ {
@ -677,7 +649,8 @@
"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."
] ]
}, },
{ {
@ -686,34 +659,8 @@
"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."
] ]
}, },
{ {
@ -728,14 +675,10 @@
"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": [
@ -748,7 +691,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."
] ]
}, },
@ -766,9 +709,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\u00ecbene.", "Non cos\u00ec bene.",
"Non molto.", "Non molto.",
"Non \u00e8 cos\u00ecbella.", "Non \u00e8 cos\u00ec bella.",
"Non so." "Non so."
] ]
}, },
@ -786,9 +729,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\u00ectanto.", "Non cos\u00ec tanto.",
"Non molto.", "Non molto.",
"Non \u00e8 cos\u00ecbella." "Non \u00e8 cos\u00ec bella."
] ]
}, },
{ {