Dialogue between two NPCs

Post » Thu Dec 08, 2011 9:53 am

During an INFOGENERAL dialogue between two NPCs, I need to call a function on the target NPC of the dialogue.
I.e. NPC A starts a conversation with NPC B.
In the Result Script of a topic in the Conversation Tab, Can I do something like "Call "?

I know that I can do: "Call this", to pass NPC A as a parameter of ".

But can I find who NPC A is conversing with?

Thanks,
Kuertee
User avatar
Laura Elizabeth
 
Posts: 3454
Joined: Wed Oct 11, 2006 7:34 pm

Post » Thu Dec 08, 2011 8:11 am

I may have to get a list of actors with GetHighActors and guess the appropriate NPC.
This may be the best method.
Anyone?
User avatar
Franko AlVarado
 
Posts: 3473
Joined: Sun Nov 18, 2007 7:49 pm

Post » Thu Dec 08, 2011 5:17 am

Try GetPackageTarget - Should work.
User avatar
michael danso
 
Posts: 3492
Joined: Wed Jun 13, 2007 9:21 am

Post » Wed Dec 07, 2011 6:09 pm

Too good, ShadeMe.
Thanks, mate.
User avatar
Laura-Lee Gerwing
 
Posts: 3363
Joined: Fri Jan 12, 2007 12:46 am

Post » Thu Dec 08, 2011 10:10 am

Another Conversation tab question...
Will NPCs use Conversations without audio files?
I.e.: they use Topcis without audio files when in conversation with the Player.
Will they use Conversations without audio files when in conversation with another NPC?
User avatar
Vera Maslar
 
Posts: 3468
Joined: Wed Sep 27, 2006 2:32 pm

Post » Thu Dec 08, 2011 3:22 am

Yes to both.
User avatar
Laura Hicks
 
Posts: 3395
Joined: Wed Jun 06, 2007 9:21 am

Post » Wed Dec 07, 2011 10:58 pm

Thanks, RandomNoob!

It sounds weird that I would want this because in-game, you wouldn't hear this particular conversation between NPCs at all. But hearing the conversation is not important.

What I actually need it for is for NPCs who has / know something (e.g. an invisible token in their inventory as a flag that my quest can check for) to pass it on to other NPCs during conversations. Then those NPCs pass it on to others. Doing it this way saves me from coding a loop in GameMode to check which NPCs are in conversation.

Possibilities are possible!
User avatar
Julie Serebrekoff
 
Posts: 3359
Joined: Sun Dec 24, 2006 4:41 am


Return to IV - Oblivion