• 🏆 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!

Stunning a unit with Mass Teleport

Status
Not open for further replies.
Level 24
Joined
Aug 1, 2013
Messages
4,657
Did noone ever try it or is there something that is not working properly if used like that?

Explanation:
When you want to stun a unit, you create a dummy unit and that unit will start casting a custom spell based on Mass Teleport without effects, non-hero ability, all units targetable and 1000000000000 as duration.
Set expiration timer to the duration.
Mass Teleport is basically a pause to the targeted unit.
I do know that units cannot be targeted by Mass Teleport if they already are a target of Mass Teleport or are casting Mass Teleport themselves.
The second one will be easy because you interrupt everything anyway, you can just order the target to stop.
The first one will just check who has longer duration and that one will be used.

If you use a buff system like my Effect Over Time System, you can create a buff that will be shown as well and remove the dummy when the buff is destroyed.

Pros:
+ Customizable duration.
+ Magic Immunity can be checked in triggers.
+ No problems with preloading cause of 1 level ability.
+ Customizable buff.
Cons:
- Having dummy units on the map.
- Dunno for sure but art on dummy might not be able to be removed so you probably need a place on the map where they can be without destroying your gameplay with random special effects.
 
Last edited:
Level 12
Joined
Feb 22, 2010
Messages
1,115
Any advantages over a classicacal stun system?(1 dummy 1 ability 1 level), because this also has a downside since it uses different dummy units for each stun.
 
Status
Not open for further replies.
Top