SetNthEntryValue - Perk

From the CreationKit Wiki
Revision as of 22:44, 22 November 2013 by imported>Egocarib
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: Perk Script

Minimum required SKSE Version: 1.06.07


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

Syntax

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

Parameters

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 Value

Examples

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)

Notes

  • 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 Also

GetNthEntryValue - Perk