Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: cece0808 on Thu 12/01/2006 16:43:40

Title: Use inventory on object?! help!
Post by: cece0808 on Thu 12/01/2006 16:43:40
Ok. I have "tape" in my inventory. I want to use it to "window" to make something happen. From the interaction menu I found option 'Use inventory on object'. But when using this, I can not determin which inventory item must be used. So now I can use ALL inventory items on "window" and the same thing will happen!

So how can I make that the "tape" is an only object which can be used to "window" to make something happen?

HELP!

thx!
Title: Re: Use inventory on object?! help!
Post by: Khris on Thu 12/01/2006 17:27:55
if (player.ActiveInventory==iTape) {
Ã,  ...
}
else player.Say("What?");