Please help with inv. item cursors and interacting with inv. items

Started by JQ, Sun 10/06/2007 04:13:19

Previous topic - Next topic

JQ

Hi, I'm new at the forum and I'm from chile and I'm not very good in English. :-\
I am creating a game with some friends and we have some troubles with cursors and inventory items. I've been reading the forum since one week and I found lots of interesting information, I need help with two things more...

-1.   ???  I don't know how tu use inv items as cursors. I downloaded the GUI Iconbar of Simon The Sorcerer and I the statusbar system of Monkey Island 1.  Please tell me how to use items as cursors.

-2.   ???  I can look and interact with objects in the background or scenary (excuse my english), but i can't look nor interact with the inventory items. Please tell me how to interact with inv. items.

Thanks everyone.




Khris

1. Use the cursor mode eModeUseinv and set player.ActiveInventory to the clicked InventoryItem. I don't know the Simon Iconbar, but it probably contains some advanced code in on_mouse_click. If it uses a pointer or a cross for all modes, you'll have to change that in there.

2. Go to the Inventory pane, click the "Interactions..." button and put actions in "Look at inv item" / "Interact with inv item". However, if the template/GUI you're using uses "Any click on..." or something like that, you'll have to put the code/actions in there. Check the documentation.

Ashen

What Khris said, and (since I'd already typed it):

1. Should be the default behaviour - have you got the 'Don't use items as cursor' option checked? (General Settings window).

2. What do you mean by 'can't look or interact with items'? Are you having trouble setting up interactions for the items, or are the interactions just not running? Keep in mind that (as mentioned in the BFAQ and a couple of recent threads) the 'Interact' cursor mode won't actually run any interaction you've set. It'll only set the item as active (which should change the cursor to the Item graphic, or whatever you're using as 'Use Inv' cursor.

I'm not familiar with either of the GUI sets you're using but is it possible that there's something (e.g. another GUI) 'on top of' your inventory? That could be blocking clicks on the Items, causing both the above problems. Do items work OK if you use the default game GUIs?
I know what you're thinking ... Don't think that.

JQ

I just checked and it works, thanks. I think it was a problem with some GUI button number or something like that.
Thanks.

SMF spam blocked by CleanTalk