GetBaseItems
This article has been added to the Wiki by CSbot, an automated WikiBot. If you notice anything wrong with this page, please notify DragoonWraith, this bot's operator, by adding a comment to the end of User talk:DragoonWraith. If this article seems to be correct, then you can help the Wiki by removing this message, by editing this page and deleting the {{BotAddedPage}} template from the top of it. Thank you.
A function added by the Oblivion Script Extender.
Syntax:
(items:Array) reference.GetBaseItems baseContainer:ref
Returns an Array of StringMaps containing the items present in a base container or actor inventory and the quantity of each. These are the items added to the base object in the editor and may include leveled items. Some, all, or none of the items may be present in the inventory of a specific reference to the base object.
Each element of the returned Array is a StringMap with two elements:
"item" : ref ; the item "count" : short ; the quantity of this item
Values are accessed like:
array_var baseItems let baseItems := someChestRef.GetBaseItems Print "First item: " + (GetName baseItems[0][item] + " Quanitity: " + ToString baseItems[0][count]