Is there an animation tree like dialogue system where I can hook different events like animations, sound effects and text, or is there a tutorial I could find to do the same thing? I’ve been working really hard to make a dialogue system for a top-down 2-D RPG with scriptable objects, but I’m really stumped on how to connect my dialogue system with animations or sounds without making it always there for every single scriptable object(example: if I add a starting sound field to dialogue, now every single dialogue has the empty string, even though I wanted it for maybe 3 conversations).
Again I’m pretty new at Unity so I’m sorry if this question is dumb or confusing.
An example cutscene would be:
[player walks into trigger]
Cutscene start
[Door open]
[player turns around]
[NPC walks up to them]
“Hello Player, How are you?”
[Path 1:Good]
“I’m good!”
“That’s good to hear. Here, have this!”
[Gain item]
[Path 2:Bad]
“Could be better”
“That’s sad to hear. Here, have this, maybe it will cheer you up.”
[Gain item]
[Paths merge]
“Well I’ve got to go!”
[NPC walks off screen]
[Door closing sound plays]
[End cutscene]
For clarification I’m not asking HOW to do these things, I’m just asking how can I store the data effectively so my scripts know WHAT to do to combine the events. Whether it’s scriptable objects or a tree doesn’t matter to me.