• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Bonus movement speed on blight?

Status
Not open for further replies.
Level 23
Joined
Apr 16, 2012
Messages
4,041
JASS:
//============================================================================
// Blight API
//
native SetBlight                takes player whichPlayer, real x, real y, real radius, boolean addBlight returns nothing
native SetBlightRect            takes player whichPlayer, rect r, boolean addBlight returns nothing
native SetBlightPoint           takes player whichPlayer, real x, real y, boolean addBlight returns nothing
native SetBlightLoc             takes player whichPlayer, location whichLocation, real radius, boolean addBlight returns nothing
native CreateBlightedGoldmine   takes player id, real x, real y, real face returns unit
native IsPointBlighted          takes real x, real y returns boolean

I dont know, however, if there is any way to access these via GUI other than Custom Script
 
Level 25
Joined
May 11, 2007
Messages
4,651
  • test
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Set tempGroup1 = (Units owned by Player 1 (Red))
      • Unit Group - Pick every unit in tempGroup1 and do (Actions)
        • Loop - Actions
          • Set tempPoint1 = (Position of (Picked unit))
          • -------- Boolean comparision - Environment - Point is Blighted --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (tempPoint1 is blighted) Equal to True
            • Then - Actions
              • Unit - Set (Picked unit) movement speed to 522.00
            • Else - Actions
              • Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
          • Custom script: call RemoveLocation(udg_tempPoint1)
      • Custom script: call DestroyGroup(udg_tempGroup1)
 
Level 11
Joined
Jun 26, 2014
Messages
497
  • test
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Set tempGroup1 = (Units owned by Player 1 (Red))
      • Unit Group - Pick every unit in tempGroup1 and do (Actions)
        • Loop - Actions
          • Set tempPoint1 = (Position of (Picked unit))
          • -------- Boolean comparision - Environment - Point is Blighted --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (tempPoint1 is blighted) Equal to True
            • Then - Actions
              • Unit - Set (Picked unit) movement speed to 522.00
            • Else - Actions
              • Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
          • Custom script: call RemoveLocation(udg_tempPoint1)
      • Custom script: call DestroyGroup(udg_tempGroup1)

Won't this make every unit owned by player red get the bonus movement speed when only one unit is on blight?
 
Status
Not open for further replies.
Top