A
ApocRhino
Guest
is it possible to make a death area in a map were the tileset changes between two types every like 2 seconds or something so that when its one tileset it kills you and when its another tileset its walkable?
Events
Time - Every 0.07 seconds of game time
//Change this periodic time to suit your need of accuracy. (Lower time = more accurate)
Actions
Set zGroup = (Units in (Playable map area)((Terrain type at (Position of (Matching unit))) Equal to Dungeon - Lava))
//Change playable map area for this trigger to kill units only in a certain rect(region)
//Trigger being used is Set - (unit group) = Units in rect matching condtion (Terrain Type Comparison - Unit position of (unit) = (terrain type)
Unit Group - Pick every unit in zGroup and do (Unit - Kill (Picked unit))
CustomScript: call DestroyGroup(udg_zGroup)
Events
Time - Every 3.00 seconds of game time
//Change terrain types, wait values, to suit your gameplay desires
//(There are other ways to do this, but this is just an example)
Actions
Set zPoint = rect(TerrainChange1)
Environment - Change terrain type at (Center of zPoint) to Lordaeron Summer - Dirt using variation -1 in an area of size 1 and shape Circle
//TerrainChange1 is just a region I made of my desired position. (edit)Just fixed Memory Leaks
Wait 1.00 seconds
Environment - Change terrain type at (Center of zPoint) to Northrend - Snow using variation -1 in an area of size 1 and shape Circle
Wait 1.00 seconds
Environment - Change terrain type at (Center of zPoint) to Dungeon - Lava using variation -1 in an area of size 1 and shape Circle
CustomScript: call RemoveLocation(udg_zPoint)
Actions
Environment - Change terrain type at (Center of Rect) to Northrend - Snow using variation -1 in an area of size 1 and shape Circle
Wait 1.00 seconds
Environment - Change terrain type at (Center of Rect) to Dungeon - Lava using variation -1 in an area of size 1 and shape Circle
//No variables in this trigger
Event - Every 1.00 second
Condition
Action
- set Loc[1] = center of region 001
if terrain type at Loc[1] equal to Lava
then- change terrain type at Loc[1] to "Snow"
else - change terrain type at Loc[1] to "Lava"
call RemoveLocation(udg_Loc[1])