Difference between revisions of "TES5Edit Scripting Functions"

Jump to navigation Jump to search
→‎TES5Edit Scripting Functions: Details of ElementAssign
imported>Egocarib
m
imported>Morcroft
(→‎TES5Edit Scripting Functions: Details of ElementAssign)
Line 67: Line 67:
| scope="row" | <b>DefType</b> || TwbDefType || element : IInterface  || returns the IwbElement::DefType (see dtXxxx enums)
| scope="row" | <b>DefType</b> || TwbDefType || element : IInterface  || returns the IwbElement::DefType (see dtXxxx enums)
|- align="left" style="background-color: #EEEEEE"
|- align="left" style="background-color: #EEEEEE"
| scope="row" | <b>ElementAssign</b> || IwbElement || container : IwbContainer , aInder : integer, [element : IwbElement], aOnlySK : boolean  || Adds a new element to the container
| scope="row" | <b>ElementAssign</b> || IwbElement || container : IwbContainer , aInder : integer, [element : IwbElement], aOnlySK : boolean  || Copy the contents of one element into a container element
; container
: Destination element
; aInder
: Index of element to copy to in case if destination is array, (use HighInteger to append); LowInteger or other negative value for non arrays.
; element
: Element to copy from. Use nil to create a blank element of the appropriate type
; aOnlySK
: Unknown - false appears to work
 
Sample: there is a script to copy VMAD subrecords "Skyrim - Copy VMAD subrecord.pas"
|- align="left" style="background-color: #F8F8F8"
|- align="left" style="background-color: #F8F8F8"
| scope="row" | <b>ElementByIndex</b> || IwbElement || container : IwbContainer , index : integer  || Gets an element in the container by index
| scope="row" | <b>ElementByIndex</b> || IwbElement || container : IwbContainer , index : integer  || Gets an element in the container by index
Anonymous user

Navigation menu