FormList Script

From the CreationKit Wiki
Revision as of 04:01, 24 October 2013 by imported>CraftySentinel (→‎Member Functions: Formatting Change)
Jump to navigation Jump to search


Native base script for Formlists in the game.

Definition

ScriptName FormList extends Form

Properties

None

Global Functions

None

Member Functions

Function Description
AddForm(Form apForm) Adds the given form to the form list.
Int Find(Form apForm) Finds the specified form in the form list and returns its index or returns -1 if it's not a member.
Form GetAt(Int aiIndex) Returns the form in the list at index aiIndex.
Int GetSize() Returns the number of forms in the form list.
Bool HasForm(Form akForm) Returns whether the passed-in form is in this form list.
RemoveAddedForm(Form apForm) Removes the given added form from the form list.
Revert() Removes all script added forms from the form list.

Events

None

Example Scripts

FormList Script Example: Disabling/enabling a large quantity of objects easily

FormList Script Example: Show Gift Window and Identify Items Given