- Joined
- Feb 28, 2013
- Messages
- 1,898
Hello, I made this thing for my map and I want to consult to you guys if I made this right or if there is a much better way to do this. Basically what I am trying to achieve is to make the hero cast the spell everytime it double clicks the same spot. It works 90% of the time but sometimes - rarely - it doesn't.
-
Global Left Clicked Attack A
-
Events
-
Player - Player 1 (Red) issues Mouse Down event
-
-
Conditions
-
(Trigger Mouse Button) Equal to Left Mouse Button
-
-
Actions
-
Set Global_MousePoint = (Point((Mouse Position X for Triggered Mouse Event), (Mouse Position Y for Triggered Mouse Event)))
-
Wait 0.03 seconds
-
Trigger - Turn on Global Left Clicked Attack B <gen>
-
Trigger - Turn off (This trigger)
-
-
-
Global Left Clicked Attack B
-
Events
-
Player - Player 1 (Red) issues Mouse Down event
-
-
Conditions
-
(Trigger Mouse Button) Equal to Left Mouse Button
-
-
Actions
-
Set Global_MousePointB = (Point((Mouse Position X for Triggered Mouse Event), (Mouse Position Y for Triggered Mouse Event)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Global_MousePoint and Global_MousePointB) Less than or equal to 100.00
-
-
Then - Actions
-
Unit - Order Global_MainHero to Neutral Pandaren Brewmaster - Breath Of Fire Global_MousePointB
-
Special Effect - Create a special effect at (Point((Mouse Position X for Triggered Mouse Event), (Mouse Position Y for Triggered Mouse Event))) using war3mapImported\NewConfirmationRed.mdx
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Do nothing
-
-
-
Custom script: call RemoveLocation(udg_Global_MousePoint)
-
Custom script: call RemoveLocation(udg_Global_MousePointB)
-
Trigger - Turn on Global Left Clicked Attack A <gen>
-
Trigger - Turn off (This trigger)
-
-