• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Mouse Button Click Event?

Status
Not open for further replies.

Dark_Baron_Prot

D

Dark_Baron_Prot

Thanks for taking the time to read this.

I need to write a custom trigger with the event being;

Events - Player 1 clicks left mouse button
Conditions -
Actions - Set Player 1 gold equal (Player 1 gold - 1)

the conditions and actions I can write myself, I just added them to this example so you have a better idea of what I'm trying for.

Thanks
 
There is no way to specifically detect the left mouse button click.

However, you can cover the entire map by trackables (or one biiig trackable), and detect its hit event. In that case, it will trigger for left and right mouse button alike, and there will be a few side effects like units' selection circles not appearing while being hovered.
It will still not catch a mouse click inside the UI, like if the player clicks a unit's potrait for example.

You can read about trackables in my trackable tutorial, if you want.
 
Thanks for the quick responce, I'll go read up on trackables..
 
even with the memory hack?
You can do it in the new versions:
  • Mouse
    • Events
      • Player - Player 1 (Red) issues Mouse Down event
      • Player - Player 1 (Red) issues Mouse Up event
      • Player - Player 1 (Red) issues Mouse Move event
    • Conditions
      • (Trigger Mouse Button) Equal to Left Mouse Button
      • (Trigger Mouse Button) Equal to Middle Mouse Button
      • (Trigger Mouse Button) Equal to Right Mouse Button
    • Actions
 
Status
Not open for further replies.
Back
Top