Ive been looking at how people have been making mazes, there are lots of Regions and when someone steps in the region they die.
I was thinking there has to be a much more efective way of making this trigger with out all the Regions.
Couldent you make a trigger sort of like this.
Event: Periodic event (Every .10 sec) of game time
Conditions:
Action: Pick every unit owned by (all players) and do actions:
Actions: If conditions do actions else do actions:
Conditions: ((Picked unit) position)) equal to ((Terrain type grass) at position of Picked unit))
(Picked unit) equal to (Runner)
Actions: Kill (picked unit)
Else do: Do nothing
I completly made that trigger up from what i found in the editor but i couldent put it together, Im preaty sure there is a way to make a trigger like that and if so please help me. It will save alot of time.
Terrain Triggers
Moderator: Cheaters
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Terrain Triggers
Trigger Made for Memory Leaks
Terrain
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set Temp_Unit_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Temp_Unit_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at (Position of (Picked unit))) Equal to Lordaeron Summer - Dirt
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Custom script: call DestroyGroup (udg_Temp_Unit_Group)
Terrain
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set Temp_Unit_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Temp_Unit_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at (Position of (Picked unit))) Equal to Lordaeron Summer - Dirt
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Custom script: call DestroyGroup (udg_Temp_Unit_Group)
-
- Forum Fanatic
- Posts: 315
- Joined: October 16th, 2007, 7:32 pm