HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What's the relationship between Paladin and the resurrected units?

08-15-2003, 04:42 AM#1
Pret
I learn that Water elementals, wolves are summoned units. But how about those revived units ?

I made an edited ver. of resurrection that revives all kinds of units ( not only friendly).

Im trying to write a trigger that change the owner of the revived units to the hero who cast the spell.

The first part is A unit finish casting an ability; the ability being cast equals to customresurrection.....but I dunno how to do the lasts part coz I can't figure out what're the revived units called......

Im a noob in writing triggers, please help :bgrun:
08-15-2003, 09:29 AM#2
Krakou
I think they are summoned units.
08-15-2003, 07:45 PM#3
Panto
They are indeed summoned. Just had this same problem myself.
08-15-2003, 10:51 PM#4
KaTTaNa
There is no relationship between them.
If you want to make it resurrect corpses regardless of owner, base the spell on water elemental or something like that, and make the whole spell through triggers. It's pretty easy that way.
But since you said you were are noob I'll give you some guidelines.
Code:
Events:
Unit - A unit begins casting an ability
Conditions:
(Ability being cast) Equal to [Custom Resurrection]
Actions:
set Ressed_Units = 0
Unit Group - Pick every unit in (Units within 500 of (Casting unit)) and do (Multiple actions)
  Loop - Actions
    If (Multiple conditions) then (Multiple actions) else (Multiple actions)
      Conditions
        (Picked unit) Is Alive Equal to False
        Ressed_Units Less than 6
      Then - Actions
        set Ressed_Units = Ressed_Units + 1
        Unit - Create 1 (Unit-Type of (Picked unit)) for (Owner of (Casting unit)) at (Position of (Picked unit)) facing (Facing of (Picked unit))
        Unit - Remove (Picked unit)
        Special Effect - Add special effect to origin of (Last Created unit) using Abilities\Human\Resurrect\ResurrectTarget.mdl
      Else - Actions

Not sure if that works, havn't tested, but it's worth a try.
08-16-2003, 04:37 AM#5
Nagna Zul
Why don't you just base it off animate dead?
08-16-2003, 04:40 AM#6
Draco
Aren't the revived units "target of spell/ability" or "targeted unit"?
08-16-2003, 04:43 AM#7
Plasma[Blade]
I just thought they were "Revived Unit"... and I was wondering the same thing about Animate Dead. Maybe you could take a look at AD and see if Ressurection has anything like that.
08-16-2003, 04:45 AM#8
Pesmerga
If u used AD then they would only last for a limited ammount of time. And you would have that summoned unit bar regardless if you take off the time.