SKKmods Posted September 22, 2017 Share Posted September 22, 2017 I am looking to trigger a quest objective complete or quest stage change on talking to a unique caravan trader NPC with their default vendor dialog. Example: Find and talk to Carla - triggers a new quest stage. Finding her as a quest objective target is automatic, but I cant get an event to trigger/catch a dialog event: Event OnPlayerDialogueTarget()Game.GetPlayer().GetDialogueTarget()akSpeaker.IsInDialogueWithPlayer() If there is a blindingly obvious tutorial, please point me at it. /frustrated Link to comment Share on other sites More sharing options...
ThoraldGM Posted September 22, 2017 Share Posted September 22, 2017 RegisterForRemoteEvent(CaravanMerchantRef, "OnMenuOpenCloseEvent")? Then check status of a global on your quest? Link to comment Share on other sites More sharing options...
ThoraldGM Posted September 22, 2017 Share Posted September 22, 2017 DialogueMenu is one of the options. I tried to add this earlier but I got called away at work: https://www.creationkit.com/fallout4/index.php?title=OnMenuOpenCloseEvent_-_ScriptObject Link to comment Share on other sites More sharing options...
SKKmods Posted September 22, 2017 Author Share Posted September 22, 2017 (edited) Good ideas but not for this: RegisterForMenuOpenCloseEvent doesnt have any target info, just the event and trying to correlate to an actor via say location is hard work and unpredictable (esp with targets that move,or Trudi and Carla both in Drumlin or whatever). RegisterForRemoteEvent wont take an actor or actor alias ... "is not a known script type and therefore cannot be the source of the onmenuopencloseevent event". Edited September 22, 2017 by SKK50 Link to comment Share on other sites More sharing options...
ThoraldGM Posted September 22, 2017 Share Posted September 22, 2017 What if you used RegisterForRemoteEvent(CarlasRef, "OnPlayerDialogueTarget")? Would cover the dialogue event, Carla, and the player. Link to comment Share on other sites More sharing options...
SKKmods Posted September 23, 2017 Author Share Posted September 23, 2017 (edited) Right that is the function I needed, but implemented differently. For a target triggered solution which works with standard trader menu options from named (e.g. Trudi) and unnamed NPCs (e.g Egg Rock Pond trader). Attach a script to the NPC trader Quest Alias: Event OnPlayerDialogueTarget() Debug.Trace (Self + " OnPlayerDialogueTarget") MQScript.QuestStageTrader("MQActorTrudi") ; call a main quest script function with a flag EndEvent Or, player triggered (this only works for scripted quest dialogue, not standard packages) attach a script to the PlayerRef Quest Alias: Event OnSpeechChallengeAvailable(ObjectReference akSpeaker) Debug.Trace (Self + " OnSpeechChallengeAvailable " + akSpeaker) MQScript.QuestDialogue(akSpeaker) ; call a main quest script function with the speaker EndEvent The return [ObjectReference < (00106A00)>] could lookup, but simply flags dialogue conflict from another quest (in this case OrderUp at Drumlin when trying to trigger Trudi's barter menu) Edited September 28, 2017 by SKK50 Link to comment Share on other sites More sharing options...
ThoraldGM Posted September 23, 2017 Share Posted September 23, 2017 I see now that the menu event can't be attached to a target that way. Glad you figured it out despite the bad advice. Link to comment Share on other sites More sharing options...
SKKmods Posted September 24, 2017 Author Share Posted September 24, 2017 Its not bad advice, rather helpful pointers that I appreciate to keep pushing the CK functions until they work for me :) I am constantly baffled by the lack of explicit clarity in the CK documentation as to what functions or methods can be called by/on what resources. Link to comment Share on other sites More sharing options...
ThoraldGM Posted September 24, 2017 Share Posted September 24, 2017 The struggle is real. Sometimes I find answers on the Skyrim side or the oft neglected Discussion wiki tabs for each function. At least we have the forums. Link to comment Share on other sites More sharing options...
Recommended Posts