Difference between revisions of "SetNthEntryValue - Perk"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>A.ellis
m (A.ellis moved page SetNthEntryValue to SetNthEntryValue - Perk)
imported>Doulos
Line 17: Line 17:


== Notes ==
== Notes ==
The n value is the index of the entry in the perk, starting from 0. So if there are three entries for perk MyPerk, then MyPerk.SetNthEntryValue(0, 1, 100) would set the value of the first entry (indexed to 0) to 100. MyPerk.SetEntryValue(2, 1, 100) would set the value of the third entry to 100 and so on.


== See Also ==
== See Also ==

Revision as of 04:34, 7 October 2013

SKSE Member of: Perk Script

Minimum required SKSE Version: 1.06.07


Syntax

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

Return Value

Examples

Notes

The n value is the index of the entry in the perk, starting from 0. So if there are three entries for perk MyPerk, then MyPerk.SetNthEntryValue(0, 1, 100) would set the value of the first entry (indexed to 0) to 100. MyPerk.SetEntryValue(2, 1, 100) would set the value of the third entry to 100 and so on.

See Also