Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dan_N on Mon 04/09/2006 18:37:55

Title: Multiple inventories (SOLVED)
Post by: Dan_N on Mon 04/09/2006 18:37:55
Question: how can I make invetories for different playable characters?
For example, I have three characters. Each of them has their own abilities, and each of them should have their own inventory. What character A has, character B shouldn't have. Unless character A uses the item on character B which then has a new item in his inventory, and character A, therefor does not have that item.

I don't think I could've more clear than that!

Kudos!
Title: Re: Multiple inventories
Post by: Ashen on Mon 04/09/2006 18:52:22
Characters automatically have their own Inventories, so what's the problem? Unless you're talking about moving items between the characters (just use Character.Add/LoseInventory), or setting the GUI to display another character's inventory (the InvWindow.CharacterToUse property (http://www.adventuregamestudio.co.uk/manual/InvWindow.CharacterToUse.htm), and it can be set in the GUI editor).

If it's not one of those things - apparently, you COULD have been clearer :)
Title: Re: Multiple inventories (SOLVED)
Post by: Dan_N on Mon 04/09/2006 19:02:17
Thank you Ashen, but after starting this topic in a fit of stupidity, I managed to look it up and figured it out in the manual. I thought it would be more complicated than that, but by George (whoever this George character is) Chris Jones is a genius! A genius I say!

Thanks.

Kudos to all. And to all a good night.
Title: Re: Multiple inventories (SOLVED)
Post by: R4L on Mon 04/09/2006 19:07:29
Quote from: Dan_N_GameZ on Mon 04/09/2006 19:02:17
I managed to look it up and figured it out in the manual.

Why didn't you do that before starting a topic?