Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: JJJAC55 on Wed 16/03/2005 21:10:02

Title: Use_Invetory Question! @#!#$!@$#
Post by: JJJAC55 on Wed 16/03/2005 21:10:02
ok, i want to make it so when my character uses a certain inventory item on soemthing, something happens.  Obviously this is a built-in feature, as i know, but once the cursor changes to the inventory item graphic, the darned GUI won't move so i cant click on the payphone.  Know what im sayin?
Title: Re: Use_Invetory Question! @#!#$!@$#
Post by: JJJAC55 on Wed 16/03/2005 23:22:26
do u guys not understand or what; i saw it done in '5 days a stranger' where you use an inventory item with a room hotspot or an object.  Where you click on an object, the cursor turns to the object graphic and you click the object with the hotspot or room-object. please tell ya u follow me here
Title: Re: Use_Invetory Question! @#!#$!@$#
Post by: Scummbuddy on Thu 17/03/2005 00:34:56
you've now broken 2 of our rules here. descriptive title lines, which you half-broke with your exclamations, which wasn't neccesary, and double posting. look, this community is built of people all around the world, and they have lives that don't match the hours that you are here on the forums.

your question will be answered.

for the sake of this lesson, i will use objects:
now, go to your object, and you can click on a button that states: interactions.  then you select on "use inventory with object", then select on "do nothing" and change it to what is similar to "use specific inv item." then you select the value to be the same as what number it is in the inventory subscreen. then you add the child action to be doing whatever you want.
Title: Re: Use_Invetory Question! @#!#$!@$#
Post by: strazer on Thu 17/03/2005 00:41:16
Quoteonce the cursor changes to the inventory item graphic, the darned GUI won't move so i cant click on the payphone

If you're using the built-in inventory gui, can't you just click on the "OK" button to close it?
Title: Re: Use_Invetory Question! @#!#$!@$#
Post by: on Thu 17/03/2005 00:48:13
Or if you're using a custom GUI, when you change the cursor, you just add the line GUIOff(GUINAME); where GUINAME is the name or number of your GUI.