Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: phillipPbor on Wed 11/11/2015 21:00:44

Title: idem before the door
Post by: phillipPbor on Wed 11/11/2015 21:00:44
if you got a idem, you will interact with door. not with clicking on it with the key on your cursor.

EXAMPLE: I cant leave without my cardkey.

how did you do it?
Title: Re: idem before the door
Post by: Khris on Wed 11/11/2015 22:33:09
  if (player.HasInventory(iCardkey)) ...
  else Display("I can't leave without my card key.");


Please, RTFM. This forum is for when you have exhausted all other available resources. We are not here to hold your hand through basic stuff that is explained plainly in the manual.

Finding specific stuff can be hard, that's why you're supposed to read through the scripting section once or twice.