Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Wonkyth on Fri 23/01/2009 10:32:16

Title: Multiple Inventorys
Post by: Wonkyth on Fri 23/01/2009 10:32:16
Is it possible to have multiple inventories available to one character?
Is it possible to have two inventories from two different characters on screen at the same time?

These questions are a little bit whimsy, but I think I could get quite a nice effect if I knew vaguely how to do it.


Thanks for any help.
Title: Re: Multiple Inventorys
Post by: Akatosh on Fri 23/01/2009 11:22:01
I don't think that's possible. But you could make a second, invisible character for the protagonist's "second inventory", I guess.
Title: Re: Multiple Inventorys
Post by: Khris on Fri 23/01/2009 11:38:47
Here's an example of how to add a second inventory to the player character (not technically though, each character has only one inventory).
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36291.0

You can have more than one InvWindow on the screen, sure. You can put two InvWindows on one GUI, or use two GUIs with one InvWindow each.

InvWindows have a CharacterToUse property; it's changeable during a game via script and sets which character's inventory the InvWindow will display.