Background for Skyrim SE
Member of the StorageUtil script
intfunctionIntListAdjust(FormObjKey, stringKeyName, intindex, intamount)NativeGlobal

Description

Documentation Comment

Adjust the existing value of a list by the given amount.

ObjKey: form to set value on. Set none to set global list value.
KeyName: name of list.
index: index of value in the list.
amount: +/- the amount to adjust the lists current index value by.

returns 0 if index does not exists


Caveats


Parameters

FormObjKey

stringKeyName

intindex

intamount


Examples

Auto-Generated Example

Form myForm__ObjKey
string myString__KeyName
int myInt__index
int myInt__amount

int returnedValue = StorageUtil.IntListAdjust(myForm__ObjKey, myString__KeyName, myInt__index, myInt__amount)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.