I am using variables for all units (caster and target), I don't know what you mean with this.
They are in the "
Dive Attack start" trigger. It's explained in the map as well, and there is a comment showing which variables can be edited. Duration, speed, and cooldown have to be there because they are indexed. I could move damage, heal and speed multiplier to map init, but then the changable variables would be in 2 different locations, which I didn't want.
-
Dive Attack start
-
![](/styles/default/ratory/trigger_legacy/joinminus.gif)
Events
-
![](/styles/default/ratory/trigger_legacy/line.gif)
![](/styles/default/ratory/trigger_legacy/joinbottom.gif)
Unit - A unit Is attacked
-
![](/styles/default/ratory/trigger_legacy/joinminus.gif)
Conditions
-
![](/styles/default/ratory/trigger_legacy/line.gif)
![](/styles/default/ratory/trigger_legacy/joinbottomminus.gif)
And - All (Conditions) are true
-
![](/styles/default/ratory/trigger_legacy/line.gif)
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/joinbottomminus.gif)
Conditions
-
![](/styles/default/ratory/trigger_legacy/line.gif)
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
(Level of Dive Attack for (Attacking unit)) Greater than 0
-
![](/styles/default/ratory/trigger_legacy/line.gif)
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/joinbottom.gif)
((Attacking unit) is Snared) Equal to False
-
![](/styles/default/ratory/trigger_legacy/joinbottomminus.gif)
Actions
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
-------- Fixed variables, do not change these. --------
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackIndex = (DiveAttackIndex + 1)
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackCaster[DiveAttackIndex] = (Attacking unit)
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackTarget[DiveAttackIndex] = (Attacked unit)
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackHeight[DiveAttackIndex] = (Default flying height of DiveAttackCaster[DiveAttackIndex])
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackCanceled[DiveAttackIndex] = False
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackState[DiveAttackIndex] = 1
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
-------- Other variabes, change values as you will. --------
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackDamage = 10.00 // damage
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackHeal = 10.00 // heal
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackMaxDur[DiveAttackIndex] = 3.00 // max chase duration before the bird gives up
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackCooldownTimer[DiveAttackIndex] = (Random real number between 0.80 and 1.20) // attack cooldown
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/join.gif)
Set DiveAttackSpeed[DiveAttackIndex] = (Current movement speed of DiveAttackCaster[DiveAttackIndex]) // dive speed (set to a fixed value if you want)
-
![](/styles/default/ratory/trigger_legacy/empty.gif)
![](/styles/default/ratory/trigger_legacy/joinbottom.gif)
Set DiveAttackSpeedMultiplier = 1.50// dive speed multiplier (if you use a fixed speed for the above value, set this to 1)