AGS Support => Beginners' Technical Questions => Topic started by: Milos Regamer Jevtic on Thu 09/08/2012 05:31:15
Title: Specific items
Post by: Milos Regamer Jevtic on Thu 09/08/2012 05:31:15
Hi, i just want to know how to make specific items be the ONLY thing usable to a specific hotspot. Eg. A yellow key to be only able to open a yellow door, please explain for v272.
Title: Re: Specific items
Post by: Khris on Thu 09/08/2012 12:18:41
// inside the "use inventory on hotspot" event's function if (player.ActiveInventory == iYellowkey) { // unlock door, etc. } else player.Say("I can't use that here.");