Compare commits

...

3 Commits

4 changed files with 15398 additions and 13361 deletions

View File

@ -241,21 +241,12 @@ 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")
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() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -271,25 +262,22 @@ Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") {
// Intent erkannt // Intent erkannt
Composite(Race) { Composite(Race) {
Composite(Sequence) { Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-13") BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-3")
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2") BTC.SetBool("ChoosedInsalata")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G14") BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
} }
Composite(Sequence) { Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-14") BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4a")
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2") BTC.SetBool("ChoosedPizochen")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G15") BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
} }
Composite(Sequence) { Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Getraenk-U-16") BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-4b")
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2") BTC.SetBool("ChoosedRisotto")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_G17") BTC.Hide("MediaPlayer.VIDEOS.BestellungEssenGid_3")
BTC.Run("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle16")
} }
} }
} }
@ -297,7 +285,7 @@ Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") {
// -- 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_Getraenk_Handmenu") RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen")
} }
} }
} }
@ -309,42 +297,78 @@ Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") {
BTC.AbortSpeechEventListener() BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition() BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu") RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen")
} }
} }
}
}
Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu") { // --- Im Grotto Essen - Grotto Unterhaltung ---
Composite(Sequence) { BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G2")
// Fallback Button BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_FIdle13")
Composite(Marathon) { BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle3")
BTC.Show("GO.GO.SpeechButton") BTC.Wait(10)
BTC.Set("TextMeshPro.GO.Option1Button", "text", "una gazzosa")
BTC.Show("GO.GO.Option1Button")
}
BTC.Run("NamedEventTrigger.GO.Option1Button") BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle3")
BTC.Hide("GO.GO.Option1Button") BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F4")
BTC.Hide("GO.GO.SpeechButton") BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle5")
BTC.Hide("GO.GO.SpeechOptions")
}
}
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()
}
Tree("Old") { // -- Selector 2: Intent nicht erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.ClearPossbileSpeechIntents()
}
}
}
// --- Im Grotto Essen - Nachfrage Kellner Essen --- // -- Race 2: User sagt nichts
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerEs_01") Composite(Sequence) {
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerEs_01") BTC.Wait(5)
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerEs_01") 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")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.2") Composite(Marathon) {
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.3") Composite(Sequence) {
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_Essen.4") 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() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -356,122 +380,55 @@ Tree("Old") {
// -- Selector 1: Intent erkannt // -- Selector 1: Intent erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.SpeechIntentRecognized() BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
// 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 // -- Selector 2: Intent nicht erkannt
Composite(Sequence) { Composite(Sequence) {
// --- Im Grotto Essen - Nachfrage Kellner Unklar --- BTC.ClearPossbileSpeechIntents()
// 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) { // -- Race 2: User sagt nichts
BTC.Wait(5) Composite(Sequence) {
BTC.CompareUserSpeechInputStarted(false) BTC.Wait(5)
BTC.AbortSpeechEventListener() BTC.CompareUserSpeechInputStarted(false)
BTC.StopSpeechIntentRecognition() BTC.AbortSpeechEventListener()
BTC.ClearPossbileSpeechIntents() BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents()
}
}
BTC.CompareUserSpeechInputStarted(true) 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")
// Selector 3: Fallback Button 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) { Composite(Sequence) {
Composite(Marathon) { BTC.SpeechIntentRecognized()
BTC.Show("GO.GO.SpeechButton") BTC.ClearPossbileSpeechIntents()
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Risotto") BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
BTC.Show("GO.GO.Option1Button") BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F13")
BTC.Set("TextMeshPro.GO.Option2Button", "text", "Pizochen") BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
BTC.Show("GO.GO.Option2Button") }
BTC.Set("TextMeshPro.GO.Option3Button", "text", "Insalata")
BTC.Show("GO.GO.Option3Button")
}
Composite(Race) { // -- Selector 2: Intent nicht erkannt
Composite(Sequence) { Composite(Sequence) {
// Risotto BTC.ClearPossbileSpeechIntents()
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")
}
}
} }
} }
} }
@ -483,70 +440,55 @@ Tree("Old") {
BTC.AbortSpeechEventListener() BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition() BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
}
}
// Fallback Button Composite(Marathon) {
Composite(Sequence) { Composite(Sequence) {
Composite(Marathon) { BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle12")
BTC.Show("GO.GO.SpeechButton") BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle16")
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Risotto") }
BTC.Show("GO.GO.Option1Button") Composite(Sequence) {
BTC.Set("TextMeshPro.GO.Option2Button", "text", "Pizochen") BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G15")
BTC.Show("GO.GO.Option2Button") }
BTC.Set("TextMeshPro.GO.Option3Button", "text", "Insalata") Composite(Sequence) {
BTC.Show("GO.GO.Option3Button") BTC.Wait(5.8)
} Composite(Marathon) {
BTC.Show("GO.INTERACTABLES.PizochenFrancesca")
Composite(Race) { Composite(Race) {
Composite(Sequence) { Composite(Sequence) {
// Risotto BTC.CompareBool("ChoosedPizochen")
BTC.Run("NamedEventTrigger.GO.Option1Button") BTC.Show("GO.INTERACTABLES.PizochenUser")
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) { Composite(Sequence) {
// Pizochen BTC.CompareBool("ChoosedInsalata")
BTC.Run("NamedEventTrigger.GO.Option2Button") BTC.Show("GO.INTERACTABLES.InsalataUser")
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) { Composite(Sequence) {
// Insalata BTC.CompareBool("ChoosedRisotto")
BTC.Run("NamedEventTrigger.GO.Option3Button") BTC.Show("GO.INTERACTABLES.RisottoUser")
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.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() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -558,12 +500,39 @@ Tree("Old") {
// -- Selector 1: Intent erkannt // -- Selector 1: Intent erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.SpeechIntentRecognized() BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents() 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 // -- Selector 2: Intent nicht erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.ClearPossbileSpeechIntents() 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")
} }
} }
} }
@ -575,23 +544,48 @@ Tree("Old") {
BTC.AbortSpeechEventListener() BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition() BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents() 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")
} }
} }
// Getränke hinstellen fuer User und Franscesca Composite(Marathon) {
BTC.Show("GO.INTERACTABLES.GazosaMandarina") Composite(Sequence) {
BTC.Show("GO.INTERACTABLES.Tazzin") BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle24")
BTC.Show("GO.INTERACTABLES.Gazosa") BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_F30")
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
}
Composite(Sequence) {
BTC.Run("MediaPlayer.VIDEOS.GrottoUnterhaltung_G26")
}
}
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_09") BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_09")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_09")
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_10") // --- Im Grotto Essen - Outro ---
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_10") BTC.Hide("MediaPlayer.VIDEOS.GrottoUnterhaltung_FIdle20")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_10") BTC.Run("MediaPlayer.VIDEOS.OutroFidle1")
BTC.Run("MediaPlayer.VIDEOS.OutroGidle3")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_unklar.11") 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() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -623,46 +617,39 @@ Tree("Old") {
} }
} }
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_15") BTC.Hide("MediaPlayer.VIDEOS.OutroFidle5")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_15") BTC.Run("MediaPlayer.VIDEOS.OutroF6")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_15") BTC.Run("MediaPlayer.VIDEOS.OutroFidle7")
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.Hide("MediaPlayer.VIDEOS.OutroGidle3")
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_18") BTC.Run("MediaPlayer.VIDEOS.OutroG8")
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_18") BTC.Run("MediaPlayer.VIDEOS.OutroGidle9")
BTC.Hide("MediaPlayer.VIDEOS.OutroFidle7")
Composite(Marathon) { Composite(Marathon) {
BTC.Show("GO.INTERACTABLES.PizochenFrancesca") Composite(Sequence) {
BTC.Wait(6)
Composite(Race) { BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
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.OutroF10")
} }
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_22") // Go to scene 1.0 SBB
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_22") BTC.SetStoryBVisited()
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_22") BTC.Run("LoadScene.NEXT.10SBB")
}
}
BTC.Show("Depthkit.VIDEOS.NachfrageKellnerun_23") Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk") {
BTC.Run("Depthkit.VIDEOS.NachfrageKellnerun_23") Composite(Sequence) {
BTC.Hide("Depthkit.VIDEOS.NachfrageKellnerun_23") // --- Im Grotto Essen - Nachfrage Kellner Getraenk ---
BTC.Hide("MediaPlayer.VIDEOS.BestellungGetraenk_GIdle12")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_G1")
BTC.Run("MediaPlayer.VIDEOS.NachfrageKellnerGe_GIdle2")
BTC.AddPossbileSpeechIntent("Im_Grotto_essen.Nachfrage_Kellner_unklar.24") 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() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -674,12 +661,37 @@ Tree("Old") {
// -- Selector 1: Intent erkannt // -- Selector 1: Intent erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.SpeechIntentRecognized() BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
// 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 // -- Selector 2: Intent nicht erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu")
} }
} }
} }
@ -691,26 +703,38 @@ Tree("Old") {
BTC.AbortSpeechEventListener() BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition() BTC.StopSpeechIntentRecognition()
BTC.ClearPossbileSpeechIntents() BTC.ClearPossbileSpeechIntents()
RunTree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu")
} }
} }
}
}
// --- Im Grotto Essen - Outro --- Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Getraenk_Handmenu") {
Composite(Sequence) {
// Fallback Button
Composite(Marathon) { Composite(Marathon) {
BTC.SetPosition("GO.XRInteractionHandsSetup.XROrigin", -1.14, 0, 1.698) BTC.Show("GO.GO.SpeechButton")
BTC.SetPosition("GO.HANDMENU", -1.14, 0, 1.698) BTC.Set("TextMeshPro.GO.Option1Button", "text", "una gazzosa")
BTC.RotateToAngle("GO.XRInteractionHandsSetup.XROrigin", 60.0) BTC.Show("GO.GO.Option1Button")
BTC.RotateToAngle("GO.HANDMENU", 60.0)
} }
BTC.Show("Depthkit.VIDEOS.Outro1ImGrottoesse") BTC.Run("NamedEventTrigger.GO.Option1Button")
BTC.Run("Depthkit.VIDEOS.Outro1ImGrottoesse") BTC.Hide("GO.GO.Option1Button")
BTC.Hide("Depthkit.VIDEOS.Outro1ImGrottoesse") BTC.Hide("GO.GO.SpeechButton")
BTC.Hide("GO.GO.SpeechOptions")
}
}
BTC.Show("Depthkit.VIDEOS.Outro2ImGrottoesse") Tree("32_Grotto_Im_Grotto_Essen_Nachfrage_Kellner_Essen") {
BTC.Run("Depthkit.VIDEOS.Outro2ImGrottoesse") Composite(Sequence) {
BTC.Hide("Depthkit.VIDEOS.Outro2ImGrottoesse") // --- 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.Outro.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() BTC.StartSpeechIntentRecognition()
Composite(Race) { Composite(Race) {
@ -722,12 +746,35 @@ Tree("Old") {
// -- Selector 1: Intent erkannt // -- Selector 1: Intent erkannt
Composite(Sequence) { Composite(Sequence) {
BTC.SpeechIntentRecognized() BTC.SpeechIntentRecognized()
BTC.ClearPossbileSpeechIntents()
// Intent erkannt
Composite(Race) {
Composite(Sequence) {
BTC.CompareIntentID("Im_Grotto_essen-Bestellung_Essen-U-3")
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.SetBool("ChoosedRisotto")
BTC.Hide("MediaPlayer.VIDEOS.NachfrageKellnerEs_GIdle3")
}
}
} }
// -- 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")
} }
} }
} }
@ -739,36 +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.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."
] ]
}, },
{ {