Difference between revisions of "Container"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Warmstar
(Addtions to article)
imported>Haama
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Update}}
Containers hold items that can be put into an actor's inventory. Typical containers are treasure chests, sacks, and crates.
Containers hold items that can be put into an actor's inventory. Typical containers are treasure chests, sacks, and crates.


==Base Object==
==Base Object Fields==
Determines the EditorID, in-game name, model (.nif), opening sound, and closing sound of the container.
*'''ID:''' The Editor ID for this object. This is a unique name used to identify the container within the Construction Set
*'''Name:''' This is the name displayed by the container ingame.
*'''Script:''' [[Object_scripts|Object script]] attached to the container.
**Note a [[Crashes#Activating_a_Container_.28including_NPC.29|CTD]] is possible if the script has an [[onActivate]] block.
*'''Quest Item:''' Marks this as a quest item.
*'''Respawns:''' Determines if the inventory of the container will be cleared and reset to the original after the [[IHoursToRespawnCell|respawn time]].
*'''Weight:''' Weight limit of the container. Always set to zero.
*'''Encumbrance:''' Displays the total weight of all items in the container. Leveled items cause the weight to be negative. Displayed as, for example, 12.00/0.00. The upper number is the weight of items in the container, and the bottom should remain zero to insure that there is no weight limit on the container
*'''NIF File:''' 3D art used to display the container ingame
*'''Open Sound''': Sound played by the container when it's opened
*'''Close Sound''': Sound played by the container when it's closed
*'''Preview Calculated Result:''' Displays a list of possible items that could be in the container when the player is at the specified level. Useful only when items in the container are [[Leveled Item|leveled items]]
*'''Preview Level:''' Player level used to calculate leveled items


*'''Respawns:''' Determines if the inventory of the container will be cleared and reset to the original after a certain period of time (~3 days).  When this box is not checked, the player may place items in the container and they will remain there.
==Reference Object Fields==
 
*'''Lock Tab:''' Sets the [[Lock|lock]] difficulty ("level"), whether the lock is leveled, and what key will open it. Leveled locks use the lock difficulty as the base level
*'''Encumbrance:''' Shows the total weight of all items in the container.  Leveled items cause the weight to be negative.  Displayed as, for example, 12.00/0.00.  The upper number is the weight of items in the container, and the bottom should remain zero to insure that there is no weight limit on the container.
*'''Ownership Tab:''' Declares the owner faction and/or owner NPC.  This can determine whether taking items from the container is stealing
 
*'''Weight:''' For a container, is always zero, which prevents it from being affected by Havok Physics.
 
*'''Preview Calculated Result:''' Displays a list of possible items that could be in the container when the player is at the specified level.  Useful only when items in the container are [[Leveled Item|leveled items]]. 
 
==Reference Fields==
*'''Lock Tab:''' Sets the [[Lock|lock]] difficulty ("level"), whether the lock is leveled, and what key will open it. Leveled locks use the lock difficulty as the base level.
 
*'''Ownership Tab:''' Declares the owner faction and/or owner NPC.  This can determine whether taking items from the container is stealing.
 
== See Also ==
*[[Activate]]
*[[AddItem]]
*[[RemoveItem]]


[[Category:World Objects]]
[[Category:World Objects]]

Latest revision as of 16:19, 12 April 2009

Containers hold items that can be put into an actor's inventory. Typical containers are treasure chests, sacks, and crates.

Base Object Fields[edit | edit source]

  • ID: The Editor ID for this object. This is a unique name used to identify the container within the Construction Set
  • Name: This is the name displayed by the container ingame.
  • Script: Object script attached to the container.
  • Quest Item: Marks this as a quest item.
  • Respawns: Determines if the inventory of the container will be cleared and reset to the original after the respawn time.
  • Weight: Weight limit of the container. Always set to zero.
  • Encumbrance: Displays the total weight of all items in the container. Leveled items cause the weight to be negative. Displayed as, for example, 12.00/0.00. The upper number is the weight of items in the container, and the bottom should remain zero to insure that there is no weight limit on the container
  • NIF File: 3D art used to display the container ingame
  • Open Sound: Sound played by the container when it's opened
  • Close Sound: Sound played by the container when it's closed
  • Preview Calculated Result: Displays a list of possible items that could be in the container when the player is at the specified level. Useful only when items in the container are leveled items
  • Preview Level: Player level used to calculate leveled items

Reference Object Fields[edit | edit source]

  • Lock Tab: Sets the lock difficulty ("level"), whether the lock is leveled, and what key will open it. Leveled locks use the lock difficulty as the base level
  • Ownership Tab: Declares the owner faction and/or owner NPC. This can determine whether taking items from the container is stealing