Running several conversations in a script
Posted: Sat Mar 30, 2024 2:14 pm
Hey Tony, I'm setting up character scheduling for my game and the way I'd like to do it is by creating a method to run several conversations in my scheduling script.
These conversations have no dialogue in them, all they do is turn game objects on and off. This is what I've got right now.
But this is only working for the last character in the list, I guess because using the StopConversation(); is stopping it before it can run?
Basically I just want to run several conversations one after the other controlled by script. Do you know a better way to do this?
Thanks! (:
These conversations have no dialogue in them, all they do is turn game objects on and off. This is what I've got right now.
Code: Select all
public void ScheduleCharacters()
{
DialogueManager.StopConversation();
DialogueManager.StartConversation("ACT 1/Mayor/Calendar");
DialogueManager.StopConversation();
DialogueManager.StartConversation("ACT 1/Princess/Calendar");
DialogueManager.StopConversation();
DialogueManager.StartConversation("ACT 1/Grandfather/Calendar");
}
Basically I just want to run several conversations one after the other controlled by script. Do you know a better way to do this?
Thanks! (: