Warcraft III resources & community, 2003–2006 · archived

Cropse Target

7 posts
#1

Cropse Target

is there any way i can get and ability that can only target corpses, not an ability that effects a random corpse but one that is targetable.
i made it so the ability says when u use it " Must Target A Corpse" but when i click a corpse it comes up with the same mesage....
PLEASE HELP!!!
#2
"Dead" units could be reincarnating units or stuff that is still alive so this is impossible
#3
so there is absolutly no way i can make an ability target a corpse at all (without jass atleast, jass is too hard to do for me....)
P.S. no one even tell me to learn JASS.... i want to but in the tutoial it says i need JASS editor.... for windows.....i have mac.....
#4
Reicarnate? Mostly improbable. Mostly heroes reincarnate (though it obviously can be used on normal unit). However, here is a simple yet efficient method:

Use channel with 0.01 duration and make it target a point. And now:

Event - An Unit Begins Casting an Ability
Conditions - Ability Being Cast equal to YourAbility

set var = pick a random unit within 50 range of the point matching condition ((Matching Unit) is Dead equal to true and (Matching Unit) is a Hero equal to false and (matching Unit) is a Structure equal to false)

And then you can of course check if var is null. And if it is you stop the caster immediately and write an error message. If not you remove var unit and do your spell. Don't forget to set var to null at the end of the trigger.

~Daelin
#5
i got the part where it only does the action i want if a corpse is targeted, but i cant find out how to check if a var. is null.
#6
How bout this, make spell based on target-position spell (e.g. Carrion Swarm) then when a unit start casting an ability, do:

set var = pick a random unit within 50 range of the target point of ability being cast matching condition ((Matching Unit) is Dead equal to true and (Matching Unit) is a Hero equal to false and (matching Unit) is a Structure equal to false)
/* same with Daelin though */

if var not equal to nothing then
--------spell action--------
else
--------message-------------


Just to make it clear.
#7
thx! that works out great