Page 1 of 1

Any way to know if conversation on the last node?

Posted: Tue Dec 20, 2022 4:41 am
by TonyCooper
Hello,
Using DS and PlayMaker I'm setting up a UI with two buttons that I want to be able to step forward and backward through a conversation when I click on them.
I know the first conversation node Entry ID is always 1, and I can get that information with Get Current Conversation Info, so I know to disable the 'back' button in that case.
But my question is, is there any way I can get the last/max node entry ID for a conversation so that I know to disable the 'forward' button when the content of the last node is displayed?

I don't mind having to do some light scripting/code editing fyi, so it doesn't have to be a PM solution :)
Thanks!

Re: Any way to know if conversation on the last node?

Posted: Tue Dec 20, 2022 8:55 am
by Tony Li
Hi,

If the C# property DialogueManager.currentConversationState.hasAnyResponses is false, then you're on the last node.

Re: Any way to know if conversation on the last node?

Posted: Tue Dec 20, 2022 12:05 pm
by TonyCooper
Ah, that's great - I'll try and use that.
Thanks!

Re: Any way to know if conversation on the last node?

Posted: Tue Dec 20, 2022 12:11 pm
by Tony Li
Glad to help!