Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Tailgunner on Fri 02/01/2009 13:39:18

Title: Little help for insert more object - AGS 2.61
Post by: Tailgunner on Fri 02/01/2009 13:39:18
First of all.. hi! I'm new in this incredible forum, where finally I can get the answers of my stupid questions. Oh, and sorry for my awful english, but I'm italian.  ;D

Anyway, I've got a little problem with my game, made with AGS 2.61 (yeah, I know.. it's obsolete, but I get on very well with it) : in the final puzzle of the demo, the character must put into a box all the inventory object pick up during the demo. At the end, when the last object is in the box, starts a cutscene.

Now, I've tried some solutions, but no one worked. How can I do this with a script?

Thanks for the answers.  ;)
Title: Re: Little help for insert more object - AGS 2.61
Post by: Pumaman on Fri 02/01/2009 18:14:33
You'll be lucky to find anyone who still speaks in 2.61 scripting!! ;)

Basically you can script the Use Inventory On Hotspot interaction for the box to remove the current item from the player's inventory, and then check whether they have any inventory items left. If not, start the cutscene.