- Joined
- Jul 7, 2013
- Messages
- 10
Hello! I am making an AoS map and I'm making the "ms command" just like in DotA that will tell you your current movement speed. I am using only 1 array unit-variable for all the players. However, I tested it and only Player 1's command works. Here are the triggers:
-
Selects Centurion
-
Events
- Unit - A unit enters Centurion <gen>
-
Conditions
- (Dummy Centurion <gen> contains Centurion 0076 <gen>) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 1 (Red)
-
Then - Actions
- Unit - Create 1 Centurion for Player 1 (Red) at (Center of Good Heroes <gen>) facing Default building facing degrees
- Set Hero[1] = (Last created unit)
- Selection - Select Hero[1] for Player 1 (Red)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 2 (Blue)
-
Then - Actions
- Unit - Create 1 Centurion for Player 2 (Blue) at (Center of Good Heroes <gen>) facing Default building facing degrees
- Set Hero[2] = (Last created unit)
- Selection - Select Hero[2] for Player 2 (Blue)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 3 (Teal)
-
Then - Actions
- Unit - Create 1 Centurion for Player 3 (Teal) at (Center of Good Heroes <gen>) facing Default building facing degrees
- Set Hero[3] = (Last created unit)
- Selection - Select Hero[3] for Player 3 (Teal)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 4 (Purple)
-
Then - Actions
- Unit - Create 1 Centurion for Player 4 (Purple) at (Center of Good Heroes <gen>) facing Default building facing degrees
- Set Hero[4] = (Last created unit)
- Selection - Select Hero[4] for Player 4 (Purple)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 5 (Yellow)
-
Then - Actions
- Unit - Create 1 Centurion for Player 5 (Yellow) at (Center of Good Heroes <gen>) facing Default building facing degrees
- Set Hero[5] = (Last created unit)
- Selection - Select Hero[5] for Player 5 (Yellow)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 7 (Green)
-
Then - Actions
- Unit - Create 1 Centurion for Player 7 (Green) at (Center of Evil Heroes <gen>) facing Default building facing degrees
- Set Hero[7] = (Last created unit)
- Selection - Select Hero[7] for Player 7 (Green)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 8 (Pink)
-
Then - Actions
- Unit - Create 1 Centurion for Player 8 (Pink) at (Center of Evil Heroes <gen>) facing Default building facing degrees
- Set Hero[8] = (Last created unit)
- Selection - Select Hero[8] for Player 8 (Pink)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 9 (Gray)
-
Then - Actions
- Unit - Create 1 Centurion for Player 9 (Gray) at (Center of Evil Heroes <gen>) facing Default building facing degrees
- Set Hero[9] = (Last created unit)
- Selection - Select Hero[9] for Player 9 (Gray)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 10 (Light Blue)
-
Then - Actions
- Unit - Create 1 Centurion for Player 10 (Light Blue) at (Center of Evil Heroes <gen>) facing Default building facing degrees
- Set Hero[10] = (Last created unit)
- Selection - Select Hero[10] for Player 10 (Light Blue)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 11 (Dark Green)
-
Then - Actions
- Unit - Create 1 Centurion for Player 11 (Dark Green) at (Center of Evil Heroes <gen>) facing Default building facing degrees
- Set Hero[11] = (Last created unit)
- Selection - Select Hero[11] for Player 11 (Dark Green)
- Unit - Remove (Entering unit) from the game
- Unit - Remove Centurion 0076 <gen> from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
MS 1
-
Events
- Player - Player 1 (Red) types a chat message containing -ms as An exact match
- Conditions
-
Actions
- Game - Display to Player Group - Player 1 (Red) the text: (((Proper name of Hero[1]) + 's) + ( movement speed is + (String((Current movement speed of Hero[1])))))
-
Events
-
MS 2
-
Events
- Player - Player 2 (Blue) types a chat message containing -ms as An exact match
- Conditions
-
Actions
- Game - Display to Player Group - Player 1 (Red) the text: (((Proper name of Hero[2]) + 's) + ( movement speed is + (String((Current movement speed of Hero[2])))))
-
Events