display a non active players inventory box (Solved)

Started by jamesreg, Fri 18/09/2009 21:02:35

Previous topic - Next topic

jamesreg

I have an issue and been looking in the manual and can not seem to find the specific command for thisI'm sure its doable however as it is simple.

I have things set up where I have the main player character and several other characters that will be walking around with him .
I have it set up that on the bottom i have 3 gui's which feature an avatar portrait box, a text dialog box and an inventory box

When I do dialogs and such I switch back and forth between these gui sets
I do not want my other characters to be fully the active player at any time but do have it set that if you interact with another
player it will briefly show their avatar, text box and inventory and then switch back to the main character in a few mins if nothing has
happened.

all this is working fine except one issue what is the command that say I want to have an inventory box on screen but one that does not belong to the active character so that I will be able to access and inventory item.

example its a star trek game you will be captain kirk and you want to click on Dr mccoy and have him use his medkit on a sick person
only kirk stays the active player and the medkit is only in mccoys inventory how do i display on his inventory box but keep kirk as the active player.

thank you

monkey0506

What you're looking for is the InvWindow.CharacterToUse property.

That will allow you to tell the inventory window to show the inventory of a different character other than the player. Such as:

Code: ags
invInventory.CharacterToUse = cBob;

jamesreg

Thank you kindly and thank you everyone in this forums and community the support for ags is awsome I reviewed other programs and almost went with one or two more because of some of the features but decided to go with ags because of its support and dedication by staff and users thank again

jamesreg

had to use the following text for it to work

invCustomInv.CharacterToUse=cMccoy;

Thanks again

SMF spam blocked by CleanTalk