[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: 176

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.

      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