- Joined
- Mar 21, 2011
- Messages
- 1,622
hi i did a spell similar to fissure from dota's earth shaker, just in form of a shockwave.
releases a shockwave, and behind the missle i created stones (dummy units) that are not walkable.
i tried to do it in GUI, but if 2 units cast at the same time, some stones are missing (and maybe there are some leaks or mistakes, pls say it to me if u find sth)
Triggers:
releases a shockwave, and behind the missle i created stones (dummy units) that are not walkable.
i tried to do it in GUI, but if 2 units cast at the same time, some stones are missing (and maybe there are some leaks or mistakes, pls say it to me if u find sth)
Triggers:
-
Earth Shock 1
-

Ereignisse
-


Einheit - A unit starts the effect of an ability
-
-

Bedingungen
-


(Ability being cast) equal to Earth Shock
-
-

Aktionen
-


Set Unit_EarthShock[Index_EarthShock] = (Triggering unit)
-


Set Point_EarthShockCaster[Index_EarthShock] = (Position of Unit_EarthShock[Index_EarthShock])
-


Set Point_EarthShockTarget[Index_EarthShock] = (Target point of ability being cast)
-


Set Real_EarthShockDirection[Index_EarthShock] = (Angle from Point_EarthShockCaster[Index_EarthShock] to (Target point of ability being cast))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



'IF'-Bedingungen
-




Index_EarthShock Gleich 0
-
-



'THEN'-Aktionen
-




trigger - Turn on Earth Shock 2 <gen>
-
-



'ELSE'-Aktionen
-
-


Set Index_EarthShock = (Index_EarthShock + 1)
-


Custom script: call RemoveLocation (udg_Point_EarthShockCaster[udg_Index_EarthShock])
-


Custom script: call RemoveLocation (udg_Point_EarthShockTarget[udg_Index_EarthShock])
-
-
-
Earth Shock 2
-

Ereignisse
-


Zeit - Every 0.08 seconds of game time
-
-

Bedingungen
-

Aktionen
-


For each (Integer Index_EarthShock2) from 0 to (Index_EarthShock - 1), do (Actions)
-



loop - Aktionen
-




Set Real_EarthShockDistance[Index_EarthShock2] = (Real_EarthShockDistance[Index_EarthShock2] + 85.00)
-




Unit - Create 1 Earth Shock for (Owner of Unit_EarthShock[Index_EarthShock2]) at (Point_EarthShockCaster[Index_EarthShock2] offset by Real_EarthShockDistance[Index_EarthShock2] towards Real_EarthShockDirection[Index_EarthShock2] degrees) facing 0 degrees
-




Unit - Add a 6.00 second Standard expiration timer to (Last created unit)
-




Unit - Create 1 Earth Shock (Collision) for (Owner of Unit_EarthShock[Index_EarthShock2]) at (Point_EarthShockCaster[Index_EarthShock2] offset by Real_EarthShockDistance[Index_EarthShock2] towards Real_EarthShockDirection[Index_EarthShock2] degrees) facing 0 degrees
-




Unit - Add a 6.00 second Standard expiration timer to (Last created unit)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





'IF'-Bedingungen
-






Real_EarthShockDistance[Index_EarthShock2] greater than 700.00
-
-





'THEN'-Aktionen
-






Set Index_EarthShock = (Index_EarthShock - 1)
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







'IF'-Bedingungen
-








Index_EarthShock equal to 0
-
-







'THEN'-Aktionen
-








trigger - Turn off (This trigger)
-
-







'ELSE'-Aktionen
-
-






Set Unit_EarthShock[Index_EarthShock2] = Unit_EarthShock[Index_EarthShock]
-






Set Real_EarthShockDistance[Index_EarthShock2] = 0.00
-
-





'ELSE'-Aktionen
-
-
-
-
-
-
Earth Shock 3
-

Ereignisse
-


Unit - A unit dies
-
-

Bedingungen
-


((Unit-type of (Triggering unit)) equal Earth Shock) or ((Unit-type of (Triggering unit)) equal Earth Shock (Collision))
-
-

Aktionen
-


unit - Remove (Triggering unit) from the game
-
-
