Arkadaemus Posted December 22, 2017 Share Posted December 22, 2017 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 AutoObjectReference Property NightcallerEnableMarker Auto Event OnInit()If (DA16.GetStageDone(200))Debug.Notification("Nightcaller Temple Initialized")NightcallerEnableMarker.Enable()EndIfEndEventIt 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 More sharing options...
fore Posted December 22, 2017 Share Posted December 22, 2017 Usually people forget to assign values for the properties. And you didn't mention it either. Link to comment Share on other sites More sharing options...
Arkadaemus Posted December 22, 2017 Author Share Posted December 22, 2017 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 More sharing options...
Evangela Posted December 23, 2017 Share Posted December 23, 2017 (edited) 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 autoon a fragment, the way that you could on other scripts. Instead you can only create them in that window. Edited December 23, 2017 by Rasikko Link to comment Share on other sites More sharing options...
Recommended Posts