juffatoot Posted December 2, 2017 Share Posted December 2, 2017 (edited) One of my quest objectives is to use a portal. So my code is in the form of a script on the Object, not the reference, of the portal, which has an Event OnActivate to disable the portal, set the stage of the quest to the next one, have an NPC MoveTo the player (to make it seem like they used the portal too, just gets it done more quickly). Seen below. Scriptname FirstPortalArtaeum extends ObjectReference Quest Property PSIJIC01 Auto {Event OnActivate(ObjectReference akActionRef) GetOwningQuest().SetObjectiveDisplayed(30) GetOwningQuest().SetStage(30) EndEvent } This is stage 30 of the quest Papyrus: SetObjectiveCompleted(20) SetObjectiveDisplayed(30) Alias_Portal.GetReference().Disable() Alias_Nerien.GetReference().MoveTo(Game.GetPlayer()) However, when I use the portal, it doesn't register that I've actually activated the portal. I'm wondering if anyone knows what I'm doing wrong? Thanks in advance. EDIT: Also does anyone know how to import pre-recorded dialogue? I have effects changing how the voice sounds that I can't do in Creation Kit. I've already made the voice type and moved the files to the appropriate directory, but again it wants me to record via creation kit. Edited December 2, 2017 by juffatoot Link to comment Share on other sites More sharing options...
foamyesque Posted December 2, 2017 Share Posted December 2, 2017 Papyrus uses curl-braces {} to denote comments. Remove them and try again :p Link to comment Share on other sites More sharing options...
juffatoot Posted December 2, 2017 Author Share Posted December 2, 2017 (edited) arrgh that's annoying, I removed them and checked again and it put them back in!edit: I'm an idiot and didn't save... :confused:also an idiot because GetOwningQuest doesn't work for an independent object hahaha Thanks again, foamyesque. Only thing now is these dialogue lines :dry: Edited December 2, 2017 by juffatoot Link to comment Share on other sites More sharing options...
Recommended Posts