Can you copy arrays from one script to another?

Post » Sun Oct 20, 2013 6:52 pm

In my scripts I have

Ingredient[] property IngNameArray Auto
Int[] property IngValueArray Auto

And these are filled in the CK manually, which is quite tedious if there are a lot of them.

I want to use the same script but with extra Properties and States on another item, so the script has a slightly different name.

But I cannot seem to copy a stack of ingredients and Int values like you can with items in levelled lists etc.

Can this be done? If I change the name of the script for the new item, I have to fill the values all over again by hand when I attach it to the new book.

Could I put the actual array in the script and autofill it in the CK?

This would be much easier in future as if it is just a question of Form IDs and INT for the ingredient effect in a column, I can just paste from Excel into Notepad.

But I can't find anything in the CK, so I don't know the format and syntax for this.

Cheers!

~.~

User avatar
Kirsty Wood
 
Posts: 3461
Joined: Tue Aug 15, 2006 10:41 am

Post » Mon Oct 21, 2013 9:24 am

Can't you just duplicate the entire book in the CK? It should keep the script all its properties. Just make changes from there.

For some other options... you can just the ingredients in a formlist and it will work the exact same way (with slightly different functions). The other option would be to put the arrays in a quest, and then reference that (ex: MyQuest.IngNameArray[iElement]).

User avatar
Scotties Hottie
 
Posts: 3406
Joined: Thu Jun 08, 2006 1:40 am


Return to V - Skyrim