Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Art on December 04, 2005, 03:06:23 PM

Title: Override item selection event
Post by: Art on December 04, 2005, 03:06:23 PM
Is there any way to catch moment when user selects item from inventory?
There are some items in my game, which are not really usual item. Item is really some hint. So i want to display a picture everytime user clicks on item in inventory, and not to select it as ActiveItem.
How can i deal with it?
I tries to add "LeftClick" event into item script, but i guess it did not work... ???
Title: Re: Override item selection event
Post by: metamorphium on December 04, 2005, 05:58:12 PM
Hi Art,

you will need to adjust behavior in game.script file. Actually I've written a wiki article about it so maybe
you can find it useful because it describes what's going on in that file.

http://wiki.dead-code.org/wakka.php?wakka=BasicScripts

(There is a general "LeftClick" handler in game.script which decides what will be the order of called functions. There you see that
interface has different handler. ;) )

Hope that helps