• 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.

Corpose mana

Status
Not open for further replies.
Level 13
Joined
Oct 27, 2008
Messages
1,176
Im trying to make a skill like cannibalize with channel for a support hero

it 2 effects of this skill are going to be

1. If hero is near a corpose explode decaying unit.
2. Give hero 100 mana

I setup a array already but it wont let me set it up it only lets me pick from the 2 units on the map already.

can someone help me out please?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 008 Copy
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Trigger - Add to Untitled Trigger 008 <gen> the event (Unit - A unit comes within 128.00 of (Triggering unit))
  • Untitled Trigger 008
    • Events
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Death Knight
    • Actions
      • Set Temp_Loc_1 = (Position of (Triggering unit))
      • Set Temp_Group = (Units within 130.00 of Temp_Loc_1 matching (((Matching unit) is dead) Equal to True))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Set Temp_Loc_2 = (Position of (Picked unit))
          • Special Effect - Create a special effect at Temp_Loc_2 using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at Temp_Loc_2 using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit - Cause (Picked unit) to damage circular area after 0.00 seconds of radius 128.00 at Temp_Loc_2, dealing 100.00 damage of attack type Siege and damage type Normal
          • Unit - Remove (Picked unit) from the game
          • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 100.00)
          • Custom script: call RemoveLocation(udg_Temp_Loc_2)
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
      • Custom script: call DestroyGroup(udg_Temp_Group)
This should do it. Add conditions/unit group requirements as needed.
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
setting this character up differently than the rest in my game so the max fo this character on the map is going to be two
two should work with this trigger right?
 
Status
Not open for further replies.
Top