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
Original Message
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.
EDIT2: Going to have an early 1, so thanks in advance.