Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ZAB123 on Tue 21/08/2007 18:02:17

Title: Inventory error messsage.
Post by: ZAB123 on Tue 21/08/2007 18:02:17
While testing my game I made following the tutorial, if I click on key I've plased in the room, then go into inventory, only the AGS cup show up. When I click on that the game ends with a message: Error SetActiveInventory: invalid inventory number 0.

How do I fix this? ???
Title: Re: Inventory error messsage.
Post by: Khris on Tue 21/08/2007 18:10:52
In the editor, open the room you've created, then select Objects.
Check the Interact object events you've created.
The second one would be "Player - Give the player an inventory item (0)"

Edit this so it says "1".
Title: Re: Inventory error messsage.
Post by: ZAB123 on Tue 21/08/2007 18:42:02
Great. Thanks!