Menu
Login
Language
DE EN FR ES IT CZ
Back

How to change item place.

  • #1, by Kilgharrah Thursday, 21. April 2016, 15:30 10 years ago Quote
    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 afrlme Thursday, 21. April 2016, 16:07 10 years ago Quote
    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

    7290 Posts

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

    Newbie

    7 Posts

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

    Thread Captain

    2346 Posts

  • #5, by afrlme Thursday, 21. April 2016, 17:08 10 years ago Quote
    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

    7290 Posts

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

    Thread Captain

    2346 Posts

  • #7, by Kilgharrah Thursday, 21. April 2016, 18:26 10 years ago Quote
    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 sebastian Thursday, 21. April 2016, 18:33 10 years ago Quote
    There are action parts to do that. They display text for an object at positions you want

    Thread Captain

    2346 Posts

  • #9, by Kilgharrah Thursday, 21. April 2016, 18:34 10 years ago Quote
    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 sebastian Thursday, 21. April 2016, 19:18 10 years ago Quote
    As i said:there are object texts (which can be set as background texts and also on interfaces)

    Thread Captain

    2346 Posts

  • #11, by Kilgharrah Friday, 22. April 2016, 13:30 10 years ago Quote
    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