• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Nullify/Neutralize "movement speed increased" of picked unit

Level 8
Joined
Oct 6, 2022
Messages
191
Hello, is it possible to Nullify/Neutralize the "movement speed increased" effect of a certain picked unit?


example: the triggering unit cast a bladestorm and the picked unit's "movement speed increased" coming from its skill or items such as boots of speed would get Nullify/Neutralize when got hit by bladestorm's aoe.

if this possible, how do i trigger it?
 
Level 32
Joined
Aug 29, 2012
Messages
1,465
Canceling is easy with this action

  • Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
The painful part is to restore the value. You'd need a variable that checks every unit's movement speed (most likely with an unit indexer), and increase/decrease the value when units receive spells like bloodlust, pick up boots of speed, etc.

Seems awfully complicated tbh
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
If you can apply a configurable movement speed debuff, possibly using the new actions that allow setting ability field values, then you can use that to apply a negative speed to cancel out speed bonuses back to default. It should then be trivial to remove this penalty and return units to normal speed by removing the debuff from the affected unit.

Otherwise, as Chaosium mentioned, restoring speed modified by triggers is non-trivial and can become very complicated should other triggers be able to modify unit speed. You would likely need an entire system just for this to be consistent.
 
Top