Background for Skyrim SE

DynamicStringArrays


Inheritance Tree

No indexed scripts extend this script.

Properties
Events
Functions
string[]functionCreateArray(intsize)
string[]functionSort(string[]akArray, boolAscending=true, boolDirect=true)

[DEV SERVER] Loading description...

string[]functionResize(string[]akArray, intNewSize, stringFill="")

Resize akArray to NewSize and return New Array.
If NewSize is less than current size, removes elements after NewSize in akArray.
If NewSize is greater than current size, the Fill element to the end of the akArray.

string[]functionJoin(string[]a_Array, string[]b_Array)

Join a_Array with b_Array and return new array.
The added lengths of the arrays must be less than or equil to 128 elements.
If greater than, the tail end of b_array is clipped off where it exceeds 128.

string[]functionPush(string[]akArray, stringToPush)

Add an element to the end of the array and return new array.
The passed in akArray must be less than 128 elements in length.

string[]functionInsertAt(string[]akArray, stringToInsert, intIndex)

insert the ToInsert string into the array, increasing the size by one and
moving each string after index back by one, returning the new array.

string[]functionInsertArrayAt(string[]akArray, string[]ToInsert, intIndex)

Insert the ToInsert array to the akArray at Index and return new array.
Passed in akArray must be less than 128 elements in length.

string[]functionShift(string[]akArray, boolFirst=true)

Remove either the first or last element from the array and return new shortened array
Passed in array must be less than or equal to 129 elements in length.

string[]functionRemoveAt(string[]akArray, intIndex)

Remove the element at the Index of the akArray and return new array.
Passed in array must be less than or equal to 129 elements in length.

string[]functionRemove(string[]akArray, stringToRemove, boolFirst=true)

Find the ToRemove element in the akArray and remove it, returning the shortened array.
If First == true (default) finds first instance of ToRemove, otherwise finds last instance of ToRemove (rFind)

string[]functionSubArray(string[]akArray, intStartIndex, intEndIndex)

Put the elements between StartIndex and EndIndex of akArray into a new array and return said array.

string[]functionClear(string[]akArray, stringToClear)

Remove all of the ToClear elements from the akArray and return new array.
The length of the new array must be 128 or less, otherwise returns the akArray unedited.

string[]functionDuplicate(string[]akArray)

Copy all the elements from akArray to NewArray and return NewArray.
Only copy's up to 128 elements.
different than doing ArrayA = ArrayB.
When doing that, altering ArrayB will also alter ArrayA. Not so with these copy functions.

intfunctionCount(string[]akArray, stringToCount)

count how many of the ToCount elements are in the array.

string[]functionGetArray()

For the create array functions.

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.