Jump to content

Need help with quest to enable object


Arkadaemus

Recommended Posts

Added a new reward to a vanilla quest. I want to give retroactive credit for anyone who installs the mod mid-game and has already completed the quest, so I made a new quest with one stage and a script to check if the quest has been completed.

 

The script compiled fine in Notepad++. I attached it to the quest, but it won't fire. Checked SQV in game, and the new quest is running but the scriptstate="", checked with saves before and after completion. I haven't been able to get anything to compile in the quest fragment papyrus.

 

This is the script:

 

 

Scriptname NightcallerInitialize extends Quest Hidden
Quest Property DA16 Auto
ObjectReference Property NightcallerEnableMarker Auto
Event OnInit()
If (DA16.GetStageDone(200))
Debug.Notification("Nightcaller Temple Initialized")
NightcallerEnableMarker.Enable()
EndIf
EndEvent

It compiles in Notepad++, but not the fragment window in the quest stage, so I just added it in the Scripts tab.
I've read over the CK wiki for countless hours now, and just can't understand how the quest scripts or fragments are supposed to work. Any help or pointers to a better tutorial would be greatly appreciated.
Link to comment
Share on other sites

Yes, the properties are set. I just can't figure out how to run the script from inside the quest, or what to put in the fragment.

 

What compiles when building the script won't compile inside the fragment window. I don't understand the difference.

Link to comment
Share on other sites

I suspect it's not compiling because you're adding only this:

If (DA16.GetStageDone(200))
    Debug.Notification("Nightcaller Temple Initialized")
    NightcallerEnableMarker.Enable()
EndIf

But you forgot to create the objectReference property on the Fragment.

 

I can't confirm this, and have only even created properties on fragments through the property window, but I'd assume that you can't put this:

ObjectReference property myRef auto

on a fragment, the way that you could on other scripts. Instead you can only create them in that window.

Edited by Rasikko
Link to comment
Share on other sites

  • Recently Browsing   0 members

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