- Joined
- May 11, 2012
- Messages
- 2,108
Incredibly simple, and good looking spell that just refuses to obey.
The looping part just stops when it reaches an enemy unit, meaning that if there is an enemy unit 600 units away from my hero, and I cast this spell, the loop will only run first 2 times (2*300=600, duhh). And there it stops, all the loops won't execute.
Problem? My eyes don't see any.
This sometimes works properly, and sometimes not.
Dummy unit has cast point and backswing 0.010, and the dummy is properly configured, too.
The looping part just stops when it reaches an enemy unit, meaning that if there is an enemy unit 600 units away from my hero, and I cast this spell, the loop will only run first 2 times (2*300=600, duhh). And there it stops, all the loops won't execute.
Problem? My eyes don't see any.
This sometimes works properly, and sometimes not.
Dummy unit has cast point and backswing 0.010, and the dummy is properly configured, too.
-
Mega Blast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Mega Blast
-
-
Actions
-
-------- ================================================ --------
-
Set TempTrigUnit = (Triggering unit)
-
Set TempPoint = (Position of TempTrigUnit)
-
Set TempPoint2 = (Target point of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Mega Blast for TempTrigUnit) Equal to 1
-
-
Then - Actions
-
Set TempReal = 2.00
-
-
Else - Actions
-
Set TempReal = 1.00
-
-
-
-------- ================================================ --------
-
For each (Integer TempInt) from 1 to 8, do (Actions)
-
Loop - Actions
-
-------- ================================================ --------
-
Set TempPoint3 = (TempPoint offset by (300.00 x (Real(TempInt))) towards (Angle from TempPoint to TempPoint2) degrees)
-
Set TempUnitGroup = (Units within 300.00 of TempPoint3 matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and ((((Matching unit) is dead) Not equal to True) and (((Matching unit) belongs to an enemy of (Trigg
-
-------- ================================================ --------
-
Unit - Create 1 Dummy Mega Blast for (Triggering player) at TempPoint3 facing Default building facing degrees
-
Set TempDummyUnit = (Last created unit)
-
-------- ================================================ --------
-
Unit - Add a 0.25 second Generic expiration timer to TempDummyUnit
-
Unit - Add Dummy Mega Blast to TempDummyUnit
-
Unit - Set level of Dummy Mega Blast for TempDummyUnit to (Level of Mega Blast for TempTrigUnit)
-
Unit - Order TempDummyUnit to Orc Tauren Chieftain - War Stomp
-
-------- ================================================ --------
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
-
-------- ================================================ --------
-
Unit - Cause TempTrigUnit to damage (Picked unit), dealing ((Real((Agility of TempTrigUnit (Include bonuses)))) / TempReal) damage of attack type Spells and damage type Normal
-
-------- ================================================ --------
-
-
-
-------- ================================================ --------
-
Special Effect - Create a special effect at TempPoint3 using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
-
Special Effect - Destroy (Last created special effect)
-
-------- ================================================ --------
-
Custom script: call RemoveLocation(udg_TempPoint3)
-
Custom script: call DestroyGroup(udg_TempUnitGroup)
-
-------- ================================================ --------
-
-
-
-------- ================================================ --------
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Custom script: call RemoveLocation(udg_TempPoint2)
-
Custom script: set udg_TempTrigUnit = null
-
Custom script: set udg_TempPoint = null
-
Custom script: set udg_TempPoint2 = null
-
Custom script: set udg_TempPoint3 = null
-
Custom script: set udg_TempUnitGroup = null
-
-------- ================================================ --------
-
-