Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: cece0808 on Mon 26/12/2005 18:43:01

Title: Adding Interact to Inventory?
Post by: cece0808 on Mon 26/12/2005 18:43:01
Yeah i know there's at least one another post from this very same subject, but i was unable to get my inventory interactions working.

So can someone who knows what to do, give me step by step instructions how can i make a working INTERACT button to my inventory!

thx alot! AGS's great!
Title: Re: Adding Interact to Inventory?
Post by: petazzo on Mon 26/12/2005 21:57:03
Go to the gui section and select the inventory gui. Then make a new button, give it a name ("Script name" in the control window) and double click on it to open the global script window. Put in the button section these lines

mouse.Mode = eModeTalkto;
mouse.UseModeGraphic(eModeInteract);

Then, when you want to add interaction choose "Talk to inventory item" and not "Interact...".
I think you should also read this (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=23544.msg291254#msg291254).