Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

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

0 Members and 1 Guest are viewing this topic.

Art

  • 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... ???
Logged

metamorphium

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

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