//============================================================================
// 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
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)
Nope, just the units on the blight. You may want to filter out buildings however, so farms and towers doesn't get bonus movement speed.Won't this make every unit owned by player red get the bonus movement speed when only one unit is on blight?
Nope, just the units on the blight. You may want to filter out buildings however, so farms and towers doesn't get bonus movement speed.
Map with the trigger in it: