Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Javi-Wan Kenobi on April 09, 2007, 10:56:36 AM
-
Hi
I want some of the inventory items to have a different response to the "LeftClick" event that others.
In example, while the default action will be select the item so you can use it on other items in the inventory or on objects in the screen, sayon "LeftClick"
...
// clicking an inventory item
if(ActObj.Type=="item" && Game.SelectedItem==null)
{
Game.SelectedItem = ActObj;
}
...
some of the items must be used directly in the inventory, without select them, and the response mus be something like thaton "LeftClick"
{
global win = Game.LoadWindow("database\index.window");
win.Center();
win.GoExclusive();
}
I'm trying to put these lines on a script file for every item who need a different treatment, but always happens the default treatment, which is in the "game.script" file.
-
Well, i've just found the way.
Thanks anyway