Ability Lagging...

Grags_1977

Ultra Cool Member
Reaction score
32
Searchers... If your ability is lagging and your triggers look fine, try changing your casting time to 1 sec or higher. If that doesn't work, then im afriaid this post isn't very usefull for you :p


Original Message
Trigger:
  • Brain Fry Cast
    • Events
      • Unit - A unit owned by Player 1 (Red) Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Brain Fry
    • Actions
      • Set Unit_BrainFry = (Target unit of ability being cast)
      • Wait 0.01 seconds
      • Custom script: call SetUnitAnimationByIndex(udg_Unit_Hero, 77)
      • Sound - Play BrainFry <gen>
      • Set TempPoint[48] = (Position of Unit_Hero)
      • Set TempPoint[49] = (Position of Unit_BrainFry)
      • Lightning - Create a Magic Leash lightning effect from source TempPoint[48] to target TempPoint[49]
      • Set Lightning_BrainFry = (Last created lightning effect)
      • Custom script: call RemoveLocation( udg_TempPoint[48] )
      • Custom script: call RemoveLocation( udg_TempPoint[49] )
      • Special Effect - Create a special effect attached to the origin of Unit_Hero using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
      • Set SpecialEffect_BrainFry = (Last created special effect)
      • Wait 1.00 seconds
      • Special Effect - Destroy SpecialEffect_BrainFry
      • Lightning - Destroy Lightning_BrainFry
      • Trigger - Turn on Brain Fry DOT <gen>


Trigger:
  • Brain Fry DOT
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Integer_BrainFryDOT = (Integer_BrainFryDOT + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer_BrainFryDOT Equal to 15
        • Then - Actions
          • Set Integer_BrainFryDOT = 0
          • Trigger - Turn off (This trigger)
        • Else - Actions
      • Unit - Cause Unit_Hero to damage Unit_BrainFry, dealing (((Real((Intelligence of Unit_Hero (Include bonuses)))) x 10.00) / 15.00) damage of attack type Spells and damage type Normal


I've been through this Ability with a fine brush, and for the life of me i can't figure out why it's seriously lagging. I don't mean a little bit of lag btw I mean serious lag. It lags worse and worse with every tick forcing me to ALT F4.



EDIT: more Info. The ability is based of Shadow Strike.

untitled-5.jpg




EDIT2: Going to have an early 1, so thanks in advance.
 

merlinds

Member
Reaction score
15
As you said, the triggers looks fine. I suggest you to erase al special effects, from the skills and from triggers, and see if the trigger stills lagging.
 

neo34rd

New Member
Reaction score
3
Change casting time to at least 1 second, for shadow strike casting time is the occurance of the damage I think. I had a similar problem when using shadow strike as well. With 0.00 casting time, its gonna lag your game whenever you cast that spell.
 

Grags_1977

Ultra Cool Member
Reaction score
32
Change casting time to at least 1 second, for shadow strike casting time is the occurance of the damage I think. I had a similar problem when using shadow strike as well. With 0.00 casting time, its gonna lag your game whenever you cast that spell.

WOW! I'd never of thought of that. Works! thanks lot! :thup: +rep

EDIT: GAH! Have to spread it about, I owe you one!
 
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