Page 1 of 1
SendMessageOnDialogueEvent.OnConversationEnd Potential Issue?
Posted: Sat Jan 24, 2015 1:24 pm
by andrew2110
Hello!
I'm trying to do a conversation where if the user walks out of an area, the player character speaks to themself saying "Oh I promised I'd help out Ted" and then they're forced back into the area where they need to complete the quest. To achieve this I'm using OnConversationEnd in SendMessageOnDialogueEvent, this works great for all the other conversations with NPC's in the game, however for this one conversation I've found it doesn't work, unless I set the Conservant for the conversation to be any other random NPC. Is this the expected behaviour for the component?
SendMessageOnDialogueEvent.OnConversationEnd Potential Issue?
Posted: Sat Jan 24, 2015 6:03 pm
by Tony Li
Hi,
Would you please post the inspector view of your SendMessageOnDialogueEvent component, and whatever target is receiving the message? I wouldn't think that the conversant would matter.
Also, if you'd like to email an example project to tony (at) pixelcrushers.com, I'll be happy to take a look.
SendMessageOnDialogueEvent.OnConversationEnd Potential Issue?
Posted: Sat Jan 24, 2015 10:34 pm
by andrew2110
On looking further into it, it was pretty dumb what I was doing, the "Actor" and the "Conversant" were the same, even just setting the Actor to "Player" and the Conversant to "None", makes it all work properly.
http://i.imgur.com/Ck0A0c1.jpg is a screenshot which shows how the SendMessageOnDialogue component is set up. After realising what I was telling it do was dumb, I don't really think it's a bug on DialogueSystems part - but perhaps it should kick me and tell me I'm being stupid if I select "Player" as both the actor and conversant.
http://i.imgur.com/DjAekGO.png this doesn't work (it does the conversation, but not the SendMessageOnDialogueEvents)
http://i.imgur.com/2LZSsQd.png this does fire the events.
SendMessageOnDialogueEvent.OnConversationEnd Potential Issue?
Posted: Sat Jan 24, 2015 10:34 pm
by andrew2110
I just realised that I've not reviewed this yet in the Asset Store! There is no way my game would be nearly complete without it so I'll go and do that now
SendMessageOnDialogueEvent.OnConversationEnd Potential Issue?
Posted: Sun Jan 25, 2015 4:41 am
by Tony Li
Thanks! I really appreciate the review, and I'm glad the Dialogue System is proving useful to your game. I'm putting together a showcase page of games that are released or in development that use the Dialogue System. May I include yours? If so, would you please send a few screenshots and a short description or a web link to tony (at) pixelcrushers.com?
Thanks for the suggestion -- In the next version, there'll be a console warning if the actor and conversant are the same.