- 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)
Thanks for reading
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.
-
-
-
Targetable Invulnerability
-
Conditions Casting Unit is a unit of type (YourUnit-Type)
-
Thanks for reading