Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: galaris on Tue 31/01/2012 19:50:59

Title: Interacting with inventory items
Post by: galaris on Tue 31/01/2012 19:50:59
I am trying to interact with inventory items, but I only manage to select and look at them.
For example: I want to take a box to my inventory and then open it.

please help.
Title: Re: Interacting with inventory items
Post by: Khris on Tue 31/01/2012 20:00:19
The default setup doesn't trigger the InventoryItem's "interact with" event.
You can either
- use an additional cursor mode and put your code in that mode's event
or
- change the "handle inventory clicks in script" option in the General settings, then add code for eMouseLeftInv and eMouseRightInv to the on_mouse_click function.

There should be threads about either of those methods, just try the forum search. (Focus on threads that aren't older than 2010).