[Spell] Animation Casting Help

Red

New Member
Reaction score
0
How to change the animation delay time for these 2 spells Plasma Field and Eye Of The Storm?
Trigger:
  • Plasma Field
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to PFAbilityMain
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PFCustomValue Less than 100
        • Then - Actions
          • Set PFCustomValue = (PFCustomValue + 1)
        • Else - Actions
          • Set PFCustomValue = 1
      • Set PFCaster[PFCustomValue] = (Triggering unit)
      • Set PFBoolean[PFCustomValue] = False
      • Set PFRealMin = (40.00 + (40.00 x (Real((Level of PFAbilityMain for (Triggering unit))))))
      • Set PFRealMax = (70.00 + (70.00 x (Real((Level of PFAbilityMain for (Triggering unit))))))
      • Set PFRealDamageAdd[PFCustomValue] = ((PFRealMax - PFRealMin) / 56.00)
      • Set PFRealDamage[PFCustomValue] = (PFRealMin / 2.00)
      • Set PFRealDistance[PFCustomValue] = 0.00
      • Set TempPoint = (Position of (Triggering unit))
      • Set TempReal = 0.00
      • For each (Integer A) from 1 to 36, do (Actions)
        • Loop - Actions
          • Set TempReal = (TempReal + 10.00)
          • Set TempOffset = (TempPoint offset by PFRealDistance[PFCustomValue] towards TempReal degrees)
          • Unit - Create 1 PlasmaFieldDummy for (Owner of (Triggering unit)) at TempOffset facing TempReal degrees
          • Unit - Set the custom value of (Last created unit) to (Integer(TempReal))
          • Unit Group - Add (Last created unit) to PFUnitGroup[PFCustomValue]
          • Custom script: call RemoveLocation(udg_TempOffset)
      • Unit - Create 1 HiddenDummy for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
      • Unit - Set the custom value of (Last created unit) to PFCustomValue
      • Unit Group - Add (Last created unit) to PFDummyGroup
      • Custom script: call RemoveLocation(udg_TempPoint)

[Plasma Field Spell]

Trigger:
  • Plasma Field Periodic
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in PFDummyGroup and do (Actions)
        • Loop - Actions
          • Set TempInt = (Custom value of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PFBoolean[TempInt] Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PFRealDistance[TempInt] Less than or equal to 0.00
                • Then - Actions
                  • Unit Group - Remove all units from PFDamagedGroup[TempInt]
                  • Unit Group - Pick every unit in PFUnitGroup[TempInt] and do (Actions)
                    • Loop - Actions
                      • Set TempPoint = (Position of (Picked unit))
                      • Unit - Remove (Picked unit) from the game
                      • Special Effect - Create a special effect at TempPoint using AncestralGuardianMissileBlue.mdx
                      • Special Effect - Destroy (Last created special effect)
                      • Custom script: call RemoveLocation(udg_TempPoint)
                  • Unit - Remove (Picked unit) from the game
                • Else - Actions
                  • Set PFRealDamage[TempInt] = (PFRealDamage[TempInt] - PFRealDamageAdd[TempInt])
                  • Set PFRealDistance[TempInt] = (PFRealDistance[TempInt] - 25.00)
                  • Set TempPoint = (Position of PFCaster[TempInt])
                  • Unit Group - Pick every unit in PFUnitGroup[TempInt] and do (Actions)
                    • Loop - Actions
                      • Set TempReal = (Real((Custom value of (Picked unit))))
                      • Set TempOffset = (TempPoint offset by PFRealDistance[TempInt] towards TempReal degrees)
                      • Unit - Move (Picked unit) instantly to TempOffset, facing (TempReal - 180.00) degrees
                      • Set TempUnitGroup = (Units within 100.00 of TempOffset matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of PFCa
                      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
                        • Loop - Actions
                          • Unit - Cause PFCaster[TempInt] to damage (Picked unit), dealing PFRealDamage[TempInt] damage of attack type Spells and damage type Magic
                          • Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
                          • Special Effect - Destroy (Last created special effect)
                          • Unit Group - Add (Picked unit) to PFDamagedGroup[TempInt]
                      • Custom script: call DestroyGroup(udg_TempUnitGroup)
                      • Custom script: call RemoveLocation(udg_TempOffset)
                  • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PFRealDistance[TempInt] Greater than or equal to 700.00
                • Then - Actions
                  • Unit Group - Remove all units from PFDamagedGroup[TempInt]
                  • Set PFBoolean[TempInt] = True
                • Else - Actions
                  • Set PFRealDamage[TempInt] = (PFRealDamage[TempInt] + PFRealDamageAdd[TempInt])
                  • Set PFRealDistance[TempInt] = (PFRealDistance[TempInt] + 25.00)
                  • Set TempPoint = (Position of PFCaster[TempInt])
                  • Unit Group - Pick every unit in PFUnitGroup[TempInt] and do (Actions)
                    • Loop - Actions
                      • Set TempReal = (Real((Custom value of (Picked unit))))
                      • Set TempOffset = (TempPoint offset by PFRealDistance[TempInt] towards TempReal degrees)
                      • Unit - Move (Picked unit) instantly to TempOffset, facing TempReal degrees
                      • Set TempUnitGroup = (Units within 100.00 of TempOffset matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of PFCa
                      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
                        • Loop - Actions
                          • Unit - Cause PFCaster[TempInt] to damage (Picked unit), dealing PFRealDamage[TempInt] damage of attack type Spells and damage type Magic
                          • Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
                          • Special Effect - Destroy (Last created special effect)
                          • Unit Group - Add (Picked unit) to PFDamagedGroup[TempInt]
                      • Custom script: call DestroyGroup(udg_TempUnitGroup)
                      • Custom script: call RemoveLocation(udg_TempOffset)
                  • Custom script: call RemoveLocation(udg_TempPoint)

[Plasma Field Periodic]

Trigger:
  • Eye of the Storm
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to EotSAbilityMain
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • EotSCustomValue Less than 100
        • Then - Actions
          • Set EotSCustomValue = (EotSCustomValue + 1)
        • Else - Actions
          • Set EotSCustomValue = 1
      • Set EotSCaster[EotSCustomValue] = (Triggering unit)
      • Set EotSRealDamage[EotSCustomValue] = (25.00 + (12.50 x (Real((Level of EotSAbilityMain for (Triggering unit))))))
      • Set EotSRealDuration[EotSCustomValue] = 20.00
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of EotSAbilityMain for (Triggering unit)) Not equal to 3
        • Then - Actions
          • Set EotSRealInterval[EotSCustomValue] = (0.95 - (0.10 x (Real((Level of EotSAbilityMain for (Triggering unit))))))
        • Else - Actions
          • Set EotSRealInterval[EotSCustomValue] = 0.60
      • Set EotSReal[EotSCustomValue] = 0.00
      • Set TempPoint = (Position of (Triggering unit))
      • Unit - Create 1 EyeoftheStormDummy for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
      • Set EotSDummy[EotSCustomValue] = (Last created unit)
      • Unit - Add EotSAbilityVisualEffect to (Last created unit)
      • Unit - Set level of EotSAbilityVisualEffect for (Last created unit) to (Level of EotSAbilityMain for (Triggering unit))
      • Unit - Create 1 HiddenDummy for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
      • Unit - Set the custom value of (Last created unit) to EotSCustomValue
      • Unit Group - Add (Last created unit) to EotSDummyGroup
      • Custom script: call RemoveLocation(udg_TempPoint)

[Eye Of The Storm Spell]

Trigger:
  • Eye of the Storm Periodic
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in EotSDummyGroup and do (Actions)
        • Loop - Actions
          • Set TempInt = (Custom value of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • EotSRealDuration[TempInt] Less than or equal to 0.00
                  • (EotSCaster[TempInt] is dead) Equal to True
            • Then - Actions
              • Unit Group - Pick every unit in EotSArmorGroup[TempInt] and do (Actions)
                • Loop - Actions
                  • Unit - Remove EotSAbilityArmor from (Picked unit)
              • Unit Group - Remove all units from EotSArmorGroup[TempInt]
              • Unit - Kill EotSDummy[TempInt]
              • Unit - Remove (Picked unit) from the game
            • Else - Actions
              • Set TempPoint = (Position of EotSCaster[TempInt])
              • Custom script: call SetUnitX(udg_EotSDummy[udg_TempInt],GetLocationX(udg_TempPoint))
              • Custom script: call SetUnitY(udg_EotSDummy[udg_TempInt],GetLocationY(udg_TempPoint))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • EotSReal[TempInt] Less than or equal to 0.00
                • Then - Actions
                  • Set TempUnitGroup = (Units within 525.00 of TempPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Mechanical) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((
                  • Set TempReal = 100.00
                  • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
                    • Loop - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (((Life of (Picked unit)) / (Max life of (Picked unit))) x 100.00) Less than or equal to TempReal
                        • Then - Actions
                          • Set TempReal = (((Life of (Picked unit)) / (Max life of (Picked unit))) x 100.00)
                          • Set TempUnit = (Picked unit)
                        • Else - Actions
                  • Unit - Order EotSDummy[TempInt] to Neutral Naga Sea Witch - Forked Lightning TempUnit
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (TempUnit is in EotSArmorGroup[TempInt]) Equal to True
                    • Then - Actions
                      • Unit - Increase level of EotSAbilityArmor for TempUnit
                    • Else - Actions
                      • Unit - Add EotSAbilityArmor to TempUnit
                      • Unit Group - Add TempUnit to EotSArmorGroup[TempInt]
                  • Unit - Cause EotSCaster[TempInt] to damage TempUnit, dealing EotSRealDamage[TempInt] damage of attack type Hero and damage type Normal
                  • Custom script: call DestroyGroup(udg_TempUnitGroup)
                  • Set EotSReal[TempInt] = EotSRealInterval[TempInt]
                • Else - Actions
                  • Set EotSReal[TempInt] = (EotSReal[TempInt] - 0.05)
              • Set EotSRealDuration[TempInt] = (EotSRealDuration[TempInt] - 0.05)
              • Custom script: call RemoveLocation(udg_TempPoint)

[Eye Of The Storm Periodic]

I've attached the map if someone could test it out and get what i mean.
I don't wants the animation delay time of both spells to be that long. I wants to change the animation delay time. What're the things i need to add in?
 

Attachments

  • Razor's Spells.w3x
    56.6 KB · Views: 175

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
No need for your triggers. Just this

testt.png


Set it to a lower value to make it's casting time faster
 

Red

New Member
Reaction score
0
By the way, i don't wants to cancel out the channeling animation for razor. I wants him to have the channeling animation while the Plasma field just shoots out.
 

Red

New Member
Reaction score
0
Someone please help me out! I'm going to school now. Once i get home i'll take a look over here.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • 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 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