Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: deltree on Sun 16/11/2003 17:40:22

Title: player possess item?
Post by: deltree on Sun 16/11/2003 17:40:22
is there a function to know wether the player has an object in is inventory or not?
Title: Re:player possess item?
Post by: Scummbuddy on Sun 16/11/2003 18:20:57
check out global integers or global ints in the help file/ manual
Title: Re:player possess item?
Post by: scotch on Sun 16/11/2003 18:25:26
or just do

if(character[CHARID].inv[ x]) {DoSomething;} else {DoSomethingElse;}

where x is the number of the inventory item.
Title: Re:player possess item?
Post by: deltree on Sun 16/11/2003 19:37:38
thanks!
I'll use this.