Difference between revisions of "Scripting Tutorial: Working with FormLists"

Jump to navigation Jump to search
no edit summary
imported>Omzy
imported>Omzy
Line 58: Line 58:


===Adding Forms to a List===
===Adding Forms to a List===
You can add base forms
*You can add base forms to a FormList in the GECK by dragging and dropping them into the FormList window.
*ListAddForm
*You can use the [[ListAddForm]] function.
**ref.ListAddReference
*You can use the [[ListAddReference]] function.
*You can use the [[AddFormToFormList]] function, although it is recommended to use [[ListAddForm]] instead since the FOSE function names are more standardized.


*removing forms from the list
===Removing Forms from a List===
**ListRemoveForm
*You can remove forms from a FormList in the GECK by selecting a form and pressing the 'Delete' key.
**ListRemoveNthForm
*You can use the [[ListRemoveForm]] function.
*You can use the [[ListRemoveNthForm]] function.


*replacing forms in the list
===Replacing Forms in a List===
**ListReplaceForm
*You can use the [[ListReplaceForm]] function.
**ListReplaceNthForm
*You can use the [[ListReplaceNthForm]] function.


*getting forms from the list
===Getting Forms from a List===
**ListGetForm
*You can use the [[ListGetNthForm]] function.
**ListGetNthForm


*getting form information
===Getting List Information===
**ListGetFormIndex
*You can view the entries of a FormList in the GECK in the FormList window. In the first column is the index of the entry. In the second column is the type of form (references are REFR). In the third column is the EditorID. In the fourth column is the NumericID.
**ListGetCount
*You can use the [[IsInList]] function.
*You can use the [[ListGetFormIndex]] function.
*You can use the [[ListGetCount]] function.


==Lists of Lists...What?==
==Lists of Lists...What?==
Anonymous user

Navigation menu