Here is my ability:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Dwarven Assault Copter
Actions
Set dwarvenAssaultCopterAddedUpAgi = 0
Set dwarvenAssaultCopterCaster = (Triggering unit)
Set dwarvenCopterPoint = (Target point of ability being cast)
Unit - Create 1 Dwarven Assault Copter for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
Set dwarvenAssaultCopter = (Last created unit)
Unit - Set dwarvenAssaultCopter movement speed to (400.00 + (15.00 x (Real((Level of Dwarven Assault Copter for dwarvenAssaultCopterCaster)))))
Unit - Order dwarvenAssaultCopter to Right-Click dwarvenCopterPoint
Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit)) matching ((((Matching unit) is alive) Equal to True) and ((((Owner of (Triggering unit)) is an enemy of (Owner of (Matching unit))) Equal to False) and (((Owner of (Matching unit)) is in (All players con and do (Actions)
Loop - Actions
Unit - Pause (Picked unit)
Unit - Set the custom value of (Picked unit) to (Player number of (Owner of (Picked unit)))
Unit - Change ownership of (Picked unit) to Neutral Hostile and Retain color
Unit - Move (Picked unit) instantly to (Point(9188.00, -13578.00))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Unit-type of (Picked unit)) is A Hero) Equal to True
Then - Actions
Set dwarvenAssaultCopterAddedUpAgi = (dwarvenAssaultCopterAddedUpAgi + (Agility of (Picked unit) (Include bonuses)))
Else - Actions
Wait until ((Distance between (Position of dwarvenAssaultCopter) and dwarvenCopterPoint) Less than or equal to 60.00), checking every 0.30 seconds
Special Effect - Create a special effect at dwarvenCopterPoint using Objects\Spawnmodels\Human\FragmentationShards\FragBoomSpawn.mdl
Unit Group - Pick every unit in (Units within 400.00 of (Point(9188.00, -13578.00))) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to dwarvenCopterPoint
Unit - Change ownership of (Picked unit) to (Player((Custom value of (Picked unit)))) and Retain color
Unit - Unpause (Picked unit)
Unit Group - Pick every unit in (Units within (200.00 + (10.00 x (Real((Level of Dwarven Assault Copter for dwarvenAssaultCopterCaster))))) of dwarvenCopterPoint matching (((Owner of dwarvenAssaultCopterCaster) is an enemy of (Owner of (Matching unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Cause dwarvenAssaultCopterCaster to damage (Picked unit), dealing ((4.00 + (2.00 x (Real((Level of Dwarven Assault Copter for dwarvenAssaultCopter))))) x (Real(dwarvenAssaultCopterAddedUpAgi))) damage of attack type Spells and damage type Normal
Unit - Order dwarvenAssaultCopter to Move To ((Position of dwarvenAssaultCopter) offset by 4000.00 towards (Facing of dwarvenAssaultCopter) degrees)
Trigger - Turn on Dwarven Assault Copter End <gen>
My ability does this:
The Dwarven Sniper calls for his fellow dwarves to send in a Dwarven Assault Copter to give him and his allies an airlift. The copter picks up the Dwarven Sniper and all allied units near him, carries them to the target point, and then drops them with such impact and precision that the dropped units create shockwaves when they land, dealing |cffffa000Level of Dwarven Assault Copter * 2 + 4|r times the combined agility of all of the air-dropped heros and pets to all enemy units near the landed area. The speed of the copter, the range of the ability, and the area of effect of the landing shockwave increase with each level.
Base Ability:
Shockwave
I am not sure why this ability fatal errors but if someone knows please let me know too.
Thx, aoen
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Dwarven Assault Copter
Actions
Set dwarvenAssaultCopterAddedUpAgi = 0
Set dwarvenAssaultCopterCaster = (Triggering unit)
Set dwarvenCopterPoint = (Target point of ability being cast)
Unit - Create 1 Dwarven Assault Copter for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
Set dwarvenAssaultCopter = (Last created unit)
Unit - Set dwarvenAssaultCopter movement speed to (400.00 + (15.00 x (Real((Level of Dwarven Assault Copter for dwarvenAssaultCopterCaster)))))
Unit - Order dwarvenAssaultCopter to Right-Click dwarvenCopterPoint
Unit Group - Pick every unit in (Units within 250.00 of (Position of (Triggering unit)) matching ((((Matching unit) is alive) Equal to True) and ((((Owner of (Triggering unit)) is an enemy of (Owner of (Matching unit))) Equal to False) and (((Owner of (Matching unit)) is in (All players con and do (Actions)
Loop - Actions
Unit - Pause (Picked unit)
Unit - Set the custom value of (Picked unit) to (Player number of (Owner of (Picked unit)))
Unit - Change ownership of (Picked unit) to Neutral Hostile and Retain color
Unit - Move (Picked unit) instantly to (Point(9188.00, -13578.00))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Unit-type of (Picked unit)) is A Hero) Equal to True
Then - Actions
Set dwarvenAssaultCopterAddedUpAgi = (dwarvenAssaultCopterAddedUpAgi + (Agility of (Picked unit) (Include bonuses)))
Else - Actions
Wait until ((Distance between (Position of dwarvenAssaultCopter) and dwarvenCopterPoint) Less than or equal to 60.00), checking every 0.30 seconds
Special Effect - Create a special effect at dwarvenCopterPoint using Objects\Spawnmodels\Human\FragmentationShards\FragBoomSpawn.mdl
Unit Group - Pick every unit in (Units within 400.00 of (Point(9188.00, -13578.00))) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to dwarvenCopterPoint
Unit - Change ownership of (Picked unit) to (Player((Custom value of (Picked unit)))) and Retain color
Unit - Unpause (Picked unit)
Unit Group - Pick every unit in (Units within (200.00 + (10.00 x (Real((Level of Dwarven Assault Copter for dwarvenAssaultCopterCaster))))) of dwarvenCopterPoint matching (((Owner of dwarvenAssaultCopterCaster) is an enemy of (Owner of (Matching unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Cause dwarvenAssaultCopterCaster to damage (Picked unit), dealing ((4.00 + (2.00 x (Real((Level of Dwarven Assault Copter for dwarvenAssaultCopter))))) x (Real(dwarvenAssaultCopterAddedUpAgi))) damage of attack type Spells and damage type Normal
Unit - Order dwarvenAssaultCopter to Move To ((Position of dwarvenAssaultCopter) offset by 4000.00 towards (Facing of dwarvenAssaultCopter) degrees)
Trigger - Turn on Dwarven Assault Copter End <gen>
My ability does this:
The Dwarven Sniper calls for his fellow dwarves to send in a Dwarven Assault Copter to give him and his allies an airlift. The copter picks up the Dwarven Sniper and all allied units near him, carries them to the target point, and then drops them with such impact and precision that the dropped units create shockwaves when they land, dealing |cffffa000Level of Dwarven Assault Copter * 2 + 4|r times the combined agility of all of the air-dropped heros and pets to all enemy units near the landed area. The speed of the copter, the range of the ability, and the area of effect of the landing shockwave increase with each level.
Base Ability:
Shockwave
I am not sure why this ability fatal errors but if someone knows please let me know too.
Thx, aoen