How to change item place.

  • #1, by KilgharrahThursday, 21. April 2016, 15:30 4 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?

    Newbie

    7 Posts


  • #2, by afrlmeThursday, 21. April 2016, 16:07 4 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.

    Imperator

    6842 Posts

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

    Newbie

    7 Posts

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

    Thread Captain

    2337 Posts

  • #5, by afrlmeThursday, 21. April 2016, 17:08 4 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.

    Imperator

    6842 Posts

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

    Thread Captain

    2337 Posts

  • #7, by KilgharrahThursday, 21. April 2016, 18:26 4 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.

    Newbie

    7 Posts

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

    Thread Captain

    2337 Posts

  • #9, by KilgharrahThursday, 21. April 2016, 18:34 4 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

    Newbie

    7 Posts

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

    Thread Captain

    2337 Posts

  • #11, by KilgharrahFriday, 22. April 2016, 13:30 4 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.

    Newbie

    7 Posts

Write post