Happysmiley
New Member
- Reaction score
- 22
I'm working on a spell which will work alot like the Crusader enchant in wow, problem is, I can't get my added special effect to trigger, and my script is probably leaking a bit since every time it proccs, there is a slight lagg...
Anyways, here it is;
The Crusader = the spell
Crusader = integer variable
What should I do to fix the lag and have my special effect shown?
/happy
Anyways, here it is;
Trigger:
- Events
- Unit - A unit is attacked
- Conditions
- Actions
- Set Crusader = (Random integer number between 1 and 100)
- If (All Conditions are True) then do (Then actions) else do (Else actions)
- If - Conditions
- (Level of The Crusader for (Attacking Unit)) Equal to 1
- (Crusader Greater than or equal to 1) and (Crusader is Less than or equal to 15)
- Then - Actions
- Special Effect - Create a special effect attached to the chest of (Attacking unit) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
- Unit - Add Crusader to (Attacking unit)
- Unit - Set life of (Attacking unit) to ((Life of Attacking unit) + (Random real number between 75.00 and 125.00))
- Wait 15.00 seconds
- Unit - Remove Crusader from (Attacking unit)
- Else - Actions
- Do nothing
The Crusader = the spell
Crusader = integer variable
What should I do to fix the lag and have my special effect shown?
/happy