dlnmch2004 Posted November 19, 2016 Share Posted November 19, 2016 I make a script like this, what should I do then? I am a newbie to scripting, and I really want to learn, please~~ Event OnQuestShutdown() Game.AddPerkPoints(1) EndEvent Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 19, 2016 Share Posted November 19, 2016 There is no OnQuestShutdown event in Skyrim Papyrus (It is a Fallout 4 thing). So that script as is, won't work. Quickest solution for a single quest:Locate the quest stage fragment where the player is rewarded and add the Game.AddPerkPoints(1) line to it and recompile. For multiple quests it might be better to create a start game enabled quest, use a script on said quest which tracks the status of all target quests and rewards the player upon completion of the reward stages of each target quest. Would require using the OnInit() event to RegisterForASingleUpdate. The OnUpdate() event to check the quest statuses, reward as needed, and re-register for the single update as needed. A bit more complicated than a single line, but allow for greater compatibility with other mods that may edit the quests as well. Link to comment Share on other sites More sharing options...
dlnmch2004 Posted November 19, 2016 Author Share Posted November 19, 2016 Thx for answering!I am trying to understand how to use the event functionI am trying to add the game.addperkpoint line, but for some quest, like radiant quest in dawnguard, the fragment box simply says code not loaded...so i cant add this lineThere is no OnQuestShutdown event in Skyrim Papyrus (It is a Fallout 4 thing). So that script as is, won't work. Quickest solution for a single quest:Locate the quest stage fragment where the player is rewarded and add the Game.AddPerkPoints(1) line to it and recompile. For multiple quests it might be better to create a start game enabled quest, use a script on said quest which tracks the status of all target quests and rewards the player upon completion of the reward stages of each target quest. Would require using the OnInit() event to RegisterForASingleUpdate. The OnUpdate() event to check the quest statuses, reward as needed, and re-register for the single update as needed. A bit more complicated than a single line, but allow for greater compatibility with other mods that may edit the quests as well. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 19, 2016 Share Posted November 19, 2016 The Creation Kit cannot see into sub-folders to see the DLC scripts. In order to resolve this, you need to create a single directory with all your source scripts added in the correct order. This is best done with a clean directory. Add first the base game source scripts, then Dawnguard, then Hearthfires, then Dragonborn. You can then edit the SkyrimEditor.ini to direct sScriptSourceFolder= under [Papyrus] to the merged source script directory. Link to comment Share on other sites More sharing options...
dlnmch2004 Posted November 21, 2016 Author Share Posted November 21, 2016 The Creation Kit cannot see into sub-folders to see the DLC scripts. In order to resolve this, you need to create a single directory with all your source scripts added in the correct order. This is best done with a clean directory. Add first the base game source scripts, then Dawnguard, then Hearthfires, then Dragonborn. You can then edit the SkyrimEditor.ini to direct sScriptSourceFolder= under [Papyrus] to the merged source script directory.thank you so much!!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts