• 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.

War Stomp Ping Nearby Units

Status
Not open for further replies.
Level 1
Joined
Jun 21, 2009
Messages
282
Alright so, i'm needing this ability once you use warstomp it'll ping nearby units that is 7000 range away.

Player Units should indicate Orange, Hostile units Blue, Bosse's (Hostile units aswell, Red), and Ally's Green.

Please and Thank you :grin:
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp
    • Actions
      • Set Temp_Unit_1 = (Triggering unit)
      • Set Temp_Loc_1 = (Position of Temp_Unit_1)
      • Set Temp_Player_1 = (Owner of Temp_Unit_1)
      • Set Temp_Group_1 = (Units within 7000.00 of Temp_Loc_1 matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
        • Loop - Actions
          • Set Temp_Loc_2 = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Distance between Temp_Loc_1 and Temp_Loc_2) Less than 7000.00
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Temp_Player_1 Equal to (Owner of (Picked unit))
                • Then - Actions
                  • -------- Units owned by the same player --------
                  • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (100.00%, 100.00%, 0.00%)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • ((Picked unit) belongs to an ally of Temp_Player_1) Equal to True
                    • Then - Actions
                      • -------- Units owned by allies of the owner of triggering unit --------
                      • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (0.00%, 100.00%, 0.00%)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) belongs to an ally of Temp_Player_1) Equal to False
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) is A Hero) Equal to True
                            • Then - Actions
                              • -------- Hero units owned by an enemy of the owner of triggering unit --------
                              • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (100.00%, 0.00%, 0.00%)
                            • Else - Actions
                              • -------- Normal units owned by an enemy of the owner of triggering unit --------
                              • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (0.00%, 0.00%, 100.00%)
                        • Else - Actions
            • Else - Actions
          • Custom script: call RemoveLocation(udg_Temp_Loc_2)
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
      • Custom script: call DestroyGroup(udg_Temp_Group_1)
You may want to pick units differently in the unit group pick, like not pick dummies, hidden units , the triggering unit etc.
 
Level 1
Joined
Jun 21, 2009
Messages
282
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to War Stomp
    • Actions
      • Set Temp_Unit_1 = (Triggering unit)
      • Set Temp_Loc_1 = (Position of Temp_Unit_1)
      • Set Temp_Player_1 = (Owner of Temp_Unit_1)
      • Set Temp_Group_1 = (Units within 7000.00 of Temp_Loc_1 matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
        • Loop - Actions
          • Set Temp_Loc_2 = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Distance between Temp_Loc_1 and Temp_Loc_2) Less than 7000.00
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Temp_Player_1 Equal to (Owner of (Picked unit))
                • Then - Actions
                  • -------- Units owned by the same player --------
                  • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (100.00%, 100.00%, 0.00%)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • ((Picked unit) belongs to an ally of Temp_Player_1) Equal to True
                    • Then - Actions
                      • -------- Units owned by allies of the owner of triggering unit --------
                      • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (0.00%, 100.00%, 0.00%)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) belongs to an ally of Temp_Player_1) Equal to False
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) is A Hero) Equal to True
                            • Then - Actions
                              • -------- Hero units owned by an enemy of the owner of triggering unit --------
                              • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (100.00%, 0.00%, 0.00%)
                            • Else - Actions
                              • -------- Normal units owned by an enemy of the owner of triggering unit --------
                              • Cinematic - Ping minimap for (Player group(Temp_Player_1)) at Temp_Loc_2 for 1.00 seconds, using a Simple ping of color (0.00%, 0.00%, 100.00%)
                        • Else - Actions
            • Else - Actions
          • Custom script: call RemoveLocation(udg_Temp_Loc_2)
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
      • Custom script: call DestroyGroup(udg_Temp_Group_1)
You may want to pick units differently in the unit group pick, like not pick dummies, hidden units , the triggering unit etc.

Thank you! :grin:

How would I make it so it doesnt detect dummy units? Sorry kinnda noob when it comes to trigger abilitys >.>
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
The trigger Loc_2 is a variable, so if you didn't name it Loc_2 it cannot remove it as it is nowhere. If your variable name is RandomPoint then write : call RemoveLocation(udg_Temp_RandomPoint)
 
Level 1
Joined
Jun 21, 2009
Messages
282
The trigger Loc_2 is a variable, so if you didn't name it Loc_2 it cannot remove it as it is nowhere. If your variable name is RandomPoint then write : call RemoveLocation(udg_Temp_RandomPoint)

I did call it Temp_Loc_2

And I put the custom script as: call RemoveLocation(udg_Temp_Loc_2)

Edit: My bad! I accidently had a "S" at the end of location! Yeah I was doing something wrong
 
Status
Not open for further replies.
Top