Page 1 of 1
Playmaker Random Conversation
Posted: Wed Jan 11, 2023 9:44 pm
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.
Re: Playmaker Random Conversation
Posted: Thu Jan 12, 2023 8:26 am
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.
Re: Playmaker Random Conversation
Posted: Thu Jan 12, 2023 1:49 pm
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
Re: Playmaker Random Conversation
Posted: Thu Jan 12, 2023 2:07 pm
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).