Questions to dragging items + combined actions

  • #1, by LebosteinThursday, 19. March 2015, 14:25 9 years ago
    How I can change this behaviour to a single click?

    - With a single click I see the "use item with" in the command line and the mouse cursor is normal.
    - With a double click I see the "use item with" in the command line and the mouse cursor changes to the item icon

    Key Killer

    621 Posts


  • #2, by afrlmeThursday, 19. March 2015, 14:44 9 years ago
    Have you enabled the drag items from inventory option in the main game properties tab? It also has to be enabled for the active command (items can be dragged with...) in the interface properties tab for the selected command.

    Do you have any conflicting actions inside of the mouse actions in the mouse properties tab?

    P.S: I'm not sure why it's called dragging to be honest as it's click > then cursor changes to item. There's no actual dragging involved, as far as I can tell.

    Imperator

    7278 Posts

  • #3, by LebosteinThursday, 19. March 2015, 14:45 9 years ago
    Oh sorry, I have not checked all posibilities. There was a bad code snippet inside the "left clicking" command section. It works now. You can delete this thread completely.

    Key Killer

    621 Posts

  • #4, by afrlmeThursday, 19. March 2015, 14:52 9 years ago
    You have to delete it. There should be a little trash can icon at the bottom of your post, to the left of quote.

    Imperator

    7278 Posts

  • #5, by LebosteinThursday, 19. March 2015, 14:57 9 years ago
    Sorry I have an other problem now. Now the "dragging = pick up" works. I see the item icon instead the mouse cursor (I can move the item around) and the command line shows "use item with...". But now I can not start an action If I click with the items on scene objects... but I have defined actions for the use with command + item + scene object. They work If I turn off the dragging options, but with activated dragging options I can not trigger an action.

    Key Killer

    621 Posts

  • #6, by afrlmeThursday, 19. March 2015, 15:13 9 years ago
    There's 2 item drop methods in the action list.

    1. command + item is when you manually set the current command & item held with action parts.

    2. item dropped is when the item was dragged.

    A dragged item is not a command + item, it is just an item with item is dragged enabled in the data structure fields, hence it won't work for regular command + item actions.

    Imperator

    7278 Posts

  • #7, by LebosteinThursday, 19. March 2015, 15:17 9 years ago
    And why not? How I should handle or comment misplaced items with comment sets if they had no official command?

    Key Killer

    621 Posts

  • #8, by LebosteinThursday, 19. March 2015, 15:33 9 years ago
    OK, I begin to understand. This dragging system is a system beside/outside the normal command system. I was confused because I need a normal command to activate this system-....

    Key Killer

    621 Posts

  • #9, by afrlmeThursday, 19. March 2015, 16:34 9 years ago
    Err... About all I can tell you is that I'm not overly fond of the dragged item method.

    Here's a quick example why: Let's say I am using a single command (broken sword) type of interface & thus to change cursors it requires that I add set cursor action parts to on cursor enter / leave actions for each scene object.

    Now if I was dragging an item & hovered the cursor over a scene object it would replace the item icon with the one in the on cursor enter action part, but the item would still be set (although the player won't know this).

    To get around this issue I ended up having to write a small lua script function & create some called by other actions for setting the cursors (seeing as there is currently no data structure field for setting the active cursor). The function checks if an item is being held & if it is then it will ignore keep the current cursor / item else it will set the cursor I specified.

    Personally I think it's best to set cursors & commands & items manually. That way you can use smaller custom neater looking cursors for items instead of the images / animations that are displayed in your inventory.

    Imperator

    7278 Posts