Get Dialogue Entry ID from code?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
RS_EG
Posts: 7
Joined: Tue Feb 22, 2022 6:16 pm

Get Dialogue Entry ID from code?

Post by RS_EG »

Hello

I'm wondering if during play mode it's possible to get the currently playing dialogue entry ID as an integer with code?
Screenshot 2023-02-09 213041.png
Screenshot 2023-02-09 213041.png (2.12 KiB) Viewed 212 times
I'm working with Bolt but I haven't found a node which can solely output the value

Thanks
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get Dialogue Entry ID from code?

Post by Tony Li »

Hi,

Use DialogueManager.currentConversationState.subtitle.dialogueEntry.id.
RS_EG
Posts: 7
Joined: Tue Feb 22, 2022 6:16 pm

Re: Get Dialogue Entry ID from code?

Post by RS_EG »

Managed to get it working, thanks for the quick reply!
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get Dialogue Entry ID from code?

Post by Tony Li »

Happy to help!
Post Reply