Hi guys, hope this the right forum for this question!
As part of the map I want to make, I would like to constantly spawn enemy units that seek out player units and try to kill them, similar to how they work in this map.
I was able to create the following triggers (forgive me the bad formatting, I couldn't figure out how to do better. Also, I'm stuck with the German version of the editor for now, so I have to translate the triggers from German back to English, hope you still understand what I want to do):
Trigger 1:
However, I want them to immediately attack the next unit, so I tried the following trigger:
Trigger 3:
I tried a few other triggers, but couldn't get anything to work. Since I only recently started toying around with the world editor and have no real experience with it, I decided to ask you: How can I make enemy units constantly roam the map, trying to kill player units? I greatly appreciate any help!
As part of the map I want to make, I would like to constantly spawn enemy units that seek out player units and try to kill them, similar to how they work in this map.
I was able to create the following triggers (forgive me the bad formatting, I couldn't figure out how to do better. Also, I'm stuck with the German version of the editor for now, so I have to translate the triggers from German back to English, hope you still understand what I want to do):
Trigger 1:
-
Events
-
Time - Elapsed game time is 2.00 seconds
-
-
Actions
-
Unit - Create 10 Knight for Player 2 (blue) at (Center of region 001 <gen>) facing ((Center of (Playable map area)) offset by 0.00 towards 270.00 degrees)
-
-
Events
-
Unit - A unit enters Region 001 <gen>
-
-
Conditions
-
(Owner of (Entering unit)) Equal Player 2 (blue)
-
-
Actions
-
Unit - Order (Entering unit) to Attack (Random unit from (Units in (Playable map area) owned by (Random player from (All enemies of Player 2 (blue)))))
-
However, I want them to immediately attack the next unit, so I tried the following trigger:
Trigger 3:
-
Events
-
Unit - A unit reveives an order targetting an object
-
-
Actions
-
Wait until (((Target unit of issued order) is dead) Equal True), checking every 1.00 seconds
-
Unit - Order (Ordered unit) to Attack (Random unit from (Units in (Playable map area) owned by (Random player from (All enemies of Player 2 (blue)))))
-
I tried a few other triggers, but couldn't get anything to work. Since I only recently started toying around with the world editor and have no real experience with it, I decided to ask you: How can I make enemy units constantly roam the map, trying to kill player units? I greatly appreciate any help!
Last edited: