Interacting with inventory items

Started by galaris, Tue 31/01/2012 19:50:59

Previous topic - Next topic

galaris

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.
"A compass is a magnetized bit of metal, floating in a solution"

Khris

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).

SMF spam blocked by CleanTalk