• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Simple Help

Status
Not open for further replies.
Level 2
Joined
Aug 17, 2006
Messages
6
I would think it would be the most simple part of my map but I need help. I need lets say 3 footman, 4 archers, and 1 knight to spawn on the left side, owned by player 2 (blue) and attack toward player 1 (red)'s castle on the left side of the map. My trigger spawns them, but they just stand there, and some of them attack.
 
Level 4
Joined
Jul 24, 2008
Messages
108
Since you prolly spawned them in a location, you need to pick every units in that location and order picked units to attack-move to the location of the castle. But thats all i can tell you without seeing your triggers
 
Level 2
Joined
Aug 17, 2006
Messages
6
here it is thanks

  • Spawn
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • Unit - Create 1 Knight for Player 2 (Blue) at (Center of Spawn <gen>) facing Default building facing degrees
      • Unit - Create 3 Archer for Player 2 (Blue) at (Random point in Spawn <gen>) facing Default building facing degrees
      • Unit - Create 30 Footman for Player 2 (Blue) at (Random point in Spawn <gen>) facing Default building facing degrees
      • Wait 2.00 game-time seconds
      • Unit Group - Order (Units in Spawn <gen> owned by Player 2 (Blue)) to Attack-Move To (Center of Castle <gen>)
 
Last edited by a moderator:
Level 9
Joined
May 27, 2006
Messages
498
Well, if the unit group doesnt work, you could use another way:

  • Actions:
    • Unit - Create 1 Knight for Player 2 (Blue) at somewhere facing something
    • Unit - Order (Last created unit) to Attack-Move to somewhere
    • For each (Integer A) from 1 to 3 do:
      • Loop - Actions:
        • Unit - Create 1 Archer for Player 2 (Blue) at somewhere facing something
        • Unit - Order (Last created unit) to Attack-Move to somewhere
    • For each (Integer A) from 1 to 30 do:
      • Loop - Actions:
        • Unit - Create 1 Footman for Player 2 (Blue) at somewhere facing something
        • Unit - Order (Last created unit) to Attack-Move to somewhere
 
Status
Not open for further replies.
Top