Hi there!
I'm hoping to get some help with getting global conversations working.
Currently there are two scenes - A and B, they have a conversation in them. I'm trying to make it so clicking a dialogue option in scene A will toggle a dialogue option in scene B.
By following the instructions in the wiki (https://adventure-creator.fandom.com/wiki/Creating_a_global_Conversation) I've managed to toggle a dialogue option of the scene B conversation from scene A, but after moving from scene A to B and then back again there are multiple conversations under the DontDestroyOnLoad section and the correct one (with the toggled dialogue options) doesn't get displayed.
The conversations are prefabs and are in the scene (with the retain in prefab? option selected) and the Interaction sources are set to "Asset File".
Using AC version 1.73.8 and Unity 2018.3.3f1
Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @spud.
You'll want to make sure that any "global" Conversations are only added in once. This could be done by e.g. making your game's first scene one that just adds any such Conversations to the game before moving onto the first "proper" scene of the game, or by spawning them at runtime.
For example, you could configure Scene A's OnStart Cutscene to use the Object: Add or remove Action to spawn in the Conversation A prefab, but then use a Variable to make sure this only happens once. A Local Boolean variable named "Spawned Conversation", for example - set this to False by default, then check its value in OnStart. If its False, spawn the Conversation and set the variable to True.
Thanks @ChrisIceBox! That's what I was missing - it works perfectly now