Hey!
It's me again, needing help with a spell... again.
However, the biggest problem ATM, is that the target never stop the moving and the stun/slow spells are never casted.
Take a look at it, here's the triggers (LOADS :banghead: )
I'll also attach the map, so you can check for any possible mistakes in triggers/visuals/OE
Basically, what the spell is supposed to do is:
"Caster jumps toward target -> caster throws the target behind the caster, dealing damage and stunning -> stun wears off, slow will be cast"
I'm sorry for torturing you people with this massive amount of triggers at once
+rep for anything that helps in any way
Thanks in advance,
Murre
It's me again, needing help with a spell... again.
However, the biggest problem ATM, is that the target never stop the moving and the stun/slow spells are never casted.
Take a look at it, here's the triggers (LOADS :banghead: )
I'll also attach the map, so you can check for any possible mistakes in triggers/visuals/OE
Trigger:
- Fling
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Fling
- Actions
- Set Fling_Caster = (Triggering unit)
- Set Fling_Point[1] = (Position of Fling_Caster)
- Set Fling_Target = (Target unit of ability being cast)
- Set Fling_Point[2] = (Position of Fling_Target)
- Set Fling_Offset[1] = (Distance between Fling_Point[1] and Fling_Point[2])
- Set Fling_Point[6] = (Fling_Point[2] offset by 50.00 towards ((Facing of Fling_Caster) + 180.00) degrees)
- Set Fling_TempReal[1] = Fling_Offset[1]
- Countdown Timer - Start Fling_Timer[1] as a One-shot timer that will expire in 1.90 seconds
- Trigger - Turn on Fling Periodic <gen>
- Unit - Add Crow Form to Fling_Caster
- Animation - Change Fling_Caster flying height to 190.00 at 800.00
- Unit - Remove Crow Form from Fling_Caster
- Animation - Play Fling_Caster's death animation
- Unit - Turn collision for Fling_Caster Off
- Unit - Pause Fling_Target
- Wait 1.00 seconds
- Wait 0.00 seconds
- Animation - Change Fling_Caster's animation speed to 0.00% of its original speed
- Animation - Change Fling_Caster flying height to 0.00 at 900.00
- Wait 0.70 seconds
- Unit - Turn collision for Fling_Caster On
- Wait 0.25 seconds
- Animation - Play Fling_Caster's stand ready animation
- Animation - Reset Fling_Caster's animation
- Animation - Change Fling_Caster's animation speed to 100.00% of its original speed
- Custom script: call RemoveLocation (udg_Fling_Point[1])
- Custom script: call RemoveLocation (udg_Fling_Point[2])
- Events
Trigger:
- Fling Periodic
- Events
- Time - Every 0.01 seconds of game time
- Conditions
- Actions
- Set Fling_Point[4] = (Fling_Point[6] offset by (Fling_Offset[1] - (Fling_TempReal[1] / 190.00)) towards (Angle from Fling_Point[6] to Fling_Point[1]) degrees)
- Unit - Move Fling_Caster instantly to Fling_Point[4]
- Set Fling_Offset[1] = (Fling_Offset[1] - (Fling_TempReal[1] / 190.00))
- Custom script: call RemoveLocation (udg_Fling_Point[4])
- Events
Trigger:
- Fling Throw
- Events
- Time - Fling_Timer[1] expires
- Conditions
- Actions
- Trigger - Turn off Fling Periodic <gen>
- Set Fling_Point[3] = ((Position of Fling_Caster) offset by (200.00 + (50.00 x (Real((Level of Fling for BoF_Caster))))) towards ((Facing of Fling_Caster) + 180.00) degrees)
- Set Fling_Point[5] = (Position of Fling_Caster)
- Set Fling_Offset[2] = (Distance between Fling_Point[3] and Fling_Point[5])
- Set Fling_TempReal[2] = Fling_Offset[2]
- Countdown Timer - Start Fling_Timer[3] as a One-shot timer that will expire in 1.80 seconds
- Unit - Add Crow Form to Fling_Target
- Unit - Remove Crow Form from Fling_Target
- Unit - Turn collision for Fling_Target Off
- Animation - Change Fling_Target flying height to 1000.00 at 1300.00
- Trigger - Turn on Fling Periodic 2 <gen>
- Wait 0.90 seconds
- Animation - Change Fling_Target flying height to 0.00 at 1300.00
- Wait 0.65 seconds
- Unit - Turn collision for Fling_Target On
- Unit - Unpause Fling_Target
- Wait 0.25 seconds
- Custom script: call RemoveLocation (udg_Fling_Point[3])
- Wait 4.00 seconds
- Custom script: call RemoveLocation (udg_Fling_Point[5])
- Events
Trigger:
- Fling Periodic 2
- Events
- Time - Every 0.04 seconds of game time
- Conditions
- Actions
- Set Fling_Point[7] = (Fling_Point[6] offset by (Fling_Offset[2] - (Fling_TempReal[2] / 40.00)) towards (Angle from Fling_Point[3] to Fling_Point[5]) degrees)
- Unit - Move Fling_Target instantly to Fling_Point[7]
- Set Fling_Offset[2] = (Fling_Offset[2] - (Fling_TempReal[2] / 40.00))
- Custom script: call RemoveLocation (udg_Fling_Point[7])
- Events
Trigger:
- Fling TLand
- Events
- Time - Fling_Timer[3] expires
- Conditions
- Actions
- Trigger - Turn off Fling Periodic 2 <gen>
- Countdown Timer - Start Fling_Timer[2] as a One-shot timer that will expire in (1.50 + (0.50 x (Real((Level of Fling for Fling_Caster))))) seconds
- Unit - Create 1 dummyUnit for (Owner of Fling_Caster) at BoF_Point[5] facing Default building facing degrees
- Set Fling_Dummy = (Last created unit)
- Unit - Add a 5.00 second Generic expiration timer to Fling_Dummy
- Unit - Set level of Fling stun for Fling_Dummy to (Level of Fling for Fling_Caster)
- Unit - Order Fling_Dummy to Human Mountain King - Storm Bolt Fling_Target
- Events
Trigger:
- Fling Slow
- Events
- Time - Fling_Timer[2] expires
- Conditions
- Actions
- Unit - Add Fling slow to Fling_Dummy
- Unit - Set level of Fling slow for Fling_Dummy to (Level of Fling for Fling_Caster)
- Unit - Order Fling_Dummy to Human Sorceress - Slow Fling_Target
- Events
Basically, what the spell is supposed to do is:
"Caster jumps toward target -> caster throws the target behind the caster, dealing damage and stunning -> stun wears off, slow will be cast"
I'm sorry for torturing you people with this massive amount of triggers at once
+rep for anything that helps in any way
Thanks in advance,
Murre