SPE_Utility
- Found in:
- Scrab's PE
Inheritance Tree
No indexed scripts extend this script.
Properties
Events
Functions
- Found in:
- Scrab's PE
Remove any form that does not contain any of the given keywords
if abMatchAll is true, only forms that contain all keywords are returned
if abInvert is true, only forms that do not contain any of the keywords are returned
- Found in:
- Scrab's PE
Remove any form whichs gold value is less than the given threshold (xor greater if abGreater, or equal if abEqual)
- Found in:
- Scrab's PE
Remove any which do not use any of the given slots. If abMatchAll is true, only forms that use all slots are returned
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Randomly reorder every element in the array, the array is modified in-place
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Sort arr using a comparison function: "compare(a, b)" in place, the array is modified in-place, returns true on success
Example: Sort_Int(arr, "function compare(a, b) return a <= b end") would sort arr in descending order
"lua" can also be a filepath to a .lua file containing the function, relative to Skyrim.exe
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Find the first element satisfying the function "predicate(a)"
Returns the index of the element, -1 if no such element exists, -2 if an error occursed
Example: FindIf_Int(arr, "function predicate(a) return a > 5 end") returns the index of the first element > 5
"lua" can also be a filepath to a .lua file containing the function, relative to Skyrim.exe
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Remove all occurences satisfying the predicate function, return the filtered array
Example: RemoveIf_Int(arr, "function predicate(a) return a > 5 end") removes all elements that are > 5
"lua" can also be a filepath to a .lua file containing the function, relative to Skyrim.exe
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Remove any objects from arr that are present in filter, return the filtered array
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Return the intersection of arr and arr2
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Create a new array [push, arr[0], arr[1], ..., arr[N-1]]
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
- Found in:
- Scrab's PE
Replace the character at index aiIndex in asStr with asReplace
