Quantcast Dialog Events - ESOUI
Thread Tools Display Modes
08/30/17, 04:38 AM   #1
Carter_DC
 
Carter_DC's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 18
Dialog Events

Hi,
As part of new features on my last addon, i'm trying to mess a bit with quest givers dialogs.

i got EVENT_CHATTER_BEGIN working just fine and giving me the first dialog options but, once the first choice has been made and the second line of npc dialog is being shown along new choice options, i can't find a way to act on it.

i've tried to register EVENT_CONVERSATION_UPDATED but the event doesn't trigger.


Code:
function UDT.OnChatterBegin(eventCode, optionCount)
	          
	local optionString, _ = GetChatterOption(1)
	
	if string.find(string.upper(optionString), GetString(ARK_UDT_PLEDGE)) then
	--dialog is pledge offering
		EVENT_MANAGER:RegisterForEvent(ADDON_NAME, EVENT_CONVERSATION_UPDATED, UDT.OnConversationUpdated)
		EVENT_MANAGER:RegisterForEvent(ADDON_NAME, EVENT_CHATTER_END, UDT.OnChatterEnd)
	    SelectChatterOption(1)
	end

end
any ideas ?
  Reply With Quote
09/01/17, 05:01 AM   #2
Carter_DC
 
Carter_DC's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 18
That was obviously a stupid question, sry.
anyway, i figured that out already.
thx.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Dialog Events

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off