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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top