ActiveMagicEffect88 Posted December 28, 2014 Share Posted December 28, 2014 Hiya... ... as the title says, I want to ask about usage of perk script that been added by SKSE. It is said that "SetNthEntryQuest" bool function is "Sets the Quest to be associated with this perk entry". But I'm not sure where's the bool value checking when I run the script. Honestly I don't even certain how to write it lol. Does it write like this:=======================================SetNthEntryQuest(int, Quest)int is the FormID of the PerkQuest is the... quest.=======================================or this? =======================================SomePerk.SetNthEntryQuest(int, Quest)SomePerk is the mentioned perk.int is the bool value (which is, 1 or 0)Quest is obviously, the quest.======================================= Oh, and alsolet me know if you need the source. It's unfinished tho, but I hope you'll get a grip for what I'm up to. Link to comment Share on other sites More sharing options...
zebem Posted December 28, 2014 Share Posted December 28, 2014 The int argument is the index of the perk entry, the Nth entry. Here's some code to set the quest of all entries to SomeQuest: Perk property SomePerk auto Quest property SomeQuest auto function DoStuff() int numEntries = SomePerk.GetNumEntries() int i = 0 while i < numEntries SomePerk.SetNthEntryQuest(i, SomeQuest) i += 1 endwhile endfunction Link to comment Share on other sites More sharing options...
ActiveMagicEffect88 Posted December 28, 2014 Author Share Posted December 28, 2014 So we only can give a perk some quest, but we cannot remove a quest from a perk? Or is it another way to do that? Link to comment Share on other sites More sharing options...
lofgren Posted December 29, 2014 Share Posted December 29, 2014 (edited) Try using SetNthEntryQuest(n, none) Edited December 29, 2014 by lofgren Link to comment Share on other sites More sharing options...
Recommended Posts