Multiple characters' inventory

  • #1, by GingetsuryuuSunday, 28. April 2013, 17:21 12 years ago
    I've got two characters. When character 1 uses a specific action on a door, it should put an item in character 2's inventory. But it doesn't. So I tried binding F2 to adding another item to character 2's inventory, and when I press it, BOTH items appear in character 2's inventory.

    Newbie

    9 Posts


  • #2, by derOesiSunday, 28. April 2013, 20:10 12 years ago
    have you tried using the "give item to other character" (or something like that) directly after picking it up with your active character?

    Newbie

    48 Posts

  • #3, by GingetsuryuuSunday, 28. April 2013, 20:15 12 years ago
    I can't find that command. I just find the "Give all items to other character" command. But it is still odd that the items do not appear in the inventory until another item is added to the same character's inventory via key event.

    Newbie

    9 Posts

  • #4, by derOesiMonday, 29. April 2013, 04:20 12 years ago
    mhhhh... i just dont see why it should be an issue, unless there is a bug...
    so you have an action like:

    char_X is active
    when you pick something up you call
    add item to char_Y

    this doesnt work?

    give would be: remove item from char_X, add item to char_Y obviously

    Newbie

    48 Posts

  • #5, by GingetsuryuuMonday, 29. April 2013, 05:32 12 years ago
    Yes, let me give a breakdown of what happens.

    I click on an action area in a room with char_X, the action goes
    show_message to char_X
    add item_1 to char_Y

    I then switch to char_Y and check it's inventory, but it's empty. I bound F2 to the following action:
    add item_2 to char_Y

    When I press F2, item_1 and item_2 both appear in char_Y's inventory. This happens even if I press F2 while still controlling char_X

    Newbie

    9 Posts

  • #6, by GingetsuryuuWednesday, 01. May 2013, 13:20 12 years ago
    Finally found the problem. The second character was not placed. My bad, sorry.

    Newbie

    9 Posts