• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Humans VS Orcs

Status
Not open for further replies.
Level 2
Joined
Apr 9, 2012
Messages
8
Hey I'm creating a map called: 'Humans VS Orcs' and I just want to know how to do some things. Let me explain my map.

It's a 1v1 map. Red = Humans, Blue = Orcs. The Map is 32x96. The Humans are based at the top and the Orcs are based at the bottem.

I need the Human's Barracks to train a specific unit to go and attack-move to the Orc's Barracks and vice-versa.

If you could help me with this, it'd be great! :D
 
Level 7
Joined
Mar 5, 2009
Messages
254
  • Untitled Trigger 002
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 1)) facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack Ground (Center of Region 2))
U mean this?Create region 1 to where u want the units to spawn and region 2 to where u want the units to move attack to.
 
Level 2
Joined
Apr 9, 2012
Messages
8
  • Untitled Trigger 002
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 1)) facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack Ground (Center of Region 2))
U mean this?Create region 1 to where u want the units to spawn and region 2 to where u want the units to move attack to.

That works, but you can just stop the unit from doing whatever it's doing. I just want the units to march and not be controlled. I don't want to make another player which is controlled by no-one and have the units owned by him since I want to have weapon and armour upgrades (things like that)
 
Level 7
Joined
Mar 5, 2009
Messages
254
Try this (not sure if it works,i haven't tested)Also don't forget the clear the unit group leak.
  • Untitled Trigger 003
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Selection - Clear selection for Player 1 (Red)
      • Unit Group - Pick every unit in (Units of type Footman) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack Ground (Center of (Playable map area))
Edit : Use this insteand of only units of type :
  • Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Footman) and do (Actions)
    • Loop - Actions
      • Unit - Order (Picked unit) to Attack Ground (Center of (Playable map area))
 
Level 2
Joined
Apr 9, 2012
Messages
8
Okay, Looks sweet! Thanks! :D If I could +rep I would. (I'm pretty sure I've +rep now :D) Exactly what I needed.
 
Last edited:
Level 20
Joined
Jul 14, 2011
Messages
3,213
Be aware that it has leaks.

Unit Group - Pick every unit in (Units of type Footman) and do (Actions) <- Doble leak.
(Center of (Playable map area)) <- Leak
(Center of Region 1)) <- Leak
(Center of Region 2)) <- Leak
 
Status
Not open for further replies.
Top