Bonus movement speed on blight?

Status
Not open for further replies.
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
 
  • 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)
 
  • 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.
Back
Top