Item State Asset
Create an Item State from Create > Game Creator > Inventory Extended > Item State.
Each Item State belongs to one Item, and one Item can have only one Item State asset. One asset can contain several States.
What Item States Do
Item States let one item have several condition-based variations. Use them for durability, quality, or other runtime values instead of creating duplicate items.
States are checked from top to bottom. The first state whose conditions match is used, and the remaining states are skipped.
For example:
- Durability greater than
0returns a Normal Sword state. - Durability equal to
0returns a Broken Sword state.
State Configuration
Each State can override:
- Title
- Description
- Sprite
- Title Color
- Price Modifier
- Can Sell
- Can Drop
- Pickup Audio Clip
- Use Audio Clip
Conditions usually use Runtime Item Properties such as Durability, Quality, or a custom property. A condition like Durability <= 0 can return a Broken state without replacing the item.
Use Item States to keep item variations in one place. Price Modifier and Can Sell are not used by the included examples yet, but they can be used with Inventory 2 examples with a small amount of setup.