Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PaladinOfHonor on Thu 25/09/2003 20:38:22

Title: I can't use object - i give some scripts
Post by: PaladinOfHonor on Thu 25/09/2003 20:38:22
Hail ,

I again cross with a new problem - I do a object , and I place a script on him :

?Conditional - if invetory use (5)
player - give the player a invetory item (6)

but when i use 5 it doesnt give me 6...

Its special problem ?  :o
Title: Re:I can't use object - i give some scripts
Post by: Scummbuddy on Fri 26/09/2003 14:40:01
Where did you post this script in your game?

Can you show us the exact code you used, and not pseudo code?
Title: Re:I can't use object - i give some scripts
Post by: Gilbert on Mon 29/09/2003 06:15:10
Hmm this can be a foolish question but just to make sure:
Are you sure that the item's number is indeed 6? Note that the item's number is different from the sprite number.
Title: Re:I can't use object - i give some scripts
Post by: Ishmael on Mon 29/09/2003 07:17:44
is the 'give the player inventory item' action nested to the conditional, or just placed under it? It needs to be nested (or whatever, like subfolders in Windows foldertree). If it's not, drag it there, if that's possible, otherwise, create a new one inside it, and delete the old one.