EqualiseR's Customizable Region/Terrain-Kill System v3.0
Posted: Sun Mar 18, 2012 4:02 pm
Due to the fact that I often see people attempting to find or create an adjustable/customizable Terrain-Kill trigger, I have decided to post mine on here. Before the Terrain-Kill system will work properly, you must set all of the variables via the "TerrainKill Configuration" trigger.
If you use this system, please credit me.
Here is the main trigger: ----- (Note: I have attached the map file which contains the TerrainKill Configuration trigger as well as the main trigger showed below.)
EqualiseR's Customizable Terrain Kill System
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Set HeroPosition[1] = ((Position of TerrainKill_Unit[(Integer A)]) offset by TerrainKill_Severity towards 90.00 degrees)
Set HeroPosition[2] = ((Position of TerrainKill_Unit[(Integer A)]) offset by TerrainKill_Severity towards 180.00 degrees)
Set HeroPosition[3] = ((Position of TerrainKill_Unit[(Integer A)]) offset by TerrainKill_Severity towards 270.00 degrees)
Set HeroPosition[4] = ((Position of TerrainKill_Unit[(Integer A)]) offset by TerrainKill_Severity towards 360.00 degrees)
Set HeroPosition[5] = (Position of TerrainKill_Unit[(Integer A)])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at HeroPosition[5]) Equal to Northrend - Snow
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at HeroPosition[1]) Equal to Northrend - Snow
(Terrain type at HeroPosition[2]) Equal to Northrend - Snow
(Terrain type at HeroPosition[3]) Equal to Northrend - Snow
(Terrain type at HeroPosition[4]) Equal to Northrend - Snow
Then - Actions
Unit - Kill TerrainKill_Unit[(Integer A)]
Else - Actions
Else - Actions
Wait 0.01 seconds
Custom script: call RemoveLocation(udg_HeroPosition[1])
Custom script: call RemoveLocation(udg_HeroPosition[2])
Custom script: call RemoveLocation(udg_HeroPosition[3])
Custom script: call RemoveLocation(udg_HeroPosition[4])
Custom script: call RemoveLocation(udg_HeroPosition[5])
~EqualiseR


If you use this system, please credit me.
Here is the main trigger: ----- (Note: I have attached the map file which contains the TerrainKill Configuration trigger as well as the main trigger showed below.)
~EqualiseR