- Joined
- Jun 2, 2009
- Messages
- 1,233
Hero can cast magical arrow that travels 3500 range and hits the first target on it's line.
This trigger sometimes not working. When you try to cast it, it stucks at the place that you have casted and never removes from the game.
This trigger not created by me and i haven't figured it out why it is not working.
This happens randomly
This trigger sometimes not working. When you try to cast it, it stucks at the place that you have casted and never removes from the game.
This trigger not created by me and i haven't figured it out why it is not working.
This happens randomly
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set DA_Index = 0
-
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Dark Arrow //
-
-
Actions
-
Set DA_Caster[DA_Index] = (Triggering unit)
-
Set Point_DA = (Position of DA_Caster[DA_Index])
-
Set Point_DA2 = (Target point of ability being cast)
-
Unit - Create 1 Dark Arrow // Dummy for (Triggering player) at Point_DA facing Point_DA2
-
Set DarkArrowToplamAtisSayisi[(Player number of (Triggering player))] = (DarkArrowToplamAtisSayisi[(Player number of (Triggering player))] + 1)
-
Custom script: call RemoveLocation(udg_Point_DA)
-
Custom script: call RemoveLocation(udg_Point_DA2)
-
-
Events
-
Unit - A unit enters (Playable map area)
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Dark Arrow // Dummy
-
-
Actions
-
Unit - Set the custom value of (Triggering unit) to DA_Index
-
Custom script: if udg_DA_Dummies == null then
-
Custom script: set udg_DA_Dummies = CreateGroup()
-
Custom script: endif
-
Unit Group - Add (Triggering unit) to DA_Dummies
-
Set DA_Index = (DA_Index + 1)
-
Unit - Add a 10.00 second Generic expiration timer to (Triggering unit)
-
-
Events
-
Time - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in DA_Dummies and do (Actions)
-
Loop - Actions
-
Set Unit_DA = (Picked unit)
-
Set DA_Timer[(Custom value of Unit_DA)] = (DA_Timer[(Custom value of Unit_DA)] + 0.02)
-
Set Point_DA = (Position of Unit_DA)
-
Set Point_DA2 = (Point_DA offset by 22.00 towards (Facing of Unit_DA) degrees)
-
Set DA_Range[(Custom value of Unit_DA)] = (DA_Range[(Custom value of Unit_DA)] + 22.00)
-
Unit - Move Unit_DA instantly to Point_DA2
-
Custom script: call RemoveLocation(udg_Point_DA)
-
Custom script: call RemoveLocation(udg_Point_DA2)
-
Set Point_DA = (Position of Unit_DA)
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 65.00 of Point_DA) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
((Picked unit) belongs to an enemy of (Owner of Unit_DA)) Equal to True
-
((Picked unit) is A structure) Equal to False
-
((Picked unit) is Mechanical) Equal to False
-
-
Then - Actions
-
Set DarkArrowDusmanHeroVurusSayisi[(Player number of (Owner of Unit_DA))] = (DarkArrowDusmanHeroVurusSayisi[(Player number of (Owner of Unit_DA))] + 1)
-
Unit - Kill Unit_DA
-
Unit - Cause DA_Caster[(Custom value of Unit_DA)] to damage (Picked unit), dealing ((40.00 + ((Real((Level of Dark Arrow // for DA_Caster[(Custom value of Unit_DA)]))) x 40.00)) + ((Real((Integer((DA_Range[(Custom value of Unit_DA)] / 550.00))))) x 100.00)) damage of attack type Spells and damage type Magic
-
Unit Group - Remove Unit_DA from DA_Dummies
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_Point_DA)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DA_Range[(Custom value of Unit_DA)] Greater than 3500.00
-
-
Then - Actions
-
Unit - Kill Unit_DA
-
Unit Group - Remove Unit from DA_Dummies
-
-
Else - Actions
-
-
-
-