jpres
New Member
- Reaction score
- 15
Making a maze and I need to know what to insert to stop the lag for this trigger for whenever a footman is sliding.
Code:
Tiles
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Footman
(Terrain type at (Position of (Picked unit))) Equal to Cityscape - Rough Dirt
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 6.00 towards (Facing of (Picked unit)) degrees)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Footman
(Terrain type at (Position of (Picked unit))) Equal to Cityscape - Dirt
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 8.00 towards (Facing of (Picked unit)) degrees)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Footman
(Terrain type at (Position of (Picked unit))) Equal to Cityscape - Black Marble
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 11.50 towards (Facing of (Picked unit)) degrees)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Footman
(Terrain type at (Position of (Picked unit))) Equal to Cityscape - White Marble
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 14.00 towards (Facing of (Picked unit)) degrees)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Footman
(Terrain type at (Position of (Picked unit))) Equal to Cityscape - Square Tiles
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 20.00 towards (Facing of (Picked unit)) degrees)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Footman
(Terrain type at (Position of (Picked unit))) Equal to Cityscape - Round Tiles
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 26.00 towards (Facing of (Picked unit)) degrees)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Footman
(Terrain type at (Position of (Picked unit))) Equal to Dalaran - Trim Grass
Then - Actions
Unit - Kill (Picked unit)
Else - Actions