Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Adorewood on Thu 16/03/2006 10:23:28

Title: Basic question about using inventory
Post by: Adorewood on Thu 16/03/2006 10:23:28
Okay, now this is a stupid question, but I couldnt quite prove equal to the task. (I admit it, I'm an unworthy hungry retard :'(). How do I define what happens when an inventory item is interacted with a hotspot, object or another inventory item?
Title: Re: Basic question about using inventory
Post by: Ashen on Thu 16/03/2006 10:36:40
Read the BFAQ (http://americangirlscouts.org/agswiki/index.php/GUI%2C_Inventory_%26_Menu#Using_a_specific_inventory_item_to_trigger_an_action)
Title: Re: Basic question about using inventory
Post by: Khris on Thu 16/03/2006 10:39:17
EDIT: I second Ashen, but by the time he posted, I was done typing this:

Go to the hotspot's/object's/item's Interaction Editor and double click on Use inventory on ....
To check which item was used, either use Conditional - If inventory item was used or the equivalent script
if (player.ActiveInventory==inventory[x]) { ...}
Title: Re: Basic question about using inventory
Post by: Adorewood on Fri 17/03/2006 15:58:50
It amazes me that the mods have been kind enough to not lock me yet. Especially after that question.
By the way, well, obviously, my problem has been solved.