How to navigate long NPC interactions?
Hi all,
I'm trying to navigate the interaction with the undaunted daily pledge NPCs. The EVENT_CHATTER_BEGIN event will trigger a function which includes the following code: Code:
elseif GetChatterOption(1) == "What's the pledge today?" then Does anyone know how to navigate in those conversations? Thanks! |
Try to search vanilla code files to see how they do it, eg. the keybinds if you press 1, 2 or 3 to select the chatter options.
https://github.com/search?q=repo%3Ae...tion&type=code They call: Code:
INTERACT_WINDOW:SelectChatterOptionByIndex(1) This should then update the interact window texts etc. properly (hopefully) I'm no sure if you can queue 3x INTERACT_WINDOW:SelectChatterOptionByIndex(1) or need to wait after first call to it, so the chatter updates, e.g. raises a new event EVENT_CONVERSATION_UPDATED and you need to react on this then? Maybe check Dolgubons lazy Writ carfter addon as it does the pretty same while talking to the crafting writ NPC -> skip the "accept quests" dialogs. Oh and remember you are not only playing in English but might also have to support other languages, so checking for "What's the pledge today?" is not the same if you play in de, fr, ru, es, zh :-) |
Thanks for the Answer! I found an addon that implements this (thanks iFedix):
https://www.esoui.com/downloads/info...Utilities.html Although you can do it without events (disadvantages?): Code:
elseif options[1] == "What's the pledge today?" then Quote:
EDIT: Don't use the code above. Worked yesterday but not today. Idk why. The method by iFedix works though. |
All times are GMT -6. The time now is 11:59 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI