SetNthEntryValue - Perk

SKSE Member of: Perk Script

Minimum required SKSE Version: 1.06.07


Used to set a Perk's Entry Point Value field(s).

SyntaxEdit

bool Function SetNthEntryValue(int n, int i, float value) native

ParametersEdit

n: the index of the Entry Point in the Perk Entries list (0 indicates the first entry)

i: the index of the value to be set (0 to set the first value, 1 to set the second value if there is one)

value: the new value to be set.

Return ValueEdit

ExamplesEdit

Edit the Enchanting Perk "Extra Effect" so that it allows placing three enchantments on a single item:

Perk Property ExtraEffect auto
;...
ExtraEffect.SetNthEntryValue(0, 0, 3.00)

NotesEdit

  • Changes made with this function will persist across separate save loads but not across full game restarts.
  • This function allows setting Entry Point values more precisely than in the CK - which rounds decimal values to the nearest hundreth.

See AlsoEdit

GetNthEntryValue - Perk