Use this integration when an agent must inspect or change a released Ultimate Inventory System Version 1 Inventory, Currency amount, panel, interaction, or save from a behavior tree.

Install the integration

  1. Download the current Ultimate Inventory System integration from Opsive Downloads.
  2. Import BehaviorDesignerUltimateInventorySystem.unitypackage.
  3. Confirm Has Item With Definition appears in the Task List.

What the integration adds

  • Items: Add Item, Remove Item, Has Item With Definition, Has Item With Category, Compare Item Amount, Drop Item From Inventory, Exchange Item Between Inventories.
  • Currency: Add Currency, Remove Currency, Has Currency, Compare Currency.
  • Actions and UI: Use Item From Inventory, Use Item Object, Interact, Open Close Panel.
  • Persistence: Save, Load, Delete Save.

Build a first workflow

  1. Put the behavior tree on the Inventory GameObject for the first test.
  2. Create a Selector whose first Sequence checks Has Item With Definition for one Health Potion.
  3. Add Use Item From Inventory with the potion Item Action Set and action index.
  4. Use the Selector fallback when the item is absent or the action fails.
  5. Inspect the Inventory after the task so the real amount change, not only node success, is verified.