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

Targetable Invulnerability

Level 7
Joined
Dec 3, 2008
Messages
189
Welcome to my Targetable Invulnerability-tutorial. In this tutorial you will learn, to for example cast a special spell and then the targeted unit will be invulnerable...

1. Things we need!

You will need the following things to make the trigger:

1. A spell (must be targetable). In this tutorial I will use "Holy Light"
3. A non-array unit-variable (In this tutorial named SpellUnit)
2. Some trigger-experience.

Difficulty: Easy (2/10)
That's all we need. Now, let's have a look on the trigger...

2. The Trigger

If you already have good trigger experience, this would be VERY easy for you.
It contains only 1 trigger. (But you can also make more, to add things)

  • Title Targetable Invulnerability
  • Events
    • A unit starts casting a spell
  • Conditions
    • Ability comparison: Ability being cast equal to "Holy Light"
  • Actions
    • Unit Make (Targeted unit of ability being cast) Invulnerable.
    • Set (SpellUnit) = (Targeted unit of ability being cast)
      • Wait (a custom time, for example 10.00 seconds)
      • Unit Make SpellUnit Vulnerable.
WARNING: This will ONLY works in maps where you have ONLY one unit that can cast the ability you use. Also the cooldown of the ability should be lower than the "Wait" action in your trigger. But another method is, that you make a Condition in your trigger that's called

  • Targetable Invulnerability
    • Conditions Casting Unit is a unit of type (YourUnit-Type)
When you do it on this way, each unit-type has it's own trigger. But still only one unit from one unit-type can cast this ability. But I hope this tutorial helped you...

Thanks for reading :)
 
Top