The solution to this could be simply to check what button is pressed over inventory.
Here's some info that may be useful:
http://www.adventuregamestudio.co.uk/wiki/?title=Predefined_global_script_functions#on_mouse_click
In short, function on_mouse_click is called when player clicks mouse. You check that he clicked right mouse button over inventory item and if it is true then exit the function. You probably do not need to test coordinates, since AGS will recognize when click was made on item and sets button type to eMouseLeftInv or eMouseRightInv.
The code may look like this:
Code: ags
This is simply an example. You may find more sutable way to manage this depending on how you handle mouse events in your game.
Here's some info that may be useful:
http://www.adventuregamestudio.co.uk/wiki/?title=Predefined_global_script_functions#on_mouse_click
In short, function on_mouse_click is called when player clicks mouse. You check that he clicked right mouse button over inventory item and if it is true then exit the function. You probably do not need to test coordinates, since AGS will recognize when click was made on item and sets button type to eMouseLeftInv or eMouseRightInv.
The code may look like this:
function on_mouse_click(MouseButton button) {
if (button == eMouseRightInv)
{
return;
}
... your other mouse code ...
}
This is simply an example. You may find more sutable way to manage this depending on how you handle mouse events in your game.