Grotto Kueche Socket Interaction

dev
Nadine Ganz 2024-12-10 19:50:53 +01:00
parent bf06480ab9
commit 2fee855ece
7 changed files with 675462 additions and 93 deletions

View File

@ -5,7 +5,7 @@
//RunTree("32_Grotto_Story_B_Grotto_Intro")
RunTree("32_Grotto_Kueche_Intro")
//RunTree("32_Grotto_Kueche_Intro")
RunTree("32_Grotto_Kueche_Zwiebeln_schneiden")
//RunTree("32_Grotto_Kueche_alles_gefunden")
//RunTree("32_Grotto_Kueche_Kochen_Anzahl")
@ -556,104 +556,210 @@ Tree("32_Grotto_Kueche_Intro") {
Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
// --- Kueche - Zwiebeln schneiden ---
Composite(Sequence) {
BTC.Run("AudioSource.AUDIO.Kueche1FZwiebelnsc")
BTC.SynthesizeText("Nun kannst du die Zwiebeln schneiden.")
BTC.SpeechOutputEnded()
// Zwiebeln schneiden
BTC.Set("Collider.INTERACTABLES.ZwiebelTrigger", "otherTag", "Messer")
BTC.Run("Collider.INTERACTABLES.ZwiebelTrigger")
BTC.Run("StudioEventEmitter.INTERACTABLES.GrottoKcheZwiebeln")
BTC.Run("StudioEventEmitter.INTERACTABLES.ZwiebelSchneiden")
BTC.Hide("GO.INTERACTABLES.Zwiebel01")
BTC.Show("GO.INTERACTABLES.GeschnitteneZwiebe")
BTC.Run("AudioSource.AUDIO.Kueche2FZwiebelnsc")
BTC.SynthesizeText("Bitte suche nun die anderen Zutaten zusammen. Ich räume in der Zwischenzeit ein bisschen auf.")
BTC.SpeechOutputEnded()
// Zutaten leuchten
Composite(Marathon) {
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
BTC.Show("GO/NamedSocketEvent.SOCKETS.BouillonSocket")
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
BTC.Show("GO/NamedSocketEvent.SOCKETS.WeissweinSocket")
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
BTC.Show("GO/NamedSocketEvent.SOCKETS.RisottoSocket")
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
BTC.Show("GO/NamedSocketEvent.SOCKETS.OlivenoelSocket")
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
BTC.Show("GO/NamedSocketEvent.SOCKETS.PfefferSocket")
BTC.Enable("NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
BTC.Enable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
BTC.Show("GO/NamedSocketEvent.SOCKETS.SalzSocket")
}
// Zutaten auf die Arbeitsflaeche legen mithilfe Sockets
Composite(Marathon) {
// Risotto
Composite(Sequence) {
//BTC.GetKeyDown("Return")
BTC.SetBool("RisottoIsSnapped", false)
Decorator (RepeatUntilFailed) {
Decorator(Inverter) {
Composite(Race) {
Composite(Sequence) {
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
// Success
BTC.Run("GO/NamedSocketEvent.SOCKETS.RisottoSocket")
//BTC.GetKeyDown("Return")
BTC.SetBool("RisottoIsSnapped")
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
}
Composite(Race) {
Composite(Sequence) {
// Success
BTC.Run("GO/NamedSocketEvent.SOCKETS.RisottoSocket")
//BTC.GetKeyDown("Return")
BTC.SetBool("RisottoIsSnapped")
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
}
Composite(Sequence) {
// Fail
//BTC.GetKeyDown("Space")
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
BTC.CompareBool("RisottoIsSnapped", false)
Decorator(Repeat) {
Composite(Sequence) {
// Fail
//BTC.GetKeyDown("Space")
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto")
BTC.CompareBool("RisottoIsSnapped", false)
// Objekt geht zurueck
BTC.SetPosition("NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto", -6.733, 1.362, -18.908)
// Objekt geht zurueck
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto", -6.824, 1.335, -18.8996)
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
BTC.SpeechOutputEnded()
BTC.SetBool("RisottoIsSnapped", false)
}
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
BTC.SpeechOutputEnded()
}
}
}
} // Sequence
BTC.CompareBool("RisottoIsSnapped")
} // Sequence
}
} // Repeat
Composite(Sequence) {
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
BTC.Run("GO/NamedSocketEvent.SOCKETS.SalzSocket")
}
// Salz
Composite(Sequence) {
BTC.SetBool("SalzIsSnapped", false)
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
BTC.Run("GO/NamedSocketEvent.SOCKETS.PfefferSocket")
}
Composite(Sequence) {
Composite(Race) {
Composite(Sequence) {
// Success
BTC.Run("GO/NamedSocketEvent.SOCKETS.SalzSocket")
BTC.SetBool("SalzIsSnapped")
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
}
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
BTC.Run("GO/NamedSocketEvent.SOCKETS.WeissweinSocket")
}
Composite(Sequence) {
Decorator(Repeat) {
Composite(Sequence) {
// Fail
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz")
BTC.CompareBool("SalzIsSnapped", false)
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
BTC.Run("GO/NamedSocketEvent.SOCKETS.BouillonSocket")
}
Composite(Sequence) {
// Objekt geht zurueck
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Salz", -6.824, 1.335, -18.8996)
BTC.Run("NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
BTC.Disable("NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
BTC.Run("GO/NamedSocketEvent.SOCKETS.OlivenoelSocket")
}
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
BTC.SpeechOutputEnded()
}
}
}
} // Sequence
// Pfeffer
Composite(Sequence) {
BTC.SetBool("PfefferIsSnapped", false)
Composite(Race) {
Composite(Sequence) {
// Success
BTC.Run("GO/NamedSocketEvent.SOCKETS.PfefferSocket")
BTC.SetBool("PfefferIsSnapped")
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
}
Decorator(Repeat) {
Composite(Sequence) {
// Fail
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer")
BTC.CompareBool("PfefferIsSnapped", false)
// Objekt geht zurueck
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Pfeffer", -6.824, 1.335, -18.8996)
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
BTC.SpeechOutputEnded()
}
}
}
} // Sequence
// Weisswein
Composite(Sequence) {
BTC.SetBool("WeissweinIsSnapped", false)
Composite(Race) {
Composite(Sequence) {
// Success
BTC.Run("GO/NamedSocketEvent.SOCKETS.WeissweinSocket")
BTC.SetBool("WeissweinIsSnapped")
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
}
Decorator(Repeat) {
Composite(Sequence) {
// Fail
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein")
BTC.CompareBool("WeissweinIsSnapped", false)
// Objekt geht zurueck
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Weisswein", -6.824, 1.335, -18.8996)
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
BTC.SpeechOutputEnded()
}
}
}
} // Sequence
// Bouillon
Composite(Sequence) {
BTC.SetBool("BouillonIsSnapped", false)
Composite(Race) {
Composite(Sequence) {
// Success
BTC.Run("GO/NamedSocketEvent.SOCKETS.BouillonSocket")
BTC.SetBool("BouillonIsSnapped")
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
}
Decorator(Repeat) {
Composite(Sequence) {
// Fail
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon")
BTC.CompareBool("BouillonIsSnapped", false)
// Objekt geht zurueck
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Bouillon", -6.824, 1.335, -18.8996)
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
BTC.SpeechOutputEnded()
}
}
}
} // Sequence
// Olivenoel
Composite(Sequence) {
BTC.SetBool("OlivenoelIsSnapped", false)
Composite(Race) {
Composite(Sequence) {
// Success
BTC.Run("GO/NamedSocketEvent.SOCKETS.OlivenoelSocket")
BTC.SetBool("OlivenoelIsSnapped")
BTC.Disable("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
}
Decorator(Repeat) {
Composite(Sequence) {
// Fail
BTC.ListenToEvent("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel")
BTC.CompareBool("OlivenoelIsSnapped", false)
// Objekt geht zurueck
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Olivenoel", -6.824, 1.335, -18.8996)
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
BTC.SpeechOutputEnded()
}
}
}
} // Sequence
}
BTC.SetBool("RisottoIsSnapped", false)
BTC.Wait(1)
Composite(Marathon) {

View File

@ -31,8 +31,8 @@ public class NamedStudioEventEmitter : ComponentHandler {
public override string ContentLabel() {
UpdateComponent();
#if UNITY_EDITOR
string[] eventName = studioEventEmitter.EventReference.Path.Split('/');
/* string[] eventName = studioEventEmitter.EventReference.Path.Split('/');
string sndName = eventName[eventName.Length - 1];
if (sndName.Trim().Length == 0) {
sndName = "undefined";
@ -40,10 +40,10 @@ public class NamedStudioEventEmitter : ComponentHandler {
// if (manualNamePost.Trim().Length > 0) {
// sndName += "_" + manualNamePost;
// }
return sndName;
#else
return sndName;*/
return objName;
#endif
}
public override void UpdateComponent() {

View File

@ -1 +1 @@
2024-12-10T08:38:20.0914490Z
2024-12-10T18:42:57.0313470Z

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,26 @@
{
"intents": [
{
"intentID": "Zugabteil.Szenenwahl.3",
"intentSentences": [
"A.",
"Picknick."
]
},
{
"intentID": "Zugabteil.Szenenwahl.5",
"intentSentences": [
"B.",
"Grotto."
]
},
{
"intentID": "Zugabteil.Szenenwahl.7",
"intentSentences": [
"C.",
"Wandern."
]
},
{
"intentID": "Story_B_Grotto.Intro.3",
"intentSentences": [

View File

@ -5,12 +5,12 @@ EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 1
path: Assets/Scenes/1.0-SBB.unity
guid: 6a1144d40bbf04513a9929856271d4e7
- enabled: 1
path: Assets/Scenes/3.2-Grotto.unity
guid: 51bd2edc532024f96a432eaf867d3a47
- enabled: 1
path: Assets/Scenes/1.0-SBB.unity
guid: 6a1144d40bbf04513a9929856271d4e7
- enabled: 1
path: Assets/Scenes/Test-Scene.unity
guid: 5739d873cf7d24221bea4b568b59f9c1

View File

@ -140,6 +140,9 @@ PlayerSettings:
bundleVersion: 0.1
preloadedAssets:
- {fileID: 11400000, guid: be340e3c48769439d8d18a5a2bccd498, type: 2}
- {fileID: 11400000, guid: bfa1182bd221b4ca89619141f66f1260, type: 2}
- {fileID: -8196854396901781169, guid: 1a4c68ca72a83449f938d669337cb305, type: 2}
- {fileID: -64324148185763206, guid: a9a6963505ddf7f4d886008c6dc86122, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1