Grags_1977
Ultra Cool Member
- Reaction score
- 32
I'm terrible at maths, and explaining things. But I will try my best...
I have 2 problems.
Problem 1
I'm trying to get the point that's between Point1 and Point2.
For instance...
set point1 = position of unit
set point2 = position of target unit
Create a special effect at point1 using BlinkCaster.mdl
Create a special effect in between point1 and point2 using BlinkCaster.mdl
Create a special effect at point2 using BlinkTarget.mdl
Problem 2
set point2 = Just In front of the target unit. So whichever ever way the target unit is facing point 2 is there. So when the casting unit is moved to point 2 the units are not stood on top of each other.
The ability in detail
The ability is called Rush. It's a bit like how Charge worked in WoW Pre-Tbc and is my answer to a hookshot in the Zelda games.
The ability warps the hero to any destructible, Item, Unit (even allied, invulnerable) in a 1600 radius. It's superb!
These are my triggers (If it helps)
I have 2 problems.
Problem 1
I'm trying to get the point that's between Point1 and Point2.
For instance...
set point1 = position of unit
set point2 = position of target unit
Create a special effect at point1 using BlinkCaster.mdl
Create a special effect in between point1 and point2 using BlinkCaster.mdl
Create a special effect at point2 using BlinkTarget.mdl
Problem 2
set point2 = Just In front of the target unit. So whichever ever way the target unit is facing point 2 is there. So when the casting unit is moved to point 2 the units are not stood on top of each other.
The ability in detail
The ability is called Rush. It's a bit like how Charge worked in WoW Pre-Tbc and is my answer to a hookshot in the Zelda games.
The ability warps the hero to any destructible, Item, Unit (even allied, invulnerable) in a 1600 radius. It's superb!
These are my triggers (If it helps)
Trigger:
- Rush
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Rush
- Actions
- Wait 0.01 seconds
- Set TempPoint[16] = (Position of Unit_Hero)
- Special Effect - Create a special effect at TempPoint[16] using Abilities\Spells\Other\Drain\ManaDrainTarget.mdl
- Custom script: call RemoveLocation( udg_TempPoint[16] )
- Set SpecialEffect_SFX = (Last created special effect)
- Animation - Change Unit_Hero's animation speed to 50.00% of its original speed
- Custom script: call SetUnitAnimationByIndex(udg_Unit_Hero, 117)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Target destructible of ability being cast) Not equal to No destructible
- Then - Actions
- Trigger - Run Rush Destructible <gen> (ignoring conditions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Target item of ability being cast) Not equal to No item
- Then - Actions
- Trigger - Run Rush Item <gen> (ignoring conditions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Target unit of ability being cast) Not equal to No unit
- Then - Actions
- Trigger - Run Rush Unit <gen> (ignoring conditions)
- Else - Actions
- If - Conditions
- Wait 0.41 seconds
- Animation - Change Unit_Hero's animation speed to 100.00% of its original speed
- Set TempPoint[16] = (Position of Unit_Hero)
- Special Effect - Create a special effect at TempPoint[16] using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 0.40 seconds
- Animation - Reset Unit_Hero's animation
- Events
Trigger:
- Rush Unit
- Events
- Conditions
- Actions
- Set Unit_TempOther = (Target unit of ability being cast)
- Wait 0.40 seconds
- Special Effect - Destroy SpecialEffect_SFX
- Set TempPoint[15] = (Position of Unit_TempOther)
- Set TempPoint[16] = (Position of Unit_Hero)
- Special Effect - Create a special effect at TempPoint[16] using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation( udg_TempPoint[16] )
- Unit - Move Unit_Hero instantly to TempPoint[15]
- Set TempPoint[16] = (Position of Unit_Hero)
- Special Effect - Create a special effect at TempPoint[16] using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation( udg_TempPoint[16] )
- Custom script: call RemoveLocation( udg_TempPoint[15] )
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit_TempOther belongs to an enemy of Player 1 (Red)) Equal to True
- Then - Actions
- Unit - Cause Unit_Hero to damage Unit_TempOther, dealing ((Real((Agility of Unit_Hero (Include bonuses)))) x 3.00) damage of attack type Spells and damage type Normal
- Else - Actions
- Unit - Remove Stunned (Pause) buff from Unit_TempOther
- If - Conditions