How to get currently speaking actor?

Post » Sat Nov 17, 2012 1:03 pm

What (Papyrus) function returns the currently speaking actor for a certain line of dialogue? I am using the DialogueGuardsGeneral Misc "Hello" dialogue. I want to detect when a guard says "Yes, Dovahkiin? How can I help you?" and start a quest.
User avatar
Ricky Rayner
 
Posts: 3339
Joined: Fri Jul 13, 2007 2:13 am

Post » Sat Nov 17, 2012 7:33 am

What (Papyrus) function returns the currently speaking actor for a certain line of dialogue? I am using the DialogueGuardsGeneral Misc "Hello" dialogue. I want to detect when a guard says "Yes, Dovahkiin? How can I help you?" and start a quest.

Could you not put code in the papyrus fragment of the hello, saying:

Quest1.SetStage(10)

You could also set a condition so that GetStageComplete < 10, so it only fires once.
User avatar
sara OMAR
 
Posts: 3451
Joined: Wed Jul 05, 2006 11:18 pm

Post » Sat Nov 17, 2012 9:32 am

Could you not put code in the papyrus fragment of the hello, saying:

Quest1.SetStage(10)

You could also set a condition so that GetStageComplete < 10, so it only fires once.

The issue is that the guard saying the dialogue needs to be identified, as (s)he will be part of the quest. Sorry about not being clear on this.
User avatar
Megan Stabler
 
Posts: 3420
Joined: Mon Sep 18, 2006 2:03 pm

Post » Sat Nov 17, 2012 2:25 pm

The issue is that the guard saying the dialogue needs to be identified, as (s)he will be part of the quest. Sorry about not being clear on this.
Then your guard should be a named ALIAS in your Quest ... then your dialogue conditions refer to the named-alias.

AND/OR akspeaker

http://www.creationkit.com/Topic_Info_Fragments

So, if you have a line of dialogue, that can be spoken by any one of lots of guards, then you can use akspeaker to get the Reference/ID of the speaker of the line

(depends what you want to do, as to which is better)
User avatar
Hairul Hafis
 
Posts: 3516
Joined: Mon Oct 29, 2007 12:22 am

Post » Sat Nov 17, 2012 11:37 am

Thank you h4vent - akSpeaker is what I was looking for.
User avatar
Alyna
 
Posts: 3412
Joined: Wed Aug 30, 2006 4:54 am


Return to V - Skyrim