I am a complete and total Newb at this whole map edit thing. I am just figuring out triggers but really struggling on what i need to put in where. I have been following tutorials so I can only use the forums when needed. But I have hit a wall. I was following this tut [Video] [Spawning units and having them attack a point on the map - MLWhiteley]. I did everything as instructed and added a few more points. But I can't seem to figure out why the zombies wont move. Or even when i bring a unit around they will not attack it even though they are set to attack any other player? Any help will Help a lot :)
Events
Game - Map initialization
Local Variables
Unit Group Zombie = (Empty unit group) <Unit Group>
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
Player - Make player 15 and player 1 treat each other as Enemy
Player - Make player 15 and player 2 treat each other as Enemy
Player - Make player 15 and player 3 treat each other as Enemy
Player - Make player 15 and player 4 treat each other as Enemy
Player - Make player 15 and player 5 treat each other as Enemy
Player - Make player 15 and player 6 treat each other as Enemy
Player - Make player 15 and player 7 treat each other as Enemy
Player - Make player 15 and player 8 treat each other as Enemy
Unit - Create 3 Zombie (From Terran Infestation Rupture) for player 15 at Point 003 using point facing (No Options)
Put this:
Unit - Create 3 Zombie (From Terran Infestation Rupture) for player 15 at Point 003 using point facing (No Options)
In the front of your trigger.
Change Map Init event to Elapsed time - 0.0 GAME TIME (Prevents desyncs).
Also this:
Unit Group - Add (Last created unit) to Unit Group Zombie
Is inside the loop ten times action. Move it out, since it does not do anything after the first run.
For your enemy triggers, make a loop like this:
Pick Each Player in active players and do actions
Actions -
Player - Make Picked Player and Player 15 treat each other as enemy
What is the point of having actions repeat 60 times? They do exactly the same thing.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am a complete and total Newb at this whole map edit thing. I am just figuring out triggers but really struggling on what i need to put in where. I have been following tutorials so I can only use the forums when needed. But I have hit a wall. I was following this tut [Video] [Spawning units and having them attack a point on the map - MLWhiteley]. I did everything as instructed and added a few more points. But I can't seem to figure out why the zombies wont move. Or even when i bring a unit around they will not attack it even though they are set to attack any other player? Any help will Help a lot :)
Events
Game - Map initialization
Local Variables
Unit Group Zombie = (Empty unit group) <Unit Group>
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
General - Repeat (Actions) 10 times
Actions
Unit Group - Add (Last created unit) to Unit Group Zombie
Unit - Order all units in Unit Group Zombie to ( Attack targeting Point 001) (Replace Existing Orders)
Player - Make player 15 and player 1 treat each other as Enemy
Player - Make player 15 and player 2 treat each other as Enemy
Player - Make player 15 and player 3 treat each other as Enemy
Player - Make player 15 and player 4 treat each other as Enemy
Player - Make player 15 and player 5 treat each other as Enemy
Player - Make player 15 and player 6 treat each other as Enemy
Player - Make player 15 and player 7 treat each other as Enemy
Player - Make player 15 and player 8 treat each other as Enemy
Unit - Create 3 Zombie (From Terran Infestation Rupture) for player 15 at Point 003 using point facing (No Options)
@xeroxinfernal: Go
bumb
You have not created any unit for the "last created unit" to work.
Unit - Create 3 Zombie (From Terran Infestation Rupture) for player 15 at Point 003 using point facing (No Options)
In the front of your trigger. Change Map Init event to Elapsed time - 0.0 GAME TIME (Prevents desyncs). Also this:Unit Group - Add (Last created unit) to Unit Group Zombie
Is inside the loop ten times action. Move it out, since it does not do anything after the first run. For your enemy triggers, make a loop like this:Pick Each Player in active players and do actions Actions - Player - Make Picked Player and Player 15 treat each other as enemy
What is the point of having actions repeat 60 times? They do exactly the same thing.