ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Dialog Events (https://www.esoui.com/forums/showthread.php?t=7334)

Carter_DC 08/30/17 04:38 AM

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 ?

Carter_DC 09/01/17 05:01 AM

That was obviously a stupid question, sry.
anyway, i figured that out already.
thx.


All times are GMT -6. The time now is 07:12 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI