- Joined
- Aug 17, 2008
- Messages
- 22
Problems are hes not moving towards his target he moves about 2 inches then hits the target and then they both teleport about half way accross the map.....
(by the way the spell chidori is from naruto(anime))
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Chidori
-
Actions
- Set ChidoriUnitArray[1] = (Casting unit)
- Set ChidoriUnitArray[2] = (Target unit of ability being cast)
- Set ChidoriPointArray[1] = (Position of ChidoriUnitArray[1])
- Set ChidoriPointArray[2] = (Position of ChidoriUnitArray[2])
- Set ChidoriRealArray[1] = (Distance between ChidoriPointArray[1] and ChidoriPointArray[2])
- Unit - Make ChidoriUnitArray[1] face ChidoriUnitArray[2] over 0.00 seconds
- Wait 0.10 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between ChidoriPointArray[1] and ChidoriPointArray[2]) Less than or equal to 350.00
-
Then - Actions
- Game - Display to (All players controlled by a ((Owner of ChidoriUnitArray[1]) controller) player) for 10.00 seconds the text: It would be to dang...
- Unit - Order ChidoriUnitArray[1] to Stop
- Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
- Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
- Set ChidoriUnitArray[1] = No unit
- Set ChidoriUnitArray[2] = No unit
-
Else - Actions
- Wait 0.50 seconds
- Unit - Pause ChidoriUnitArray[1]
- Unit - Turn collision for ChidoriUnitArray[1] Off
- Unit - Make ChidoriUnitArray[1] Invulnerable
- Trigger - Turn on Chidori Dash <gen>
- Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
- Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
-
If - Conditions
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set ChidoriPointArray[1] = (Position of ChidoriUnitArray[1])
- Set ChidoriPointArray[2] = (Position of ChidoriUnitArray[2])
- Special Effect - Create a special effect at ChidoriPointArray[1] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 0.01 seconds
- Animation - Play ChidoriUnitArray[1]'s spell four animation
- Wait 0.30 seconds
- Special Effect - Create a special effect attached to the lefthand of ChidoriUnitArray[1] using Abilities\Weapons\Bolt\BoltImpact.mdl
- Unit - Move ChidoriUnitArray[1] instantly to (ChidoriPointArray[1] offset by (40.00, 0.00))
- Unit - Make ChidoriUnitArray[1] face ChidoriUnitArray[2] over 0.00 seconds
- Set ChidoriRealArray[1] = (Distance between ChidoriPointArray[1] and ChidoriPointArray[2])
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
- Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ChidoriRealArray[1] Less than or equal to 100.00
-
Then - Actions
- Unit - Make ChidoriUnitArray[1] Vulnerable
- Unit - Unpause ChidoriUnitArray[1]
- Unit - Turn collision for ChidoriUnitArray[1] On
- Unit - Turn collision for ChidoriUnitArray[2] Off
- Trigger - Turn off (This trigger)
- Trigger - Turn on Chidori Knockback <gen>
- Set ChidoriRealArray[2] = 325.00
- Set ChidoriRealArray[3] = 0.00
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (ChidoriUnitArray[2] is dead) Equal to True
-
Then - Actions
- Trigger - Turn off (This trigger)
- Unit - Make ChidoriUnitArray[1] Vulnerable
- Unit - Unpause ChidoriUnitArray[1]
- Unit - Turn collision for ChidoriUnitArray[1] On
- Unit - Turn collision for ChidoriUnitArray[2] On
- Animation - Play ChidoriUnitArray[1]'s stand animation
- Set ChidoriUnitArray[1] = No unit
- Set ChidoriUnitArray[2] = No unit
- Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
- Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Special Effect - Create a special effect attached to the lefthand of ChidoriUnitArray[1] using Abilities\Weapons\Bolt\BoltImpact.mdl
- Set ChidoriPointArray[1] = (Position of ChidoriUnitArray[1])
- Set ChidoriRealArray[3] = (ChidoriRealArray[3] + 25.00)
- Special Effect - Destroy (Last created special effect)
- Wait 0.01 seconds
- Special Effect - Create a special effect attached to the chest of ChidoriUnitArray[2] using Abilities\Weapons\Bolt\BoltImpact.mdl
- Wait 0.10 seconds
- Special Effect - Destroy (Last created special effect)
- Wait 0.01 seconds
- Special Effect - Create a special effect at ChidoriPointArray[1] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move ChidoriUnitArray[2] instantly to (ChidoriPointArray[2] offset by 25.00 towards (Facing of ChidoriUnitArray[1]) degrees)
- Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ChidoriRealArray[3] Greater than or equal to ChidoriRealArray[2]
-
Then - Actions
- Unit - Unpause ChidoriUnitArray[1]
- Unit - Turn collision for ChidoriUnitArray[2] On
- Unit - Cause ChidoriUnitArray[1] to damage ChidoriUnitArray[2], dealing (100.00 x (Real((Level of Chidori for ChidoriUnitArray[1])))) damage of attack type Spells and damage type Normal
- Trigger - Turn off (This trigger)
- Trigger - Turn off Chidori Dash <gen>
- Set ChidoriUnitArray[1] = No unit
- Set ChidoriUnitArray[2] = No unit
- Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
- Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
- Else - Actions
-
If - Conditions
(by the way the spell chidori is from naruto(anime))
Last edited by a moderator: