Update Castello story
This commit is contained in:
parent
3e50d37694
commit
44b12f549d
@ -369,7 +369,13 @@ Tree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli") {
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_10")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_10")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_10")
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli_Bot1")
|
||||
|
||||
// --- Castelli di Bellinzona - Geschichte Castelli Bot1 ---
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_Bot1_01")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_Bot1_01")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_Bot1_01")
|
||||
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli_Bot")
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -499,21 +505,224 @@ Tree("26_Castello_Castelli_di_Bellinzona_Chatbot_Burgen") {
|
||||
Tree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli_Bot") {
|
||||
// --- Castelli di Bellinzona - Geschichte Castelli Bot ---
|
||||
Composite(Sequence) {
|
||||
BTC.GetKeyDown("Return")
|
||||
}
|
||||
}
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_Bot1_02")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_Bot1_02")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_Bot1_02")
|
||||
|
||||
Tree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli_Bot1") {
|
||||
// --- Castelli di Bellinzona - Geschichte Castelli Bot1 ---
|
||||
Composite(Sequence) {
|
||||
BTC.GetKeyDown("Return")
|
||||
BTC.SynthesizeText("La valle veniva chiusa costruendo la cinta muraria della città e la Murata. In questo modo nessuno poteva attraversare i passi alpini del Gottardo, del San Bernardino, della Novena e del Lucomagno. Bellinzona si trovava su un'importante via commerciale tra il nord e il sud dell'Europa.")
|
||||
BTC.SpeechOutputEnded()
|
||||
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_Bot_02")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_Bot_02")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_Bot_02")
|
||||
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_Bot_03")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_Bot_03")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_Bot_03")
|
||||
|
||||
BTC.AddPossbileSpeechIntent("Castelli_di_Bellinzona.Geschichte_Castelli_Bot.4")
|
||||
BTC.AddPossbileSpeechIntent("Castelli_di_Bellinzona.Geschichte_Castelli_Bot.6")
|
||||
BTC.StartSpeechIntentRecognition()
|
||||
|
||||
Composite(Race) {
|
||||
// -- Race 1: User sagt etwas
|
||||
Composite(Sequence) {
|
||||
BTC.UserStartedSpeechInput()
|
||||
|
||||
Composite(Selector) {
|
||||
// -- Selector 1: Intent erkannt
|
||||
Composite(Sequence) {
|
||||
BTC.SpeechIntentRecognized()
|
||||
|
||||
Composite(Race) {
|
||||
Composite(Sequence) {
|
||||
BTC.CompareIntentID("Castelli_di_Bellinzona.Geschichte_Castelli_Bot.4")
|
||||
BTC.ClearPossbileSpeechIntents()
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli_weitererzaehlen")
|
||||
}
|
||||
Composite(Sequence) {
|
||||
BTC.CompareIntentID("Castelli_di_Bellinzona.Geschichte_Castelli_Bot.6")
|
||||
BTC.ClearPossbileSpeechIntents()
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_KI_Audio_Chat_Castelli")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -- Selector 2: Intent nicht erkannt
|
||||
Composite(Sequence) {
|
||||
BTC.ClearPossbileSpeechIntents()
|
||||
|
||||
// Fallback Button
|
||||
Composite(Marathon) {
|
||||
BTC.Show("GO.GO.SpeechButton")
|
||||
BTC.Set("TextMeshPro.GO.Option1Button", "text", "Sì.")
|
||||
BTC.Show("GO.GO.Option1Button")
|
||||
BTC.Set("TextMeshPro.GO.Option2Button", "text", "No.")
|
||||
BTC.Show("GO.GO.Option2Button")
|
||||
}
|
||||
|
||||
Composite(Race) {
|
||||
Composite(Sequence) {
|
||||
// Ja
|
||||
BTC.Run("NamedEventTrigger.GO.Option1Button")
|
||||
BTC.AbortEventListener("NamedEventTrigger.GO.Option2Button")
|
||||
BTC.Hide("GO.GO.Option1Button")
|
||||
BTC.Hide("GO.GO.Option2Button")
|
||||
BTC.Hide("GO.GO.SpeechButton")
|
||||
BTC.Show("GO.GO.Home")
|
||||
BTC.Hide("GO.GO.SpeechOptions")
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli_weitererzaehlen")
|
||||
}
|
||||
Composite(Sequence) {
|
||||
// Nein
|
||||
BTC.Run("NamedEventTrigger.GO.Option2Button")
|
||||
BTC.AbortEventListener("NamedEventTrigger.GO.Option1Button")
|
||||
BTC.Hide("GO.GO.Option1Button")
|
||||
BTC.Hide("GO.GO.Option2Button")
|
||||
BTC.Hide("GO.GO.SpeechButton")
|
||||
BTC.Show("GO.GO.Home")
|
||||
BTC.Hide("GO.GO.SpeechOptions")
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_KI_Audio_Chat_Castelli")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -- Race 2: User sagt nichts
|
||||
Composite(Sequence) {
|
||||
BTC.Wait(5)
|
||||
BTC.CompareUserSpeechInputStarted(false)
|
||||
BTC.AbortSpeechEventListener()
|
||||
BTC.StopSpeechIntentRecognition()
|
||||
BTC.ClearPossbileSpeechIntents()
|
||||
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_KI_Audio_Chat_Castelli")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Tree("26_Castello_Castelli_di_Bellinzona_KI_Audio_Chat_Castelli") {
|
||||
// --- Castelli di Bellinzona - KI Audio Chat Castelli ---
|
||||
Composite(Sequence) {
|
||||
RunTree("26_Castello_Castelli_di_Bellinzona_Chatbot_Init")
|
||||
//RunTree("26_Castello_Castelli_di_Bellinzona_Chatbot_Init")
|
||||
BTC.GetKeyDown("Return")
|
||||
}
|
||||
}
|
||||
|
||||
Tree("26_Castello_Castelli_di_Bellinzona_Geschichte_Castelli_weitererzaehlen") {
|
||||
// --- Castelli di Bellinzona - Geschichte Castelli weitererzaehlen ---
|
||||
Composite(Sequence) {
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_01")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_01")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_01")
|
||||
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_02")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_02")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_02")
|
||||
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_03")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_03")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_03")
|
||||
|
||||
Composite(Race) {
|
||||
Composite(Sequence) {
|
||||
// User stellt Chatbot eine Frage
|
||||
// TODO: Button Chatbot starten drücken
|
||||
// ... Tree?
|
||||
BTC.GetKeyDown("Return")
|
||||
}
|
||||
|
||||
Composite(Sequence) {
|
||||
// User fragt nichts
|
||||
BTC.Wait(10)
|
||||
// TODO: Check, ob Button gedrueckt worden ist - wenn ja, fail
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_07")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_07")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_07")
|
||||
|
||||
// TODO: Chatbot antwortet
|
||||
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_08")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_08")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_08")
|
||||
|
||||
Composite(Race) {
|
||||
Composite(Sequence) {
|
||||
// User stellt Chatbot eine Frage
|
||||
// TODO: Button Chatbot starten drücken
|
||||
// ... Tree?
|
||||
BTC.GetKeyDown("Return")
|
||||
}
|
||||
|
||||
Composite(Sequence) {
|
||||
// User fragt 2tes Mal nichts
|
||||
BTC.Wait(10)
|
||||
// TODO: Check, ob Button gedrueckt worden ist - wenn ja, fail
|
||||
BTC.Show("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_12")
|
||||
BTC.Run("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_12")
|
||||
BTC.Hide("Depthkit.VIDEOS.GeschichteCastelli_weitererzaehlen_12")
|
||||
|
||||
BTC.AddPossbileSpeechIntent("Castelli_di_Bellinzona.Geschichte_Castelli_weitererzaehlen.13")
|
||||
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()
|
||||
RunTree("26_Castello_Hide")
|
||||
}
|
||||
|
||||
// -- Selector 2: Intent nicht erkannt
|
||||
Composite(Sequence) {
|
||||
BTC.ClearPossbileSpeechIntents()
|
||||
RunTree("26_Castello_Hide")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -- Race 2: User sagt nichts
|
||||
Composite(Sequence) {
|
||||
BTC.Wait(10)
|
||||
BTC.CompareUserSpeechInputStarted(false)
|
||||
// TODO: Check, ob Button gedrueckt worden ist - wenn ja, fail
|
||||
BTC.AbortSpeechEventListener()
|
||||
BTC.StopSpeechIntentRecognition()
|
||||
BTC.ClearPossbileSpeechIntents()
|
||||
|
||||
RunTree("26_Castello_Hide")
|
||||
}
|
||||
|
||||
// -- Race 3: User startet Chatbot
|
||||
Composite(Sequence) {
|
||||
// TODO: Button Chatbot starten drücken
|
||||
BTC.GetKeyDown("Return")
|
||||
BTC.CompareUserSpeechInputStarted(false)
|
||||
BTC.AbortSpeechEventListener()
|
||||
BTC.StopSpeechIntentRecognition()
|
||||
BTC.ClearPossbileSpeechIntents()
|
||||
|
||||
// ... Tree?
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Tree("26_Castello_Hide") {
|
||||
Composite(Sequence) {
|
||||
// Go to scene 2.7 Slideshow
|
||||
BTC.SetStoryAVisited()
|
||||
BTC.Run("LoadScene.NEXT.27Slideshow")
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b33044846d4154092b2c77eb2b39d2c7
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dfb7e282cc4984099b638d1363d1313d
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e5024fa2fcee149899212412cf6f5c61
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 365435f49007142f5820bafcb2ca3dfa
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4016c4566490441a8a8bc02299d96286
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e709b5e0f4b94e6da210b4bd992c1cb
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca220758efbd1468f96fca7884f4d738
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6df3dc4b447f04761931f5d457ca4eb2
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29dca9c17896747d294a156698dbdf22
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1c1aa15bf45a40d0b2375a96f1dee9b
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -413,22 +413,26 @@
|
||||
"No."
|
||||
]
|
||||
},
|
||||
{
|
||||
"intentID": "Castelli_di_Bellinzona.Chatbot_Burgen.9",
|
||||
"intentSentences": [
|
||||
"(Non c'\u00e8 risposta entro 5 secondi)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"intentID": "Castelli_di_Bellinzona.Geschichte_Castelli_Bot.4",
|
||||
"intentSentences": [
|
||||
"S\u00ec, con piacere."
|
||||
"S\u00ec, con piacere.",
|
||||
"S\u00ec."
|
||||
]
|
||||
},
|
||||
{
|
||||
"intentID": "Castelli_di_Bellinzona.Geschichte_Castelli_Bot.6",
|
||||
"intentSentences": [
|
||||
"No, grazie."
|
||||
"No, grazie.",
|
||||
"No."
|
||||
]
|
||||
},
|
||||
{
|
||||
"intentID": "Castelli_di_Bellinzona.Geschichte_Castelli_weitererzaehlen.13",
|
||||
"intentSentences": [
|
||||
"S\u00ec.",
|
||||
"Indietro.",
|
||||
"Vorrei tornarci."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user