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

[Solved] Combining Abilities

Status
Not open for further replies.
Level 14
Joined
Nov 17, 2010
Messages
1,266
Basically you just need to detect when your unit casts divine shield on itself and then have a dummy caster use holy light on your unit. I'm not on the right computer to make an example for you, but I'm sure someone could whip one up for you if you need it.
 
Level 25
Joined
Feb 9, 2009
Messages
1,800
Assuming you want it to be target-able like holy light, do you still want it to be able to strike undead?
  1. Take innerfire, rename it, give it a 5 second duration, and a custom buff explaining what it does.

  2. Make a trigger on cast that gives the target invulnerable (neutral) along with a 7500 heal and a special effect attachment with the divine shield effect.
    if target is enemy undead, deal damage instead, & remove the buff.

  3. Add the unit to a unit group, create a second trigger with a periodic (.3 sec should do fine.) that picks all units checking if the unit still has the buff or is dead for some strange reason, if so remove the invulnerable (neutral) ability, remove them from the group, and finally check if the group is empty, if so turn off the trigger.
If this is too difficult I don't mind making it later today!

ETA: Made it!
 

Attachments

  • Divine Holy Light.w3x
    22.7 KB · Views: 21
Last edited:
Level 11
Joined
Jun 20, 2017
Messages
380
ty, but as Wrda said that I can use it like this, but the problem is why the heal isn't working?!
  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Divine Shield
    • Actions
      • Set Real_DivineHolyHeal = 7500.00
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (Real_DivineHolyHeal x (Real((Level of Divine Shield for (Casting unit))))))
 
Level 21
Joined
May 29, 2013
Messages
1,566
ty, but as Wrda said that I can use it like this, but the problem is why the heal isn't working?!
  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Divine Shield
    • Actions
      • Set Real_DivineHolyHeal = 7500.00
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (Real_DivineHolyHeal x (Real((Level of Divine Shield for (Casting unit))))))
You can't use 'Target unit of ability being cast' with non-targetable abilities. Divine Shield is immediately cast as soon as the button is pressed (it can't directly target a unit).
  • Holy Shield
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Divine Shield
    • Actions
      • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (7500.00 x (Real((Level of Divine Shield for (Triggering unit))))))
 
Last edited:
Status
Not open for further replies.
Top