Page 1 of 1

Item & Inventory System integration

Posted: Fri Oct 23, 2020 6:59 am
by 0ktun
hi again, i want to use this asset Item & Inventory System in my project as i see it's the new version of "Inventory pro" since the last one is not supported anymore!
So can i integrate it in with quest machine ?

Re: Item & Inventory System integration

Posted: Fri Oct 23, 2020 9:34 am
by Tony Li
Sure! Make custom conditions and actions for it by duplicating the starter scripts in Plugins / Pixel Crushers / Quest Machine / Templates. The scripts have comments that explain where to put your code. Your conditions and actions will appear in the Quest Machine editor menus just like the built-in conditions and actions.

If you want tips on creating your conditions and actions, you can examine how the Inventory Pro, Inventory Engine, and Ultimate Inventory System integrations implement their conditions and actions.

Re: Item & Inventory System integration

Posted: Fri Oct 23, 2020 11:15 am
by 0ktun
Tony Li wrote: Fri Oct 23, 2020 9:34 am
If you want tips on creating your conditions and actions, you can examine how the Inventory Pro, Inventory Engine, and Ultimate Inventory System integrations implement their conditions and actions.
where can i get those types ? can you give a document

Re: Item & Inventory System integration

Posted: Fri Oct 23, 2020 11:17 am
by Tony Li
Hi,

I'm not sure what you mean by tips.

I suggested importing the Inventory Pro, Inventory Engine, and/or Ultimate Inventory System integrations to look at how they work. The scripts won't compile because your project won't have the asset, but you can still examine the code. Then you can delete the scripts and write your own for Item & Inventory System using the instructions I provided above.