Page 1 of 1

problems creating working dialogues using Playmaker in 2d game

Posted: Tue Nov 13, 2018 4:20 pm
by Zaadschaap
Hi,

I'm really a beginner when it comes to both playmaker and dialogue systems, so I need some help in .

I'm trying to set up a simple conversation between the player and the NPC. I put a 2d collider on the NPC, made it into a trigger. Set up a simple FSM (trigger enter 2d > start conversation), but when I then run the game something weird happens. The player is still far away from the NPC and the trigger, yet the conversation immediately starts and it only shows the first node. Then the conversation closes and when I then walk towards the NPC the conversation starts again, but also just the first node and after that it never shows up.

And if I try to change the FSM, I only get the error: sorry another conversation is already running, can't start conversation xxx

I'm really a n00b with both awesome apps, so please forgive my stupid question.

I'm using dialogue systems for unity v. 2.0.5 and Unity 2018.2.15f1

thanks in advance!
Andreas

Re: problems creating working dialogues using Playmaker in 2d game

Posted: Tue Nov 13, 2018 7:25 pm
by Tony Li
Hi,

It may be that your trigger is detecting another object, not the player, and starting the conversation. Only start the conversation if the intersecting object's is the player (e.g., its Tag is set to "Player").

It may be stopping immediately if it detects that the player is too far.

Have you tried using a Dialogue System Trigger set to OnTriggerEnter instead of a PlayMaker FSM? The tutorial on triggering conversations is here.

Also, you can temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. This will log a lot of information to the Console window. It could give you a better idea of what's going on.

Re: problems creating working dialogues using Playmaker in 2d game

Posted: Wed Nov 14, 2018 9:52 am
by Zaadschaap
I tried to troubleshoot which collider was causing the problem. But even with the player tagged as player it just didn't work.

So I threw everything out of the door and went with your second solution of not using FSM. That works like a charm! No problems now anymore.

I really want to thank for the excellent support, it's really helping me!

thanks and regards,
Andreas

Re: problems creating working dialogues using Playmaker in 2d game

Posted: Wed Nov 14, 2018 10:22 am
by Tony Li
Glad to help!