Form Lists

Post » Tue Jun 19, 2012 10:13 am

I can't quite seem to get my head around these.

Does anyone have a link to a tutorial, or well written wiki page (that I cannot find) that will show me how these work and what they are useful for?

(I think I need to use one ... having read some stuff on this forum ... but I can't work out how they work, nor if they will actually be any use)

Form Lists ... My topic of learning for the day :)
User avatar
Brentleah Jeffs
 
Posts: 3341
Joined: Tue Feb 13, 2007 12:21 am

Post » Tue Jun 19, 2012 2:59 pm

I remember having messed with the form list for the Animal packages behavior and for head parts of my elves mod, in the case for head parts they are used to tell the game which head parts can be used by certain races.
User avatar
Roberta Obrien
 
Posts: 3499
Joined: Tue Oct 23, 2007 1:43 pm

Post » Tue Jun 19, 2012 7:16 am

It's really just a list of Forms. The most significant thing about it imo, is its script functions.
http://www.creationkit.com/FormList_Script
User avatar
Charlie Ramsden
 
Posts: 3434
Joined: Fri Jun 15, 2007 7:53 pm

Post » Tue Jun 19, 2012 2:22 pm

Basically you create one in Object Window -> Miscellaneous -> FormList and then you can drag and drop stuff from Object Window in there and use scripts to add more forms or check what's in there.

The only example I have near is http://www.gamesas.com/topic/1344324-adding-spells-on-startup/page__view__findpost__p__20328156. I used it as an array, with the additional value that to add new spells in the script I only had to drag and drop them in the FormList instead of having to change the code.
User avatar
Rhiannon Jones
 
Posts: 3423
Joined: Thu Sep 21, 2006 3:18 pm

Post » Tue Jun 19, 2012 1:54 pm

So there's no page or informations about them ?

I have a List with already more than 250 items in; the List will become even bigger, and i was wondering if there's a limit or if such a huge list can lead to problems.


OP : they can be very useful with the Find functions (equivalents of GetFirstRef/GetNextRef from OBSE) or GetItemCount, for example.
User avatar
Richard
 
Posts: 3371
Joined: Sat Oct 13, 2007 2:50 pm

Post » Tue Jun 19, 2012 1:35 pm

So there's no page or informations about them ?

I have a List with already more than 250 items in; the List will become even bigger, and i was wondering if there's a limit or if such a huge list can lead to problems.


OP : they can be very useful with the Find functions (equivalents of GetFirstRef/GetNextRef from OBSE) or GetItemCount, for example.

Apart from the FormList Script posted above you have this one:

http://www.creationkit.com/FormList

I haven't seen any reference anywhere to a limit. It would be nice to know if there is any.
User avatar
Dean
 
Posts: 3438
Joined: Fri Jul 27, 2007 4:58 pm

Post » Tue Jun 19, 2012 5:45 pm

Basically you create one in Object Window -> Miscellaneous -> FormList and then you can drag and drop stuff from Object Window in there and use scripts to add more forms or check what's in there.

The only example I have near is http://www.gamesas.com/topic/1344324-adding-spells-on-startup/page__view__findpost__p__20328156. I used it as an array, with the additional value that to add new spells in the script I only had to drag and drop them in the FormList instead of having to change the code.
Ah Ha! See, now I see!

This is what I hoped (arrays) ... redwoodelf also posted about a way to do linked-lists ealier today/yesterday ... Combining those with these is exactly what I want.

Thanks very much :)
User avatar
Batricia Alele
 
Posts: 3360
Joined: Mon Jan 22, 2007 8:12 am


Return to V - Skyrim