Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Matti on Fri 06/02/2009 20:44:26

Title: Changing the character.ID for an inventory [SOLVED]
Post by: Matti on Fri 06/02/2009 20:44:26
I want to have an inventory that displays the items for one of three possible characters (depending on which character's turn it is).

But looking at the manual it seems there's no way to change the character.ID for the inventory. Is there any way to have one inventory for three characters and change the items accordingly?
Title: Re: Changing the character.ID for an inventory
Post by: Khris on Fri 06/02/2009 20:51:05
Just call InvWindow.CharacterToUse = player; after the player character has changed.
Title: Re: Changing the character.ID for an inventory
Post by: Matti on Fri 06/02/2009 20:55:19
Okay, thanks, though these characters don't have to necessarily be the player ;).