ianu74
New Member
- Reaction score
- 8
How do i make an Attribute attack in a straight line? I can't look for the proper trigger to do it.
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Line Damage
Actions
Set Offset = 0.00
Set Temp_Point[0] = (Position of (Triggering unit))
Set Temp_Point[1] = (Target point of ability being cast)
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set Offset = (Offset + 250.00)
Set Temp_Point[2] = (Temp_Point[0] offset by Offset towards (Angle from Temp_Point[0] to Temp_Point[1]) degrees)
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 200.00 of (Temp_Point[2]) matching ((((Matching unit) is A ground unit) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True) and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing [B]((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 3.00) damage of attack type Hero and damage type Normal[/B]
Custom script: call RemoveLocation(udg_Temp_Point[2])
Custom script: call RemoveLocation(udg_Temp_Point[0])
Custom script: call RemoveLocation(udg_Temp_Point[1])