Editing Scripting Tutorial: Working with FormLists
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Incomplete}} | |||
This article is a WIP. I'll try to finish it in the next few days.--[[User:Omzy|Omzy]] 00:50, 1 August 2009 (UTC) | |||
==IMPORTANT== | ==IMPORTANT== | ||
'''You will need [[Fallout Script Extender|Fallout Script Extender (FOSE)]] for this tutorial.''' | '''You will need [[Fallout Script Extender|Fallout Script Extender (FOSE)]] for this tutorial.''' | ||
Line 49: | Line 52: | ||
===Creating a List=== | ===Creating a List=== | ||
FormLists must be created in the GECK, as there are no functions at this time to generate them from scripts. | |||
*Navigate in the Object Window to Miscellaneous -> Form List. | |||
*Right click, select New. | |||
*Enter an ID for your FormList. | |||
===Adding Forms to a List=== | ===Adding Forms to a List=== | ||
Line 78: | Line 81: | ||
*You can use the [[ListGetCount]] function. | *You can use the [[ListGetCount]] function. | ||
= | ==Lists of Lists...What?== | ||
As it would seem, a FormList is also an object in the editor, which has its own FormID. That makes a FormList a Form. What this means is that FormLists can contain other FormLists. This may seem a bit confusing if you've never learned any mid-level programming before, so lets look at the following script and see what it does: | |||
As it would seem, a FormList is also an object in the editor, which has its own FormID. That makes a FormList a Form. What this means is that FormLists can contain other FormLists. | |||
(script here) | |||
(add more scripting tricks/uses) | |||