Playmaker Random Conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mintyman
Posts: 2
Joined: Wed Jan 11, 2023 8:38 pm

Playmaker Random Conversation

Post by mintyman »

Hello, simple noob question, if its already answered im sorry that I couldent find it.

anyway, im using playmaker and i have a few different conversations created. when i click on the NPC i would like to display one of them randomly. I have no issues getting conversations to come up, i just dont know how to set it to pick one randomly .thanks in advance.
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Playmaker Random Conversation

Post by Tony Li »

Hi,

You can configure the Start Conversation action to use a PlayMaker variable. Prior to this action, set the variable to a random conversation's title using PlayMaker's built-in actions.

Alternatively, create a "hub" conversation in the Dialogue Editor. Link the <START> node to a group node. Set the group node's Script to: RandomizeNextEntry(). Then link that group node to the conversations that you want to randomly start. In PlayMaker, start the hub conversation.
mintyman
Posts: 2
Joined: Wed Jan 11, 2023 8:38 pm

Re: Playmaker Random Conversation

Post by mintyman »

Thanks! I have it working using the "hub" method

I tried doing it using variables but I couldn't figure out how to get the list of conversations from the dialogue manager :lol:
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Playmaker Random Conversation

Post by Tony Li »

There's no PlayMaker action to get a list of conversations from a dialogue database. You'd have to write such an action yourself or manually populate the list.

I'm glad the hub approach worked out. I prefer it because it keeps the content in one place (the dialogue database).
Post Reply