• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Raise Dead data - unit type three

Status
Not open for further replies.
Level 2
Joined
Jul 27, 2013
Messages
4
Hi everyone

I just wanna know how to put "data - unit type three" in raise dead ability
to summon skeletal warrior, skeletal mage and a skeletal archer

if it is possible

thanks
 
Level 13
Joined
Jan 30, 2012
Messages
1,298
here
  • Raise Dead
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Raise Dead
    • Actions
      • Set Point = (Position of (Triggering unit))
      • Unit - Create 1 Skeleton Warrior for (Owner of (Triggering unit)) at Point facing Default building facing degrees
      • Unit - Add a 15.00 second Raise Dead expiration timer to (Last created unit)
      • Unit - Create 1 Skeletal Mage for (Owner of (Triggering unit)) at Point facing Default building facing degrees
      • Unit - Add a 15.00 second Raise Dead expiration timer to (Last created unit)
      • Unit - Create 1 Skeleton Archer for (Owner of (Triggering unit)) at Point facing Default building facing degrees
      • Unit - Add a 15.00 second Raise Dead expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_Point)
edit:
leave the Raise Dead ability blank
 
Level 13
Joined
Jan 30, 2012
Messages
1,298
i know, i know.. geez
i show him the created unit not the one raised from corpses..


Edit: here Wrathion the grouch :p
  • Raise Dead
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Raise Dead
    • Actions
      • Set Point = (Position of (Triggering unit))
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 500.00 of Point matching (((Matching unit) is dead) Equal to True)) and do (Actions)
        • Loop - Actions
          • Set Point2 = (Position of (Picked unit))
          • Unit - Create 1 Skeleton Warrior for (Owner of (Triggering unit)) at Point2 facing Default building facing degrees
          • Unit - Add a 15.00 second Raise Dead expiration timer to (Last created unit)
          • Unit - Create 1 Skeletal Mage for (Owner of (Triggering unit)) at Point2 facing Default building facing degrees
          • Unit - Add a 15.00 second Raise Dead expiration timer to (Last created unit)
          • Unit - Create 1 Skeleton Archer for (Owner of (Triggering unit)) at Point2 facing Default building facing degrees
          • Unit - Add a 15.00 second Raise Dead expiration timer to (Last created unit)
          • Custom script: call RemoveLocation(udg_Point2)
        • Custom script: call RemoveLocation(udg_Point)
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
I just wanna know how to put "data - unit type three" in raise dead ability
to summon skeletal warrior, skeletal mage and a skeletal archer
Although nothing stops you from defining such a field, it is highly improbable the ability will know it exists let alone how to interpret it.

The easiest solution is to detect when one of the other unit types is summoned using the ability. This should run the unit is summoned event and will certainly run the "unit enters region" event. All you need to do is create a new unit of the third type near this unit while giving it timed life and you have it raising 3 units.
 
Although nothing stops you from defining such a field, it is highly improbable the ability will know it exists let alone how to interpret it.

The easiest solution is to detect when one of the other unit types is summoned using the ability. This should run the unit is summoned event and will certainly run the "unit enters region" event. All you need to do is create a new unit of the third type near this unit while giving it timed life and you have it raising 3 units.
Awesome!
 
Status
Not open for further replies.
Top