Ekayne Posted April 27, 2016 Share Posted April 27, 2016 (edited) I'm trying to do a simple mod that adds quest markers to the bobble-heads. as such I need to make a quest that carries those markers. I'm a compleete n00b at scripts and the tutorial I found was for skyrim, it was my assumption that papyrus runs the same between the two, so I wrote/Borrowed the code seen below GetOwningQuest().SetStage (10) GetOwningQuest().SetObjectiveDisplayed (10) This piece of code should feasibly display the quest log for stage 10 of the quest and display all objectives with an index of 10. right? I ask, because I feel like I'm basically two steps from compleetion, yet any time I tell it to compile I get the following error Papyrus Compiler Version 2.8.0.4 for Fallout 4 Copyright (C) ZeniMax Media. All rights reserved. Starting 1 compile threads for 1 files... Compiling "Fragments:Quests:QF_01bobbleheadquest_01000F99_1"... C:\Users\Charles\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_01bobbleheadquest_01000F99_1.psc(7,0): GetOwningQuest is not a function or does not exist C:\Users\Charles\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_01bobbleheadquest_01000F99_1.psc(7,17): void is not a known user-defined script type C:\Users\Charles\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_01bobbleheadquest_01000F99_1.psc(8,0): GetOwningQuest is not a function or does not exist C:\Users\Charles\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_01bobbleheadquest_01000F99_1.psc(8,17): void is not a known user-defined script type No output generated for Fragments:Quests:QF_01bobbleheadquest_01000F99_1, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on Fragments:Quests:QF_01bobbleheadquest_01000F99_1 And I don't understand what this is telling me/how to fix it. I read elsewhere that verifying the integrity of the CK and Game cache might help, but I did that and still got this error. I've tried running the CK as an Admin it doesn't seem to change anything. in the words of the protagonist "Your thoughts?" Edited April 27, 2016 by Ekayne Link to comment Share on other sites More sharing options...
dspeed Posted April 27, 2016 Share Posted April 27, 2016 GetOwningQuest is not a function or does not exist That's your problem. You should look at the reference to that function available on the CK wiki, and probably more helpful, search the forum for "GetOwningQuest". There's quite a few results, you'll probably see your problem sharpish. Link to comment Share on other sites More sharing options...
Lucasistheman Posted April 27, 2016 Share Posted April 27, 2016 The script your writing extends the script Quest. However quest does not have a function called GetOwningQuest() because it would simply return itself. Remove GetOwningQuest() and just use SetStage(10) and see if that returns any errors. Link to comment Share on other sites More sharing options...
Ekayne Posted April 27, 2016 Author Share Posted April 27, 2016 That seems to have done it. thanks! herp de derp. Link to comment Share on other sites More sharing options...
Recommended Posts