Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: . on Mon 28/03/2005 15:23:18

Title: How to make an inventory
Post by: . on Mon 28/03/2005 15:23:18
I am a begginer so please help me with siple question: How to make an inventory? Please help me i will be very happy if you do that ;)
Title: Re: How to make an inventory
Post by: Ishmael on Mon 28/03/2005 15:33:20
Ther is already an inventory in the standard template. And in many other templates too. What kind of inventory are you after?

The simliest way:

Make a new GUI, draw an inventory window on it, put in the arrows and other buttons you need, and nick the script from some other template or open source game to make it work.
Title: Re: How to make an inventory
Post by: Ashen on Mon 28/03/2005 15:34:52
(Bah! Ishmael beat me to it. Oh, well, might as well post anyway...)
What exactly are you asking? 'How to make an inventory' could cover a lot of ground.....

Every character has an inventory by default, you just have to add things to it using AddInventory (item) or AddInventoryToCharacter (character, item).

To make a new Inventory item, use the 'New Item...' button on the 'Inventory items' window of the editor.

To change the way the Inventory looks in game, make a new GUI, or edit the one that's already there. You'll also have to change the script a little to make it use that GUI, this post (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=19991.msg243533#msg243533) explains that.

Try doing a forum search for 'inventory GUI', or 'custom inventory' for other replies, tutorials, etc. Aslo, have a look at what the manual and the BFAQ (http://bfaq.xylot.com/#guis) have to say about inventories, and GUIs in general.
Title: Re: How to make an inventory
Post by: . on Mon 28/03/2005 15:51:35
thanks for help
Title: Re: How to make an inventory
Post by: Darth Mandarb on Mon 28/03/2005 18:06:46
This was a problem for me when working on my first game as well!

I started This Thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=10946.0) which has a lot of useful information in it.  You might want to take a look at it.