Giving inventory items between multiple player characters.

Started by JimmyD, Sat 02/06/2007 15:17:48

Previous topic - Next topic

JimmyD

I've tried looking on the forums, but haven't been able to find what I'm looking for as yet, hopefully somebody can point me in the correct direction. Thanks in advance for any help.

The situation I've got involves a game with multiple player characters (changed by pressing buttons on the GUI, like Day of the Tentacle). When I want one of my characters (who is currently the "player") to give an item to one of the others, I understand how I can remove the item from the inventory, but how do I then add the item to the inventory of the character who isn't currently being played? The list of commands only seems to show "Give the player an inventory item", but what would I need to give a different character the item?

Thanks again!

Ashen

AFAIK, it can't be done using the Interaction Editor commands. You'll have to use a 'Run Script' interaction, and the Character.AddInventory command with the Script-o-name of the not-currently-the-player Character you want to add to.

You should move away from the Interaction Editor and into scripting as soon as you can. It really only covers very limited, basic stuff, even slightly more advanced stuff (like multiple players) is much harder - if not impossible- using Interaction Editor. Also, most advice on the forums relates to scripting, which is probably why you didn't find anything. Questions about the IE generally get told to use scripting instead.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk