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

Simple dummy stun?

Status
Not open for further replies.
Level 6
Joined
Feb 25, 2005
Messages
230
I was reading about simple dummy units (using triggers, not jass) and came up with an idea. I've never used dummys before, and a usefull thing would be to stun a unit with a dummy.

So, the idea is like this; to use a trigger (event: unit casts a spell), to create dummy who attacks (once) targeted unit with spell. The dummy has a 100% bash for 2 seconds.

Would this work?, if please give tips of how to create and use the dummy.
Does this not work?, then are there other simple ways of stunning with dummys?

PS. anyone interested in making an "Eragon"/"Eldest" map?? pm me!
 
Level 6
Joined
Feb 18, 2005
Messages
263
1st
if you want to use a dummy, you should know that it (most often) courses some increase of the 'lagability' of your map. Therefore you should only use them, if the other ways would slow your map even more, or if they are way more complicated.

2nd
Dummy units need to be invisible to the player/s
It also needs to act without taking any time t all.
Therefore you should do the following stuff whenever using a dummy:
  • dummy - colision range = 0
  • dummy - movementtype = flying
  • dummy - abilities - permanent invisibility (modified to take 0.01 seconds to recloak)
  • dummy - abilities - invincibility
  • dummy - abilities - locust (the one that the swarm units have and that courses them to be unselectable)
  • dummy - abilities - <some passiv to be able to see invisible units>
  • dummy - model - use a custom model that does not exist - that way it has none and can not create any model-bound sounds
  • dummy - does not decay and can't be resurected
  • dummy - sightrange = max
  • dummy - scaling = min
  • trigger - add an expiration timer with about 0.1 or maybe 0.2 to the dummy - that gets rid of it without having to care about it anymore
  • trigger - add all the abilities the dummy shall have when it needs to have them - reduces lag (e.g. if a dummy with about 50 abilities would be placed - that takes longer than one with no abilities and adding one ability via trigger to it)
  • trigger - give only one order to the dummy (it is not meant to exist long enough to do more than one order, even though you may do here as you see fit)

3ed
If you finnaly want to use a dummy, you shall do it like this:

<some trigger code here>

unit - create a dummy for <whatever you like - if it might kill then you shall use the player the kill shall be counted to> using <default facing angel>
unit - add expiration timer (0.2) seconds to (last created unit)
unit - add ability <add whatever abilities you want it to have>
unit - order <to use that ability - i would recommend using spells instead of passives>

<some more trigger code here>


i hope you understood how dummies are used.
If you still have questions - feel fre to ask em.

PS:
you might want to use a modified 'Firebolt (neutral enemy)' instead of a 100% bash
attacking another unit triggers a whole bunch of events, while casting on it only triggers a few ones.
Therefore casting is (most often) faster than attacking.
 
Level 7
Joined
Mar 12, 2006
Messages
407
Lord Raszul said:
  • dummy - colision range = 0
  • dummy - movementtype = flying
  • dummy - abilities - permanent invisibility (modified to take 0.01 seconds to recloak)
  • dummy - abilities - invincibility
  • dummy - abilities - locust (the one that the swarm units have and that courses them to be unselectable)
  • dummy - abilities - <some passiv to be able to see invisible units>
  • dummy - model - use a custom model that does not exist - that way it has none and can not create any model-bound sounds
  • dummy - does not decay and can't be resurected
  • dummy - sightrange = max
  • dummy - scaling = min
  • trigger - add an expiration timer with about 0.1 or maybe 0.2 to the dummy - that gets rid of it without having to care about it anymore
  • trigger - add all the abilities the dummy shall have when it needs to have them - reduces lag (e.g. if a dummy with about 50 abilities would be placed - that takes longer than one with no abilities and adding one ability via trigger to it)
  • trigger - give only one order to the dummy (it is not meant to exist long enough to do more than one order, even though you may do here as you see fit)
Hmmm... well ... see invisible units is not right.
It shall see no units the caster can't see. In most cases.
And locust sets units invulnerable afaik
And units without collosion doesnt need to be flying
Just to simplify it a bit.


Your explanation was quite good. Maybe you should post a dummy tutorial ;)
 
Level 6
Joined
Feb 25, 2005
Messages
230
Thanks alot!
That did really help, gonna test it any minute now.
But 1 little thing, see, i have had some problems ordering units to cast spells. Correct me if im wrong, but isnt it so you can only order units to cast the original spells (say, storm bolt, sleep)?

Cause you said:
"PS:
you might want to use a modified 'Firebolt (neutral enemy)' instead of a 100% bash"

So, can i simply create a custom spell and use it, or do i have to modify the original spell in objekt editor?? (this would cause problems if you would like to have different stun times, 1 sec/2sec etc)

Thanks anyway! :)
 
Level 4
Joined
Feb 12, 2006
Messages
99
Per say...if you were to use firebolt it would be Order unit to Neutral - Firebolt. For Carrion Swarm, Undead Dreadlord - Carrion Swarm, etc.
 
Level 6
Joined
Feb 25, 2005
Messages
230
Edit*

Now i have worked it out! Thanks guys, now i have to try out using the dummies, so ill probably ask 4 some help sooner or later.

Anyway, hope we can get the eragon map going!
 
Status
Not open for further replies.
Top