How to detect a click on item?

Handless

New Member
Reaction score
2
Hello,

How can I detect when an usable item is targeted to the item itself, like when you double-click some inventory button in numpad?

I tried to detect the order ID, but it was exactly same as when you target the item's spell to ground.

Thanks in advance.
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
Maybe try to use boolean comparisons to exclude the other options if the order ID works (like checking if the target is not a hero, or ground unit etc.)
 

Handless

New Member
Reaction score
2
Well that's the problem - I don't know the order. When I created a trigger to show a message of every order ID, the double-click-ID was exactly the same as when I manually click the item and then target it to ground.
 

Jedi

New Member
Reaction score
63
(Target item of ability being cast) equal to (Manipulated Item)
I am not sure about you can click to a item inside inventory, though.Also you need to use "unit uses item" event to use item being manipulated response.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • jonas jonas:
    Cool, I went 14+7 and 7+3 before, but the first time the 7 just meant not entering crowded places, the second time I had to stay in the quarantine hotel because I'm 外国人 and don't have a home where I could self-isolate
  • jonas jonas:
    Do you have family in taiwan?
  • The Helper The Helper:
    man at this point better for Tom to not say on the public internet just saying
  • The Helper The Helper:
    I am sure we have posted news here that has pissed china off though I have not heard anything
  • jonas jonas:
    Your website isn't blocked by GFW so much is for sure :p
  • tom_mai78101 tom_mai78101:
    Do you have family in taiwan? <-- Yes.
  • jonas jonas:
    Cool, enjoy your vacation!
  • The Helper The Helper:
    Have a great vacation Tom!
  • The Helper The Helper:
    Happy Friday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday Night!
    +1
  • The Helper The Helper:
    Going out of a town for the weekend will be back sunday night! Hope everyone has a great weekend!
    +2
  • The Helper The Helper:
    Happy Monday!
  • Ghan Ghan:
    Monday? Speak for yourself. :p
    +2
  • The Helper The Helper:
    Happy Taco Tuesday!
    +1
  • The Helper The Helper:
    Tacos! :)
  • The Helper The Helper:
    Check out the discord for taco pictures :) You cannot put pictures in this chat
    +1
  • The Helper The Helper:
    Damn here come the bots again - 193 online but they are totally invisible to any stats - bunch of bots!'
  • C cubanismo:
    Re: Taco Tuesday, if there were some way to share edible tacos over the internet, technology would be complete.
    +2
  • The Helper The Helper:
    One can only wish!
  • tom_mai78101 tom_mai78101:
    I'm back from Taiwan
    +1
  • The Helper The Helper:
    I am reorganizing the site I know nobody will notice but I am not done quite yet but the main forums order has been changed and there is a new news category in Other News which is all the remaining headline news stuff not categorized - Headline News is just the stuff that shows on the main page now and the news archive is off the main forums page
  • The Helper The Helper:
    and the real archive lives off of headline news

    The Helper Discord

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top