Jump to content

Execute script when MQ102 stage 1 is completed (player exit vault))


Recommended Posts

Hi, I would like to execute a script when the player exited Vault 111 (MQ102 stage 1 completed). What would be the best approach?

 

Event handler?

 

I'm a beginner at papyrus scripting and there's not a lot of results on google search for this topic.

 

Any help would be appreciated.

 

 

Added:

 

Here is was I've done so far from bits of info from different script I read:

-----------------------------------------------------------------------------------------------

 

Event OnInit()
Self.RegisterForRemoteEvent(MQ102 as Quest, "OnStageSet")
EndEvent

 

Event Quest.OnStageSet(Quest akSender, int auiStageID, int auiItemID)
if (auiStageID >= 10)
stuff

stuff

stuff

Self.UnregisterForRemoteEvent(MQ102 as Quest, "OnStageSet")
EndIf
EndEvent

------------------------------------------------------------------------------------------------

 

 

Edited by Erixa142
Link to comment
Share on other sites

Top Tip: If attached to a quest best use OnQuestInit() rather than OnInt() as it can fire early before the gameworld/environment/quest is ready. ObjectRefernces do not have that issue.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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