- Joined
- May 11, 2007
- Messages
- 4,650
Ya, writing every word with capital letter is fun!
But to the point:
Anyone got a good system for detecting and moving a unit who is attacking to a point? I thought I had a good one, but I'm having trouble making it work:
NOTE: I don't want the creeps to go on a rage frenzy killing every tower (wintermaul).
But to the point:
Anyone got a good system for detecting and moving a unit who is attacking to a point? I thought I had a good one, but I'm having trouble making it work:
-
New Ultra Good Block Detecter Team1
-
Events
- Unit - A unit owned by Player 1 (Red) Is attacked
- Unit - A unit owned by Player 2 (Blue) Is attacked
- Unit - A unit owned by Player 3 (Teal) Is attacked
-
Conditions
- ((Attacking unit) has buff Blocking Warning ) Equal to False
- ((Owner of (Attacking unit)) is an enemy of Player 1 (Red)) Equal to True
-
Actions
- Unit - Add Blocking Warning (Creep, Unholy Aura) to (Attacking unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 1
-
Then - Actions
- Set movepoint1 = (Center of P2 <gen>)
- Unit - Order (Triggering unit) to Move To movepoint1
- Unit - Increase level of Waypoint (Creeps) for (Triggering unit)
- Game - Display to (All players) the text: moving to p2
- Custom script: call RemoveLocation( udg_movepoint1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 2
-
Then - Actions
- Set movepoint1 = (Random point in P3 <gen>)
- Unit - Order (Triggering unit) to Move To movepoint1
- Unit - Increase level of Waypoint (Creeps) for (Triggering unit)
- Game - Display to (All players) the text: moving to p3
- Custom script: call RemoveLocation( udg_movepoint1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 3
-
Then - Actions
- Set movepoint1 = (Center of P4 <gen>)
- Unit - Order (Triggering unit) to Move To movepoint1
- Game - Display to (All players) the text: moving to p4
- Unit - Increase level of Waypoint (Creeps) for (Triggering unit)
- Custom script: call RemoveLocation( udg_movepoint1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 4
-
Then - Actions
- Set movepoint1 = (Center of P5 <gen>)
- Unit - Order (Triggering unit) to Move To movepoint1
- Unit - Increase level of Waypoint (Creeps) for (Triggering unit)
- Game - Display to (All players) the text: moving to p5
- Custom script: call RemoveLocation( udg_movepoint1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 5
-
Then - Actions
- Set movepoint1 = (Center of P6 <gen>)
- Game - Display to (All players) the text: moving to p6
- Unit - Order (Triggering unit) to Move To movepoint1
- Unit - Increase level of Waypoint (Creeps) for (Triggering unit)
- Custom script: call RemoveLocation( udg_movepoint1 )
- Else - Actions
-
If - Conditions
-
Events
-
Creep Attacks
-
Events
- Unit - A unit owned by Player 1 (Red) Is attacked
- Unit - A unit owned by Player 2 (Blue) Is attacked
- Unit - A unit owned by Player 3 (Teal) Is attacked
-
Conditions
- (Owner of (Attacking unit)) Equal to Player 8 (Pink)
- ((Attacking unit) has buff Blocking Warning ) Equal to True
-
Actions
- Game - Display to (All players) the text: TELEPORTING
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 0
-
Then - Actions
- Set MovePointTeam1 = (Center of P1 <gen>)
- Unit - Move (Attacking unit) instantly to MovePointTeam1
- Custom script: call RemoveLocation( udg_MovePointTeam1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 1
-
Then - Actions
- Set MovePointTeam1 = (Center of P2 <gen>)
- Unit - Move (Attacking unit) instantly to MovePointTeam1
- Custom script: call RemoveLocation( udg_MovePointTeam1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 2
-
Then - Actions
- Set MovePointTeam1 = (Center of P3 <gen>)
- Unit - Move (Attacking unit) instantly to MovePointTeam1
- Custom script: call RemoveLocation( udg_MovePointTeam1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 3
-
Then - Actions
- Set MovePointTeam1 = (Center of P4 <gen>)
- Unit - Move (Attacking unit) instantly to MovePointTeam1
- Custom script: call RemoveLocation( udg_MovePointTeam1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 4
-
Then - Actions
- Set MovePointTeam1 = (Center of P5 <gen>)
- Unit - Move (Attacking unit) instantly to MovePointTeam1
- Custom script: call RemoveLocation( udg_MovePointTeam1 )
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 5
-
Then - Actions
- Set MovePointTeam1 = (Center of P6 <gen>)
- Unit - Move (Attacking unit) instantly to MovePointTeam1
- Custom script: call RemoveLocation( udg_MovePointTeam1 )
- Else - Actions
-
If - Conditions
-
Events
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Waypoint (Creeps) for (Triggering unit)) Equal to 0
-
Then - Actions
- Set MovePointTeam1 = (Center of P1 <gen>)
- Unit - Move (Attacking unit) instantly to MovePointTeam1
- Custom script: call RemoveLocation( udg_MovePointTeam1)
- Else - Actions
-
If - Conditions
NOTE: I don't want the creeps to go on a rage frenzy killing every tower (wintermaul).