Hi everybody,
I'm looking for a way to add monobehaviours on the creation of items in the inventory. I'm working on a game that includes synergies between items in the inventory (in the same vein of Backpack battles https://playwithfurcifer.itch.io/backpack-battles ) and the easiest way to do this is to be able to have my own scripts attach to items in the inventory.
At first I thought this was the purpose of the 'codebase' item attribute definition, but after some experiments I realized this is not the case. I also thought about using the ItemObject script, but this seems to be made to link objects in th inventory with gameobjects outside of it, while I'd like to have control of the gameobject inside the inventory.
Is there any way to do this?
In advance, thank you.
Rafa
I'm looking for a way to add monobehaviours on the creation of items in the inventory. I'm working on a game that includes synergies between items in the inventory (in the same vein of Backpack battles https://playwithfurcifer.itch.io/backpack-battles ) and the easiest way to do this is to be able to have my own scripts attach to items in the inventory.
At first I thought this was the purpose of the 'codebase' item attribute definition, but after some experiments I realized this is not the case. I also thought about using the ItemObject script, but this seems to be made to link objects in th inventory with gameobjects outside of it, while I'd like to have control of the gameobject inside the inventory.
Is there any way to do this?
In advance, thank you.
Rafa