Help with 'Fling' ability needed! :)

Murre

New Member
Reaction score
14
Hey!
It's me again, needing help with a spell... again. :cool:
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])



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])



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])



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])




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



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


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 :p

+rep for anything that helps in any way
Thanks in advance,
Murre
 

Attachments

  • Polarity Shift.w3x
    33.9 KB · Views: 103

werasd

New Member
Reaction score
14
The trigger "Fling Periodic" should be turned off after a certain amount of time shouldn't it? Maybe that's the thing that is making the unit don't stop the movement.
 

Murre

New Member
Reaction score
14
wrong! It's turned off @ Fling Tland, please read all and whole of the triggers before posting <_<
 

werasd

New Member
Reaction score
14
It's difficult to read when there are 6 triggers to read. Couldn't find out anything that is making it don't work.

The only thing i can suggest you is to destroy the timer (they leak)
 

avalya

New Member
Reaction score
37
Remove the 0.00 seconds wait (it is actually a 0.27 seconds wait), use a counting variable instead of a countdown timer -- Set Fling_Timer = 1.97

In the periodic trigger, that fires every 0.01 seconds (set that to 0.03 or 0.04), add Set Fling_Timer = Fling_Timer - 0.03 (or 0.04).

Instead of Fling_Timer[1], use the action 'Fling_Timer becomes less than or equal to 0' it's under 'Game'.

Fling_Timer is a real.
 

Murre

New Member
Reaction score
14
Remove the 0.00 seconds wait (it is actually a 0.27 seconds wait), use a counting variable instead of a countdown timer -- Set Fling_Timer = 1.97

In the periodic trigger, that fires every 0.01 seconds (set that to 0.03 or 0.04), add Set Fling_Timer = Fling_Timer - 0.03 (or 0.04).

Instead of Fling_Timer[1], use the action 'Fling_Timer becomes less than or equal to 0' it's under 'Game'.

Fling_Timer is a real.
Thanks, I'll try it whenever I get the time ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top