Here's the code:
*Frost Missile: (based on Acid Bomb)
Art - Missile Arc - 0.00 (what is missile arc anyway?)
Art - Missile Art - Frost Whyrm Missile
Art - Missile Speed - 300
Art - Missile Homing Enabled - False
Stats - Hero Ability - False
Level 1, 2, 3 - Data - Armor Penalty - 0
Level 1, 2, 3 - Data - Damage Interval - 0
Level 1 - Data - Primary Damage - 280.00
Level 2 - Data - Primary Damage - 370.00
Level 3 - Data - Primary Damage - 460.00
Level 1, 2, 3 - Data - Secondary Damage - 0.00
And few other stuff.............
When it hits still targets it works, but with moving targets sometimes the missile splits in two or goes away for no reason!
Can anyone fix this? Sorry about the long code.......
Code:
Chain Frost
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Chain Frost
Actions
Set ChainFrostCaster = (Casting unit)
Set ChainFrostTarget = (Target unit of ability being cast)
Set ChainFrostPosition = (Position of ChainFrostTarget)
Unit - Create 1 Dummy for Player 1 (Red) at (Position of ChainFrostCaster) facing Default building facing degrees
Unit - Add Frost Missile* to (Last created unit)
Unit - Set level of Shadow Strike for (Last created unit) to (Level of Chain Frost for ChainFrostCaster)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb ChainFrostTarget
Wait ((Distance between (Position of (Last created unit)) and (Position of ChainFrostTarget)) / 300.00) seconds
Special Effect - Create a special effect at ChainFrostPosition using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Unit - Create 1 Dummy for Player 1 (Red) at (Position of ChainFrostTarget) facing Default building facing degrees
Unit - Add Frost Missile to (Last created unit)
Unit - Set level of Shadow Strike for (Last created unit) to (Level of Chain Frost for ChainFrostCaster)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Set ChainFrostTarget = (Random unit from (Units within 500.00 of (Position of ChainFrostTarget) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)) and ((((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)
Set ChainFrostPosition = (Position of ChainFrostTarget)
Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb ChainFrostTarget
Wait ((Distance between (Position of (Last created unit)) and (Position of ChainFrostTarget)) / 300.00) seconds
Special Effect - Create a special effect at ChainFrostPosition using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Unit - Create 1 Dummy for Player 1 (Red) at (Position of ChainFrostTarget) facing Default building facing degrees
Unit - Add Frost Missile to (Last created unit)
Unit - Set level of Shadow Strike for (Last created unit) to (Level of Chain Frost for ChainFrostCaster)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Set ChainFrostTarget = (Random unit from (Units within 500.00 of (Position of ChainFrostTarget) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)) and ((((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)
Set ChainFrostPosition = (Position of ChainFrostTarget)
Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb ChainFrostTarget
Wait ((Distance between (Position of (Last created unit)) and (Position of ChainFrostTarget)) / 300.00) seconds
Special Effect - Create a special effect at ChainFrostPosition using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Unit - Create 1 Dummy for Player 1 (Red) at (Position of ChainFrostTarget) facing Default building facing degrees
Unit - Add Frost Missile to (Last created unit)
Unit - Set level of Shadow Strike for (Last created unit) to (Level of Chain Frost for ChainFrostCaster)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Set ChainFrostTarget = (Random unit from (Units within 500.00 of (Position of ChainFrostTarget) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)) and ((((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)
Set ChainFrostPosition = (Position of ChainFrostTarget)
Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb ChainFrostTarget
Wait ((Distance between (Position of (Last created unit)) and (Position of ChainFrostTarget)) / 300.00) seconds
Special Effect - Create a special effect at ChainFrostPosition using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Unit - Create 1 Dummy for Player 1 (Red) at (Position of ChainFrostTarget) facing Default building facing degrees
Unit - Add Frost Missile to (Last created unit)
Unit - Set level of Shadow Strike for (Last created unit) to (Level of Chain Frost for ChainFrostCaster)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Set ChainFrostTarget = (Random unit from (Units within 500.00 of (Position of ChainFrostTarget) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)) and ((((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)
Set ChainFrostPosition = (Position of ChainFrostTarget)
Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb ChainFrostTarget
Wait ((Distance between (Position of (Last created unit)) and (Position of ChainFrostTarget)) / 300.00) seconds
Special Effect - Create a special effect at ChainFrostPosition using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Unit - Create 1 Dummy for Player 1 (Red) at (Position of ChainFrostTarget) facing Default building facing degrees
Unit - Add Frost Missile to (Last created unit)
Unit - Set level of Shadow Strike for (Last created unit) to (Level of Chain Frost for ChainFrostCaster)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Set ChainFrostTarget = (Random unit from (Units within 500.00 of (Position of ChainFrostTarget) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is alive) Equal to True)) and ((((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)
Set ChainFrostPosition = (Position of ChainFrostTarget)
Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb ChainFrostTarget
Wait ((Distance between (Position of (Last created unit)) and (Position of ChainFrostTarget)) / 300.00) seconds
Special Effect - Create a special effect at ChainFrostPosition using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
*Frost Missile: (based on Acid Bomb)
Art - Missile Arc - 0.00 (what is missile arc anyway?)
Art - Missile Art - Frost Whyrm Missile
Art - Missile Speed - 300
Art - Missile Homing Enabled - False
Stats - Hero Ability - False
Level 1, 2, 3 - Data - Armor Penalty - 0
Level 1, 2, 3 - Data - Damage Interval - 0
Level 1 - Data - Primary Damage - 280.00
Level 2 - Data - Primary Damage - 370.00
Level 3 - Data - Primary Damage - 460.00
Level 1, 2, 3 - Data - Secondary Damage - 0.00
And few other stuff.............
When it hits still targets it works, but with moving targets sometimes the missile splits in two or goes away for no reason!
Can anyone fix this? Sorry about the long code.......