- Joined
- Sep 9, 2007
- Messages
- 253
There are Neutral towers scattered across my map and I want to allow the 2 forces to claim them. The teams are set up the same as your average AoS:
I want allow a user's hero to claim a neutral tower for his team by walking next to it (like a normal rescue except he is not rescuing for himself he is rescuing for his computer-controlled ally). This shouldn't be a problem using the following trigger:
However I also want to allow the computer controlled creeps (which are randomly pathing around the map) to claim the towers from range, Say 500 range. I'm not sure how to accomplish this but I need something like this:
force 1
player 1 - computer
player 2,3,4 - user controlled
force 2
player 4 - computer
player 5,6,7 user controlled
player 1 - computer
player 2,3,4 - user controlled
force 2
player 4 - computer
player 5,6,7 user controlled
I want allow a user's hero to claim a neutral tower for his team by walking next to it (like a normal rescue except he is not rescuing for himself he is rescuing for his computer-controlled ally). This shouldn't be a problem using the following trigger:
-
Hero Claimes a Tower
-
Events
- Unit - A unit Is rescued
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- Unit - Change ownership of (Attacking unit) to (Owner of (Triggering unit)) and Change color
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Triggering unit)) Equal to Player 2 (Blue)
- (Owner of (Triggering unit)) Equal to Player 3 (Teal)
- (Owner of (Triggering unit)) Equal to Player 4 (Purple)
-
Then - Actions
- Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Change color
-
Else - Actions
- Unit - Change ownership of (Triggering unit) to Player 5 (Yellow) and Change color
-
If - Conditions
-
Events
Event - A unit comes within 500 range of a neutral tower.
Condition - unit type of unit(unit coming within range of the tower) = creep.
Action - change ownership of neutral tower to player(owner of unit(creep unit))
I was initially letting the neutral towers attack and changing owndership when they attack a unit. I had to give them no projectile and 0 damage because I didn't want it to be noticable.... This method kind of worked but I felt it was clunky and I didn't like it.
Condition - unit type of unit(unit coming within range of the tower) = creep.
Action - change ownership of neutral tower to player(owner of unit(creep unit))
I was initially letting the neutral towers attack and changing owndership when they attack a unit. I had to give them no projectile and 0 damage because I didn't want it to be noticable.... This method kind of worked but I felt it was clunky and I didn't like it.