Jump to content

Asking About the Perk Script -


ActiveMagicEffect88

Recommended Posts

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 Perk
Quest 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 also

let 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

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

  • Recently Browsing   0 members

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