Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: JudgeDeadd on Mon 24/11/2003 15:25:06

Title: How to check if player has inventory item?
Post by: JudgeDeadd on Mon 24/11/2003 15:25:06
How do I check (in scripts) if player has an inventory item?
Title: Re:How to check if player has inventory item?
Post by: Paper Carnival on Mon 24/11/2003 15:37:05
if (character[CHARID].inv[invnum]!=0) {
//do what you want
}

You will need to replace CHARID with the script name of your character (default is EGO) and invnum with the number of the inventory item.