How do I initiate conversation from script
Posted: Mon Sep 21, 2015 3:28 pm
Hi ,
In the game that am working on , my NPC is an AI who constantly gives player info , warnings etc on specific events . I have a separate gameobject for AI and conversation trigger is attached to it. I want to know few things.
1. Can a conversation trigger handle multiple conversations ? Currently I am attaching multiple conversation scripts .
2. Is there any way to directly initiate a conversation from script of a different gameobject ? something similar to SendMessage ??
For #2 , currently I am attaching that conversation to a different gameobject and enabling that gameobject when I wish to start the conversation but I am sure there must be a better way.
By the way awesome work on the dialogue system.
Thanks.
Nishant
In the game that am working on , my NPC is an AI who constantly gives player info , warnings etc on specific events . I have a separate gameobject for AI and conversation trigger is attached to it. I want to know few things.
1. Can a conversation trigger handle multiple conversations ? Currently I am attaching multiple conversation scripts .
2. Is there any way to directly initiate a conversation from script of a different gameobject ? something similar to SendMessage ??
For #2 , currently I am attaching that conversation to a different gameobject and enabling that gameobject when I wish to start the conversation but I am sure there must be a better way.
By the way awesome work on the dialogue system.
Thanks.
Nishant