Detecting dialogue with player - known method?

Post » Thu Jun 21, 2012 1:30 pm

Hi all,

A while back (February I think I last looked into this), the general consensus was that there was no known good way of detecting that the player was in dialogue with an NPC. GetDialogueTarget doesn't behave as one would expect; the player seems to be a "dialogue target" long after the conversation has ended.

Is there currently any known good method of determining whether or not the player is in dialogue? Thanks.
User avatar
jasminε
 
Posts: 3511
Joined: Mon Jan 29, 2007 4:12 am

Post » Thu Jun 21, 2012 12:15 am

Bump 1 of 2 before I let this die.
User avatar
Reanan-Marie Olsen
 
Posts: 3386
Joined: Thu Mar 01, 2007 6:12 am

Post » Thu Jun 21, 2012 1:16 pm

I can think of various possible methods, although I'm not sure any are "good"--they're all hacks of one form or another. It depends on what exactly you need, too: a boolean function or an event. But you could do things like a quest with an optional reference alias set to fill based on the IsInDialogueWithPlayer condition, and take action depending on whether the alias gets filled or not; use FindRandomActorFromRef like 20 times repeatedly to find actors within talking distance of the player and test each for IsInDialogueWithPlayer; a magic effect conditionalized using the IsTalking condition on the player; etc.
User avatar
NAtIVe GOddess
 
Posts: 3348
Joined: Tue Aug 15, 2006 6:46 am

Post » Thu Jun 21, 2012 5:44 am

DreamKing - Some good ideas, and yea, most of them are getting to the answer circuitously. Either way you've given me some good ideas; I'll especially give the reference alias a try. Thanks!
User avatar
carly mcdonough
 
Posts: 3402
Joined: Fri Jul 28, 2006 3:23 am


Return to V - Skyrim