So I see in the triggers the Replace option, but how would I get replace to work while in C# code? My line I want is
DialogueManager.StartConversation("AlliBaby"+AlliBabyC);
Any help would be appreciated.
Dialogue Replace option with script
Re: Dialogue Replace option with script
The Replace option stops any active conversations before starting the Dialogue System Trigger's conversation.
You can use DialogueManager.StopAllConversations() in C#:
You can use DialogueManager.StopAllConversations() in C#:
Code: Select all
// Replace any active conversations with the conversation "AlliBaby"+AlliBabyC:
DialogueManager.StopAllConversations();
DialogueManager.StartConversation("AlliBaby"+AlliBabyC);
-
- Posts: 44
- Joined: Sun Feb 20, 2022 5:53 pm
Re: Dialogue Replace option with script
I get a DialogueManager does not containt a definition for StopAllConversations.
-
- Posts: 44
- Joined: Sun Feb 20, 2022 5:53 pm
Re: Dialogue Replace option with script
I havent updated it in a few months, was this recently added?
-
- Posts: 44
- Joined: Sun Feb 20, 2022 5:53 pm
Re: Dialogue Replace option with script
Ok I see I have .24 and this was added in .25. I do not have an option to update I just have download and start over?
-
- Posts: 44
- Joined: Sun Feb 20, 2022 5:53 pm
Re: Dialogue Replace option with script
I think I got it.
Re: Dialogue Replace option with script
Great! Yes, you're correct; just download and import the update on top of your existing Dialogue System. So you should be in good shape now.
In the future, I recommend backing up your project before updating the Dialogue System in case you've directly modified some Dialogue System files. I also recommend not directly modifying Dialogue System files. Instead, use the provided hooks for script customizations, and use prefab variants or duplicates for prefab customizations.
In the future, I recommend backing up your project before updating the Dialogue System in case you've directly modified some Dialogue System files. I also recommend not directly modifying Dialogue System files. Instead, use the provided hooks for script customizations, and use prefab variants or duplicates for prefab customizations.