Please login or register.

Login with username, password and session length
Advanced search  


IRC channel - server:  channel: #wme (read more)

Author Topic: Override item selection event  (Read 2261 times)

0 Members and 1 Guest are viewing this topic.


  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
    • View Profile
Override item selection event
« 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... ???


  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Override item selection event
« Reply #1 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.

(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
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Page created in 0.021 seconds with 19 queries.