Jump to content

[LE] Papyrus script - can someone tell me what I'm doing wrong, please?


juffatoot

Recommended Posts

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 by juffatoot
Link to comment
Share on other sites

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 by juffatoot
Link to comment
Share on other sites

  • Recently Browsing   0 members

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