Jump to content

[LE] Formlist question


greyday01

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...