How to change item place.

  • #1, z KilgharrahThursday, 21. April 2016, 15:30 hodinky 9 years ago
    Hello.
    Can I change the place of the item in my inventory ?
    Items are add automatical, but i have special place for the item. How to change it?

    Bažant

    7 Posts


  • #2, z afrlmeThursday, 21. April 2016, 16:07 hodinky 9 years ago
    You can change the index order value of items with Lua script but you can't specifically place a single item in a specific slot because that's not how the inventory system works.

    I wrote a couple of scripts the other year that let you replace (swap items) or insert an item before or after another item.

    Imperátor

    7285 Posts

  • #3, z KilgharrahThursday, 21. April 2016, 16:54 hodinky 9 years ago
    When i create two inventory interfaces can I with the script add item to the second interface?

    Bažant

    7 Posts

  • #4, z sebastianThursday, 21. April 2016, 17:04 hodinky 9 years ago
    You have to edit the script then. Right now it inserts/replaces items for the current character

    Kapitán

    2346 Posts

  • #5, z afrlmeThursday, 21. April 2016, 17:08 hodinky 9 years ago
    Hmm... if it's a permanent item like an upgrade of sorts then why bother adding it as an item? You could add it as a static image or animation to an interface button set to "action area" type.

    No you can't use two inventory interfaces. They will both display the same items because it's how the engine handles items.

    The only way to get really creative is to build your own inventory / item system, which would require a lot of work, as well as scripting knowledge & good understanding of how if queries work.

    Imperátor

    7285 Posts

  • #6, z sebastianThursday, 21. April 2016, 18:04 hodinky 9 years ago
    Oh i thought the second i terface belonged also to a second character...

    Kapitán

    2346 Posts

  • #7, z KilgharrahThursday, 21. April 2016, 18:26 hodinky 9 years ago
    Static image works, but do you know how to display text not above npc, but where I want to? I need to display text at the desired location, not above npc.

    Bažant

    7 Posts

  • #8, z sebastianThursday, 21. April 2016, 18:33 hodinky 9 years ago
    There are action parts to do that. They display text for an object at positions you want

    Kapitán

    2346 Posts

  • #9, z KilgharrahThursday, 21. April 2016, 18:34 hodinky 9 years ago
    But this is dialog and this must by on every scene. I create a walkie-talkie, and this is in inventory. I want to talk at any time

    Bažant

    7 Posts

  • #10, z sebastianThursday, 21. April 2016, 19:18 hodinky 9 years ago
    As i said:there are object texts (which can be set as background texts and also on interfaces)

    Kapitán

    2346 Posts

  • #11, z KilgharrahFriday, 22. April 2016, 13:30 hodinky 9 years ago
    Ok, i can add display text, but i cant add dialog to walkie-talkie. How add this?

    I have this: WT(interface)->Button_WT(button type i chose 'Action area')-> int the properties i check 'Show action text' and font and i set 'Set area for action text'.

    I added this to my game, I can click to it and do some actions, but how to add dialog to this?
    Dialog must be at every scene, Main_character dialogs is shown questions and answers above character, but answers must be shown in another place on the screen.

    Bažant

    7 Posts