Jump to content

Recommended Posts

Posted

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

Posted (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 by SKK50
Posted (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 by SKK50
Posted

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.

Posted
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.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...