Determining who you are talking to in the Dialogue Menu

Post » Mon Sep 26, 2011 8:32 am

I have some extra processing going on while in menu mode 1009, which is the dialogue menu. Now I will have to go through a set sequence with three different NPC's. Is there a way to determine who you are talking to while the dialogue menu is open? I tried GetIsID NPCRef, but the CSE is giving me an error because this is in a quest script. It wants an explicit reference since it's a quest script - I don't understand what it wants.

I might be able to set a variable in the quest dialogue, but I'm not sure of the timing for setting such a variable.

So does anybody know of a way to figure out who I'm talking to?

Thanks.
User avatar
Lisa
 
Posts: 3473
Joined: Thu Jul 13, 2006 3:57 am

Post » Mon Sep 26, 2011 2:57 pm

Try...
Ref rTargetInt iNPCBegin MenuMode 1009	If (iNPC == 1)		;DoStuff1	ElseIf (iNPC == 2)		;DoStuff2	ElseIf (iNPC == 3)		;DoStuff3	EndIfEnd;=====================Begin GameMode ; *	Set rTarget to GetCrosshairREF ; *	If rTarget.GetIsID NPC1		Set iNPC to 1	ElseIf rTarget.GetIsID NPC2		Set iNPC to 2	ElseIf rTarget.GetIsID NPC2		Set iNPC to 3	ElseIf iNPC		Set iNPC to 0	EndIfEnd
*http://cs.elderscrolls.com/constwiki/index.php/GetCrosshairRef only works in GameMode
User avatar
CYCO JO-NATE
 
Posts: 3431
Joined: Fri Sep 21, 2007 12:41 pm


Return to IV - Oblivion