- Joined
- Sep 4, 2008
- Messages
- 35
Triggering Auto-cast Abilities (Difficulty = Easy)
Introduction
This tutorial is made to show GUI users a very easy way to add triggered effects to abilities that auto-cast on attack, such as Searing Arrows. I made this tutorial because I was unable to find any easy GUI tutorial on the subject myself.
Q&A
Q: What do I need to know before I follow this tutorial?
A: How to copy an existing ability and how to edit it, and how to copy an existing buff and edit it (or in other words, not so much).
Q: What will I achieve?
A: You will create an auto-cast on attack ability. You will be able to trigger the effect that occurs on impact of the missile. The part of the ability I teach you will be MUI. (Multi-Unit Instanceability).
Setup
You will need to create a custom ability based off Black Arrow. You can change the icon and descriptions as desired. Damage Bonus can be reduced to 0, or different if you want it so. Same for Mana Cost. Now make a custom buff based off of the black arrow buff (I will still refer to this buff as "Black Arrow"). You will only have to change the name, so you can find it back in the trigger editor, as the icon will never show up (The buff will be instantly removed when placed on a unit).
Triggers
Two triggers are required for the ability to work properly. The first one detects whether a victim unit is attacked by another unit with black arrow. If so, the attacked unit will be added to the second trigger (I will refer to the unit that is damaged by the black arrow as "victim unit").
- Units are also added to the second trigger even if the autocast ability wasn't on. But that is fine, as it wont kill your computer or anything.
- To make the ability compatible with the black arrow ability you have to make a custom buff, which is not that much work.
- The second event kicks in at the moment the damage is taken, in other words, when the black arrow reaches its destination.
- The "A unit is attacked" event triggers when a unit is about to attack. The "A unit Starts the effect of an ability" event triggers when the unit has casted the spell (and lost its mana).
Introduction
This tutorial is made to show GUI users a very easy way to add triggered effects to abilities that auto-cast on attack, such as Searing Arrows. I made this tutorial because I was unable to find any easy GUI tutorial on the subject myself.
Q&A
Q: What do I need to know before I follow this tutorial?
A: How to copy an existing ability and how to edit it, and how to copy an existing buff and edit it (or in other words, not so much).
Q: What will I achieve?
A: You will create an auto-cast on attack ability. You will be able to trigger the effect that occurs on impact of the missile. The part of the ability I teach you will be MUI. (Multi-Unit Instanceability).
Setup
You will need to create a custom ability based off Black Arrow. You can change the icon and descriptions as desired. Damage Bonus can be reduced to 0, or different if you want it so. Same for Mana Cost. Now make a custom buff based off of the black arrow buff (I will still refer to this buff as "Black Arrow"). You will only have to change the name, so you can find it back in the trigger editor, as the icon will never show up (The buff will be instantly removed when placed on a unit).
Triggers
Two triggers are required for the ability to work properly. The first one detects whether a victim unit is attacked by another unit with black arrow. If so, the attacked unit will be added to the second trigger (I will refer to the unit that is damaged by the black arrow as "victim unit").
-
Detect
-
Events
- Unit - A unit Is attacked
- Unit - A unit Starts the effect of an ability
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Black Arrow
-
Then - Actions
- Trigger - Add to Trigger <gen> the event (Unit - (Target unit of ability being cast) Takes damage)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Black Arrow for (Attacking unit)) Greater than 0
-
Then - Actions
- Trigger - Add to Trigger <gen> the event (Unit - (Attacked unit) Takes damage)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Trigger
- Events
-
Conditions
- ((Triggering unit) has buff Black Arrow) Equal to True
-
Actions
- Unit - Remove Black Arrow buff from (Triggering unit)
- Unit - Kill (Triggering unit)
- Units are also added to the second trigger even if the autocast ability wasn't on. But that is fine, as it wont kill your computer or anything.
- To make the ability compatible with the black arrow ability you have to make a custom buff, which is not that much work.
- The second event kicks in at the moment the damage is taken, in other words, when the black arrow reaches its destination.
- The "A unit is attacked" event triggers when a unit is about to attack. The "A unit Starts the effect of an ability" event triggers when the unit has casted the spell (and lost its mana).
Attachments
Last edited by a moderator: