- Joined
- Nov 15, 2010
- Messages
- 112
Guys, i make this spell 2-3 days ago. but it is rejected. The moderator said that this spell has many leaks. can you tell me where is the leaks??The spell name is Flash Sword w/ Knockback. this is the trigger:
[trigger=Flash Sword Ability]
Flash Sword Ability
Events
Unit - A unit Is attacked
Conditions
(Level of Flash Sword for (Attacking unit)) Greater than 0
Actions
Set Caster = (Attacking unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 4) Equal to 1
Then - Actions
Set Target = (Attacked unit)
Set Angle = (Facing of Caster)
Animation - Play Caster's Attack Slam animation
Unit - Cause Caster to damage Target, dealing 900.00 damage of attack type Hero and damage type Lightning
Special Effect - Create a special effect at (Position of Target) using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Position of Target) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Turn collision for Target Off
Trigger - Turn off (This trigger)
Trigger - Turn on Flash Sword Knockback <gen>
If ((Level of Flash Sword for Caster) Greater than 0) then do (Wait 0.95 seconds) else do (Do nothing)
Trigger - Turn off Flash Sword Knockback <gen>
Unit - Turn collision for Target On
Trigger - Turn on (This trigger)
Else - Actions[/trigger]
[trigger=Flash Sword Knockback]
Flash Sword Knockback
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at ((Position of Target) offset by 10.00 towards Angle degrees) of type Walkability is off) Equal to False
Then - Actions
Set Targt_Pos = (Position of Target)
Unit - Cause Caster to damage Target, dealing 10.00 damage of attack type Spells and damage type Lightning
Unit - Move Target instantly to (Targt_Pos offset by 5.00 towards Angle degrees)
Special Effect - Create a special effect attached to the origin of Target using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
Special Effect - Destroy (Last created special effect)
Destructible - Pick every destructible within 105.00 of Targt_Pos and do (Destructible - Kill (Picked destructible))
Else - Actions
Custom script: call RemoveLocation(udg_Targt_Pos)[/trigger]
[trigger=Flash Sword Ability]
Flash Sword Ability
Events
Unit - A unit Is attacked
Conditions
(Level of Flash Sword for (Attacking unit)) Greater than 0
Actions
Set Caster = (Attacking unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 4) Equal to 1
Then - Actions
Set Target = (Attacked unit)
Set Angle = (Facing of Caster)
Animation - Play Caster's Attack Slam animation
Unit - Cause Caster to damage Target, dealing 900.00 damage of attack type Hero and damage type Lightning
Special Effect - Create a special effect at (Position of Target) using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Position of Target) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Turn collision for Target Off
Trigger - Turn off (This trigger)
Trigger - Turn on Flash Sword Knockback <gen>
If ((Level of Flash Sword for Caster) Greater than 0) then do (Wait 0.95 seconds) else do (Do nothing)
Trigger - Turn off Flash Sword Knockback <gen>
Unit - Turn collision for Target On
Trigger - Turn on (This trigger)
Else - Actions[/trigger]
[trigger=Flash Sword Knockback]
Flash Sword Knockback
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at ((Position of Target) offset by 10.00 towards Angle degrees) of type Walkability is off) Equal to False
Then - Actions
Set Targt_Pos = (Position of Target)
Unit - Cause Caster to damage Target, dealing 10.00 damage of attack type Spells and damage type Lightning
Unit - Move Target instantly to (Targt_Pos offset by 5.00 towards Angle degrees)
Special Effect - Create a special effect attached to the origin of Target using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
Special Effect - Destroy (Last created special effect)
Destructible - Pick every destructible within 105.00 of Targt_Pos and do (Destructible - Kill (Picked destructible))
Else - Actions
Custom script: call RemoveLocation(udg_Targt_Pos)[/trigger]