How to get current Conversation ID (in PlayMaker if posible)?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

How to get current Conversation ID (in PlayMaker if posible)?

Post by Abelius »

What the title says...

There a lot of PlayMaker actions I can use, but I don't find any that could do that trick for me.

Is it possible?

Thanks!
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to get current Conversation ID (in PlayMaker if posible)?

Post by Tony Li »

Not yet, but in 1.8.6 and 2.0.5 I'll add actions to get the current conversation ID, title, actor, and conversant. Do you need to know the conversation started via a trigger / PlayMaker Start Conversation action, or the current linked conversation in case you've linked from one conversation to another?

BTW, to get them via code, read:
  • DialogueManager.LastConversationStarted & LastConversationID for the title & ID of the conversation started via trigger / PlayMaker.
  • DialogueManager.CurrentActor & CurrentConversant for the transforms of the participants.
  • DialogueManager.CurrentConversationState for the current conversation state: current conversation ID, speaker, listener, dialogue entry, etc.
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: How to get current Conversation ID (in PlayMaker if posible)?

Post by Abelius »

Those actions will be nice to have. I can't say if knowing the starter type will be useful for me (not atm, at least), but being able to know the current ID, even when it has a "parent" one, that would be useful.

Thank you!
Unity 2019.4.9f1
Dialogue System 2.2.15
Post Reply