Custom Item_SOs
Last updated
Last updated
Item_SO
can be extended to create various types of items with custom behaviors and abilities triggered upon use. If your item does not require any custom behavior or is not intended to be used, there's no need to extend Item_SO
.
For example, heals the player when used. To implement this functionality, it extends Item_SO
and overrides the Use
method.
For this guide, let´s imagine that we´re adding a potion that increases the heal we receive.
Now, we´ll need to make a custom Use method, so whenever we use this Item from the Inventory or Fav Pinned Menu, custom behaviour will be run.
For that, we´ll need to override the base Use method.
Notice how you have access to the InventoryProManager and the InventorySlot from which the Item has been used.
For this specific example, we´ll implement the Heal Multiplier logic: