Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Granknight on Mon 08/01/2007 20:35:44

Title: Using inventory item
Post by: Granknight on Mon 08/01/2007 20:35:44
How do i create an interaction by using an inventory item on an hotspot?
I see there is "use inventory on" as option, but i can't find out how to determinate that i want this to apply with only one object and not with a random one.
Title: Re: Using inventory item
Post by: Da_Elf on Mon 08/01/2007 20:49:31
this one should definately be a RTFM question


function hotspot1_a() {
if (player.ActiveInventory == iKey) {
}
}
Title: Re: Using inventory item
Post by: Ashen on Mon 08/01/2007 23:17:54
Or even Read the BFAQ (http://americangirlscouts.org/agswiki/GUI%2C_Inventory_%26_Menu#Using_a_specific_inventory_item_to_trigger_an_action)