greyday01 Posted October 7, 2018 Share Posted October 7, 2018 The WIKI said all items in a formlist need to be of the same type. Can Food, Ingredients and misc items go in the same list? How about items like a pickaxe which is a weapon but can be picked up and put in your inventory, or clothing? Just what is meant by the"same type"? Link to comment Share on other sites More sharing options...
JonathanOstrus Posted October 7, 2018 Share Posted October 7, 2018 It depends on how you use the form list. You can technically put any form in the list. This allows you to mix things, like putting a weapon, food, and a spell in the same list. But if you have a script trying to loop that list for some reason, it will generally need to cast the raw form to some base type. Trying to cast the food or spell to a weapon will cause an error. Since they're not weapons. Hence the note about being the same "type". If you're using the list as a condition check like to see if a container/actor has an inventory item with GetItemCount then you can mix anything that can be placed in inventory. Such as the weapon and food example. Placing the spell in the list wouldn't make sense in this case. Link to comment Share on other sites More sharing options...
greyday01 Posted October 8, 2018 Author Share Posted October 8, 2018 Thank you. I just want a script that resets the items in the list so I should be fine. Link to comment Share on other sites More sharing options...
Recommended Posts