lua check item

  • #20, by afrlmeSunday, 01. November 2015, 18:10 5 years ago
    Either way... there's often a solution to any obstacle when it comes to sorting things out in VS.

    Imperator

    6846 Posts


  • #21, by sebastianSunday, 01. November 2015, 22:07 5 years ago
    like its always in "programming": solve the issues with a good fix and by that create new issues to fix...

    Thread Captain

    2337 Posts

  • #22, by afrlmeSunday, 01. November 2015, 22:28 5 years ago
    haha! well I guess that all depends on how good of a programmer / scripter you are.

    Imperator

    6846 Posts

  • #23, by sebastianSunday, 01. November 2015, 22:34 5 years ago
    i think this describes it :
    http://weknowmemes.com/wp-content/uploads/2012/09/my-code-doesnt-work-i-have-no-idea-why.jpg

    smile

    Im still editing the items and adding/changing actions to the new system grin

    Thread Captain

    2337 Posts

  • #24, by afrlmeMonday, 02. November 2015, 01:43 5 years ago
    Heh. Code is logic based. So the only lack of knowing is the lack of understanding what you are trying to do / achieve / create.

    I tend to approach things with how I think they should work. Most of the time my logic is sound, but there's always google for when my noggin' fails me.

    Imperator

    6846 Posts

  • #25, by sebastianWednesday, 04. November 2015, 01:19 5 years ago
    Yeah. I know how to do most stuff, but where i am not really good at is to know every script aspects and code structures out from my mind. So i have to look stuff up a lot. By that when i am guessing how i could solve several problems e.g. via lua im not sure every time if this is possible.
    ---
    Back to topic:
    Now i updated every "drop action" to a "executed left-click with item xy action" and it works great. The only thing which seems to be broken is that after every item usage the item gets cleared and set back to "empty". Because of this i have to drag the item every time again from the inventory...
    (Activate standard command is set to never in game settings.)

    Thread Captain

    2337 Posts

  • #26, by afrlmeWednesday, 04. November 2015, 02:17 5 years ago
    Hmm anything in the log? If you've set the activate standard command option to never in the game tab, then it should remember said item. Have you added an action to the objects or maybe to the left mouse button in mouse properties tab under game that is causing it to reset the command / item back to default state / empty?

    As for the other thing you just said... I too have to look things up or work from comments I've written in my scripts. My memory is not so great, I do however have a keen logic based way of thinking, so I often know how to go about scripting what I want, even if I end up having to look up how to script something or to refresh my memory on the VS data structure etc.

    Imperator

    6846 Posts

  • #27, by sebastianWednesday, 04. November 2015, 02:38 5 years ago
    I will have a look in my mouse settings. It worked well with the normal dragging. I dont know if setting standard command to never also prevents the item to be cleared when using execute but it clearly did with default dragging...

    Thread Captain

    2337 Posts

  • #28, by sebastianWednesday, 04. November 2015, 16:09 5 years ago
    Hmm...sadly i found nothing regarding that.
    - standard command is set to never
    - left click doesn't have anything inside what could cause an item reset

    I could guess that having an active item is not the same as having the standardcommand active. Because my standard command is always active expect when directly using the coin menu "verbs".

    Any ideas from the devs why the item gets resetted?

    Thread Captain

    2337 Posts

  • #29, by afrlmeWednesday, 04. November 2015, 16:27 5 years ago
    Well I've no idea. You could create a loop to keep the current item held until you call a function to empty said item.

    Imperator

    6846 Posts

  • #30, by sebastianWednesday, 04. November 2015, 17:10 5 years ago
    hmm... yeah possibly. But beside what i do now is what would the dev team do about it. Seems to be a bug or is intended. I don't know razz

    Thread Captain

    2337 Posts

Write post