Devrak
New Member
- Reaction score
- 17
How is my trigger? Does it leak, lag, is it bad, and most important, would this be MUI?
Trigger:
- Basic Shoot Trigger
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Shoot Arrow
- Actions
- Set Caster_Point[(Custom value of (Casting unit))] = (Position of (Casting unit))
- Set Stat_Damage[(Custom value of (Casting unit))] = (Agility of (Casting unit) (Include bonuses))
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- Wait 0.15 seconds
- Unit Group - Pick every unit in (Units within 2000.00 of (Position of (Casting unit))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- ((Picked unit) has buff Damaged) Equal to True
- ((Owner of (Picked unit)) is an enemy of (Owner of (Casting unit))) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Set Damage_Done = ((Real(Stat_Damage[(Custom value of (Casting unit))])) + 0.00)
- Unit - Cause (Casting unit) to damage (Picked unit), dealing Damage_Done damage of attack type Spells and damage type Normal
- Unit - Remove Damaged buff from (Picked unit)
- Floating Text - Create floating text that reads (String(Damage_Done, 0, 0)) above (Picked unit) with Z offset 0.00, using font size 9.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
- Floating Text - Change the fading age of (Last created floating text) to 0.20 seconds
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.20 seconds
- Floating Text - Set the velocity of (Last created floating text) to 20.00 towards 90.00 degrees
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Loop - Actions
- Custom script: call RemoveLocation(udg_Caster_Point[GetUnitUserData(GetSpellAbilityUnit())])
- Events