Difference between revisions of "Inventory"

From Dragon Age Toolset Wiki
Jump to: navigation, search
Line 36: Line 36:
  
 
===Armor===
 
===Armor===
*Light Armor  331000
+
*351000 - Mage Robe
*Medium Armor    332000
+
*331000 - Light Armor   
*Heavy Armor    333000
+
*332000 - Medium Armor     
*Massive Armor    334000
+
*333000 - Heavy Armor     
*Mage Robe    351000
+
*334000 - Massive Armor     
  
 
===Glove===
 
===Glove===
Line 71: Line 71:
  
 
===Melee Weapons===
 
===Melee Weapons===
*Axes   201000
+
*Waraxes   201000
*Greataxes   202000
+
*Battleaxes   202000
 
*Daggers    203000
 
*Daggers    203000
*Greatswords    204000
 
 
*Longswords    205000
 
*Longswords    205000
 +
*Greatswords    204000
 
*Maces    206000
 
*Maces    206000
 
*Mauls    207000
 
*Mauls    207000

Revision as of 04:36, 25 December 2010

A creature or container object can contain one or more items in inventory.

If a container is destroyed the contents of its inventory are transferred to a Bodybag.

Each item can have the following properties set:

  • Subgroup
  • Slot - Sets whether the creature has equipped the item. "Not equipped" leaves the item in the general inventory, "Main" puts the item into the creature's main hand, and "off-hand" puts the item into the creature's off hand.
  • Set - Items that are part of a set are meant to be given as a group. !!This is handled in the giving/taking script?!!
  • StackSize - how many copies of this item are present in a stack
  • Droppable - a checkbox that indicates whether the item is dropped when the creature is killed
  • Stealable - a checkbox that indicates whether the item can be stolen from the creature
A typical creature inventory screen

Merchants also have an inventory.

See Treasure system for auto-generated loot.

Inventory Count - basic syntax

How do you know if the user has enough inventory space before adding items?

 //Get max inventory size
 int iMaxInventorySize = GetMaxInventorySize(GetHero());
 object[] oInv = GetItemsInInventory(GetHero(), GET_ITEMS_OPTION_BACKPACK, 0, "", 1);
 
 PrintToLog("Max Inventory size:" + IntToString(iMaxInventorySize));
 PrintToLog("Current Inventory count:" + IntToString(GetArraySize(oInv)));

This returned 102 items in my inventory out of a total of 120.

Inventory Subgroup Codes

Armor

  • 351000 - Mage Robe
  • 331000 - Light Armor
  • 332000 - Medium Armor
  • 333000 - Heavy Armor
  • 334000 - Massive Armor

Glove

  • Light Gloves 311000
  • Medium Gloves 312000
  • Heavy Gloves 311000
  • Massive Gloves 314000

Boots

  • Light Boots 321000
  • Medium Boots 322000
  • Heavy Boots 323000
  • Massive Boots 324000

Helmets

  • Light Helmet 301000
  • Medium Helmet 302000
  • Heavy Helmet 303000
  • Massive Helmet 304000
  • Mage Helmet 351500

Shields

  • Kite Shield 343000
  • Large Shield 342000
  • Small Shield 341000
  • Tower Shield 344000

Magic Staff

  • Staff 221000

Melee Weapons

  • Waraxes 201000
  • Battleaxes 202000
  • Daggers 203000
  • Longswords 205000
  • Greatswords 204000
  • Maces 206000
  • Mauls 207000

Ranged Weapons

  • Ammo 214000
  • Crossbows 213000
  • Longbows 212000
  • Shortbows 211000

Other

  • Amulets 411000
  • Belts 421000
  • Rings 431000

Special

  • Collar 361000
  • Warpaint 362000