demonicdude
New Member
- Reaction score
- 0
Hi, I just registered and I am also very new to doing triggers (at the moment I just muck around with the triggers until I have it correct) but with this 1 I really cant find what to do. I have a trigger, that spawns 10 custom units called "Warrior" (their my grunts) and they spawn every 10 seconds, the spawning works and they Attack-Move after entering a region named "Region 002" but they only Attack-Move once and then all the other times the Warrior's spawn they just stand where they had spawned, but my other trigger for the enemy side works fine. I need them to go to Region 001, because that's where the enemy is pummelling me from.
Enemy side has Footmen also named "Warrior" that spawn 10 every 10 seconds and attack move to Region 002 and it works every time they spawn, and also another trigger for them that spawns 2 Knights, 2 Riflemen, and 2 Paladins every 30 seconds, and attack-move to Region 002, and it also works every time.
What I have at the moment for the Enemy (Category is called Wspawn)
Spawn
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 10 Warrior for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
Spawn Copy
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Unit - Create 2 Rifleman for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
Unit - Create 2 Knight for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
Unit - Create 2 Paladin for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
And for Attacking-moving the enemy I have...
Move
Events
Unit - A unit enters Region 001 <gen>
Conditions
((Triggering unit) is A ground unit) Equal to ((Triggering unit) belongs to an enemy of Player 1 (Red))
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of Region 002 <gen>)
And for me, Player 1 the spawn trigger is...
Spawn Copy 2
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 10 Warrior for Player 1 (Red) at (Center of Region 002 <gen>) facing 90.00 degrees
and to move my Warrior's I have...
Move Copy
Events
Unit - A unit enters Region 002 <gen>
Conditions
((Triggering unit) is A ground unit) Equal to (All units of (Units of type Warrior) are in Region 002 <gen>)
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of Region 001 <gen>)
Also could someone tell me how to have 1 Type of unit attack-move after entering the region, rather than everyone attack-moving within the region?
Note: This is a single player map just for me to learn triggers and get to know what works better with the map I am using.
Enemy side has Footmen also named "Warrior" that spawn 10 every 10 seconds and attack move to Region 002 and it works every time they spawn, and also another trigger for them that spawns 2 Knights, 2 Riflemen, and 2 Paladins every 30 seconds, and attack-move to Region 002, and it also works every time.
What I have at the moment for the Enemy (Category is called Wspawn)
Spawn
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 10 Warrior for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
Spawn Copy
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Unit - Create 2 Rifleman for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
Unit - Create 2 Knight for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
Unit - Create 2 Paladin for Player 12 (Brown) at (Center of Region 001 <gen>) facing 90.00 degrees
And for Attacking-moving the enemy I have...
Move
Events
Unit - A unit enters Region 001 <gen>
Conditions
((Triggering unit) is A ground unit) Equal to ((Triggering unit) belongs to an enemy of Player 1 (Red))
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of Region 002 <gen>)
And for me, Player 1 the spawn trigger is...
Spawn Copy 2
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 10 Warrior for Player 1 (Red) at (Center of Region 002 <gen>) facing 90.00 degrees
and to move my Warrior's I have...
Move Copy
Events
Unit - A unit enters Region 002 <gen>
Conditions
((Triggering unit) is A ground unit) Equal to (All units of (Units of type Warrior) are in Region 002 <gen>)
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of Region 001 <gen>)
Also could someone tell me how to have 1 Type of unit attack-move after entering the region, rather than everyone attack-moving within the region?
Note: This is a single player map just for me to learn triggers and get to know what works better with the map I am using.