How to initialize a FormList in code

Post » Tue Aug 07, 2012 3:26 am

Can FormLists be used in code only, or do they have to be created in the CK and passed in as a property? I tried the logical (to me anyway) way to initialize one:
FormList ignoreList = new FormList
but obviously doesn't work. I've read through the Wiki and Googled but all the examples I find use it as a Property.

I tried just creating the FormList in code with:
FormList ignoreList
But using AddForm doesn't actually add the forms. When I pass in the FormList as a property, everything works fine.
User avatar
Jessica Thomson
 
Posts: 3337
Joined: Fri Jul 21, 2006 5:10 am

Post » Mon Aug 06, 2012 6:27 pm

Can FormLists be used in code only, or do they have to be created in the CK and passed in as a property? I tried the logical (to me anyway) way to initialize one:
FormList ignoreList = new FormList
but obviously doesn't work. I've read through the Wiki and Googled but all the examples I find use it as a Property.

I tried just creating the FormList in code with:
FormList ignoreList
But using AddForm doesn't actually add the forms. When I pass in the FormList as a property, everything works fine.
IIRC you can't create new Forms in code. Everything has to be done in the CK and then linked through properties.
User avatar
Steve Smith
 
Posts: 3540
Joined: Sat Jun 30, 2007 10:47 am

Post » Mon Aug 06, 2012 7:25 pm

IIRC you can't create new Forms in code. Everything has to be done in the CK and then linked through properties.

Thanks Trira! That's what I was afraid of.

Moderators - can you move this to the CK forum, I mis-posted.
User avatar
TOYA toys
 
Posts: 3455
Joined: Sat Jan 13, 2007 4:22 am


Return to V - Skyrim