Multiple characters' inventory

  • #1, z GingetsuryuuSunday, 28. April 2013, 17:21 hodinky 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.

    Bažant

    9 Posts


  • #2, z derOesiSunday, 28. April 2013, 20:10 hodinky 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?

    Bažant

    48 Posts

  • #3, z GingetsuryuuSunday, 28. April 2013, 20:15 hodinky 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.

    Bažant

    9 Posts

  • #4, z derOesiMonday, 29. April 2013, 04:20 hodinky 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

    Bažant

    48 Posts

  • #5, z GingetsuryuuMonday, 29. April 2013, 05:32 hodinky 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

    Bažant

    9 Posts

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

    Bažant

    9 Posts