HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Missle spelll

07-17-2005, 03:54 AM#1
hellzfire74
I have posted this in another thread with many other spells but i need this anwsered quicker. How do i make a spell that sends missles to hit every hero on the map????( dont tell me to chnage fna of knives animation and target heros, It DOESNT work and it looks horrible, and the missles dont hit the heros just do the fan of knives and get damage...)
07-17-2005, 06:11 PM#2
Switch33
First... You need a simple trigger like this:
Event:
Generic- A unit casts an abillity
Condition:
Abillity=(Your Abillity, should be based of a no target abillity)((Like an channeling abillity))-((Can even be fan of knives with no targets/no damage/no fan effect))
Actions:
-Pick Every Unit in the entire map region and do actions:
-If
Condition-Picked unit=hero is true.
-Then
Create one (Dummy Unit)-(Should be the model of the missile with being invulnerable, locust too.) at position of triggering unit with random offset between 100-200((So the missle is not on top of the triggering unit)).

Order Last Created Unit to attack picked unit.((Make the attack of the dummy unit an explosion and add to the targets list self. Make sure your dummy unit has less health than the explosion.))
-Else
Do Nothing.

Also make the Dummy Unit have no collision (Making it able to go through walls and whatnot to find the hero no matter what), and set its movement speed to a high number, because that would be the speed of the missle. The dummy unit's attack damage is the damage of the missle. To make the missiles have a timer to sort of hit the target until exploding..., you can have the missile start off with some health, and make the missle have a negative regeneration.
07-18-2005, 01:11 AM#3
hellzfire74
Quote:
Originally Posted by Switch33
First... You need a simple trigger like this:
Event:
Generic- A unit casts an abillity
Condition:
Abillity=(Your Abillity, should be based of a no target abillity)((Like an channeling abillity))-((Can even be fan of knives with no targets/no damage/no fan effect))
Actions:
-Pick Every Unit in the entire map region and do actions:
-If
Condition-Picked unit=hero is true.
-Then
Create one (Dummy Unit)-(Should be the model of the missile with being invulnerable, locust too.) at position of triggering unit with random offset between 100-200((So the missle is not on top of the triggering unit)).

Order Last Created Unit to attack picked unit.((Make the attack of the dummy unit an explosion and add to the targets list self. Make sure your dummy unit has less health than the explosion.))
-Else
Do Nothing.

Also make the Dummy Unit have no collision (Making it able to go through walls and whatnot to find the hero no matter what), and set its movement speed to a high number, because that would be the speed of the missle. The dummy unit's attack damage is the damage of the missle. To make the missiles have a timer to sort of hit the target until exploding..., you can have the missile start off with some health, and make the missle have a negative regeneration.


One thing. Don't you need an endfunction of making the dummy unit disappear. And second how would this atk EVERY hero on the map?. Could you test it, it seems Ok but i don't think it will work and i got a networking problem so i cant cheak it out. Thanks lot!
07-18-2005, 03:52 AM#4
Switch33
As far as testing it to see if it works, this trigger is simple enough that i know without even testing it, that it will work.

No you don't need to kill the dummy unit at all, that is done with the attack killing itself. As i said this before...

Make the attack of the dummy unit an explosion((Well the effect anyways)) and add to the targets list self. Make sure your dummy unit has less health than the explosion.

Oh, i got a better idea instead of fooling around with attack,
you can use the kaboom abillity, or wtever the abillity that the small tinker units have. Then change the order in that trigger to order lastcreated unit to (target an unit) kaboom(or abillity that the tinker's small guys have that they use to explode) the picked unit.

Then the kaboom abillity damage is the damage of the missile, and it can effect more units around then the caster and the hero... if you don't want this at all you can lower the abillity's area of effect, although this does sorta make the explosion more real.
07-18-2005, 02:58 PM#5
hellzfire74
kool thanks man il test this out tomorrow
07-18-2005, 03:19 PM#6
hellzfire74
one second here... if the missle is invulnerable how does it blow itself up at death????
07-18-2005, 03:36 PM#7
hellzfire74
also i cant seem to fined the " pick every unit on the map region and do actions"... Am i supposed to make a region that covers the whole map or what??
07-18-2005, 05:49 PM#8
Switch33
No, you don't need to create a region.

Go to Units-Pick every unit in unit group and do actions
(i think thats what its called, and then you can make it pick all units in entire map.){But im sure its in the unit actions of the trigger editor.}

Also i just thought about wow the caster is probably a hero too...

So, add to the conditions saying that,
picked unit is not equal to triggering unit
that should prevent the spell from hurting the caster.

If your still confused after this, i will do the whole thing myself, and i will repost the trigger with the changes and the trigger's actions and everythings names.

Oh ya, if you know something action that ur looking for is under the unit actions you can press ctrl+U and i think it scrolls to that section when you have an action being edited at that time.

Add targets to the kaboom spell invulnerable and that way only the missle can get blown up by that spell.
07-20-2005, 12:57 AM#9
hellzfire74
Quote:
Originally Posted by Switch33
No, you don't need to create a region.

Go to Units-Pick every unit in unit group and do actions
(i think thats what its called, and then you can make it pick all units in entire map.){But im sure its in the unit actions of the trigger editor.}

Also i just thought about wow the caster is probably a hero too...

So, add to the conditions saying that,
picked unit is not equal to triggering unit
that should prevent the spell from hurting the caster.

If your still confused after this, i will do the whole thing myself, and i will repost the trigger with the changes and the trigger's actions and everythings names.

Oh ya, if you know something action that ur looking for is under the unit actions you can press ctrl+U and i think it scrolls to that section when you have an action being edited at that time.

Add targets to the kaboom spell invulnerable and that way only the missle can get blown up by that spell.

Wow sorry I am still confused.. (cant seem to get the spell to work) I know i seem very newbie and lazy but i am accsually trying to get this. If you can make the spell and post it here ill be able to look off it and learn from it. Thanks man:):8