Erixa142 Posted July 28, 2021 Share Posted July 28, 2021 (edited) 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") EndIfEndEvent------------------------------------------------------------------------------------------------ Edited July 28, 2021 by Erixa142 Link to comment Share on other sites More sharing options...
DieFeM Posted July 28, 2021 Share Posted July 28, 2021 Looks like a proper approach. Doesn't it work? Link to comment Share on other sites More sharing options...
Erixa142 Posted July 28, 2021 Author Share Posted July 28, 2021 Looks like a proper approach. Doesn't it work?Yes but I'm just starting with Papyrus. Tutorials are hard to find. I was not sure it was the right approach. thanks for your reply. I guess I'm in the right track. Link to comment Share on other sites More sharing options...
SKKmods Posted July 29, 2021 Share Posted July 29, 2021 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 More sharing options...
Recommended Posts