• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Level 8
Joined
Oct 6, 2022
Messages
213
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?
 
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
 
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.
 
Back
Top