SortFormsByType

From GECK
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

Returns an array of forms sorted by an array of type code integers.

JIP NVSE Plugin v40 merged Lutana NVSE plugin v19. As of JIPv40, This function's syntax was changed from Lutana v19, requiring that you pass the arrays via their IDs (set to integers) if you use the script compiler override (CO).

Syntax

[help]
(array) SortFormsByType formsArrayID:array typesArrayID:array

Example

array_var arrForms
array_var arrTypes
array_var arrSorted
let arrSorted := SortFormsByType arrForms, arrTypes

Example with CO

array_var arrForms
array_var arrTypes
array_var arrSorted
int iFormsArrayID
int iTypesArrayID
...
set iFormsArrayID to arrForms
set iTypesArrayID to arrTypes
let arrSorted := SortFormsByType iFormsArrayID iTypesArrayID


Old Syntax (Lutana standalone)

(arrSorted) SortFormsByType arrForms:array arrTypes:array 

See Also

Form_Type_IDs