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, say
on "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 that
on "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.