Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Mon 21/07/2003 21:55:52

Title: Using an inventory on an object....
Post by: on Mon 21/07/2003 21:55:52
I want to make it so if a bomb touches a rock, it'll have an animation of the rock exploding, and you will lose the bomb.  I know how to lose the bomb already, but how do I make it so when the bomb icon clicks on the cracked rock?
Title: Re:Using an inventory on an object....
Post by: Barcik on Mon 21/07/2003 22:18:28
In the Use Inventory Item interaction of the rock
you have to write
if (character[GetPlayerCharacter()].activeinv==x)
//x being the number of the bomb inventory item
{
//your script here
}