Ciao Pixel Crushers team,
Really sorry to ask this question, which was probably asked before. I spent a few hours looking around and just can't find it...
Ultimately I want to progress a monologue when a custom event happens: For example a VR button being pressed would send an Event/run a function.
* I tried to access DialogueManager.StartConversation() to trigger a conversation via script, but I'm getting the compiler error "'DialogueManager' in explicit interface declaration is not an interface." which I'm not managing to sort out.
* I can't find a way to "pause" at certain stages in a monologue, waiting for a custom Event or so to trigger the continuation of the monologue.
Any help with this is massively appreciated <3
Trigger Conversation/Continuation via C# script
-
- Posts: 2
- Joined: Sat Aug 20, 2022 3:09 am
Re: Trigger Conversation/Continuation via C# script
Hi,
You can disambiguate the Dialogue System's Dialogue Manager by specifying the namespace:
In your project, do you have another script named Dialogue Manager?mischakolbe wrote: ↑Sat Aug 20, 2022 3:18 am* I tried to access DialogueManager.StartConversation() to trigger a conversation via script, but I'm getting the compiler error "'DialogueManager' in explicit interface declaration is not an interface." which I'm not managing to sort out.
You can disambiguate the Dialogue System's Dialogue Manager by specifying the namespace:
Code: Select all
PixelCrushers.DialogueSystem.DialogueManagerStartConversation("Title");
Add a WaitForMessage(message) or Continue()@Message(message) sequencer command to the dialogue entry's Sequence. (Use Continue() if you require the player to click a continue button to advance the conversation.) Example:mischakolbe wrote: ↑Sat Aug 20, 2022 3:18 am* I can't find a way to "pause" at certain stages in a monologue, waiting for a custom Event or so to trigger the continuation of the monologue.
- Dialogue Text: "Press the red button."
- Sequence: WaitForMessage(PressedButton)
Code: Select all
PixelCrushers.DialogueSystem.Sequencer.Message("PressedButton");
-
- Posts: 2
- Joined: Sat Aug 20, 2022 3:09 am
Re: Trigger Conversation/Continuation via C# script
Tony Li, you absolute legend! Thank you so, so much!
I'm ashamed to say, but I had an old DialogueManager script of mine indeed. Completely forgot about it and didn't even cross my mind.
The WaitForMessage seems to work great as well.
I can keep working from here - thank you again for the immediate help! <3
I'm ashamed to say, but I had an old DialogueManager script of mine indeed. Completely forgot about it and didn't even cross my mind.
The WaitForMessage seems to work great as well.
I can keep working from here - thank you again for the immediate help! <3
Re: Trigger Conversation/Continuation via C# script
Glad to help!