Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sat 29/04/2006 17:32:30

Title: Checking if player has an inventory item
Post by: on Sat 29/04/2006 17:32:30
Hello.

I'm trying to turn on dialogue options depending on whether a specific inventory item is present or not. So i do run-script in the dialogue but i'm just not sure how to actually check the inventory item.

So i'm trying to do something like this:

If (inventory item is present)
{
  SetDialogOption (2, 3, eOptionOn);
}

else
{
SetDialogOption (2, 4, eOptionOn);
}
Title: Re: Checking if player has an inventory item
Post by: Ashen on Sat 29/04/2006 17:46:49
Read this, from just yesterday (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26310.0) - it's pretty much the same question you're asking, and exactly the same answer.
Title: Re: Checking if player has an inventory item
Post by: on Sat 29/04/2006 18:41:08
Great, thanks.

I did search but didn't find that thread.