• 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.

[Trigger] Spawn HELP NEEDED!!!!!!!!!

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2008
Messages
363
Okay so at the second spawn 2 of the 4 units go back to their spawning point!?!?!?!? So here are my triggers for the spawn and this is an aos style map.
  • SPAWN LEFT
    • Events
      • Time - Every 25.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 4 Elf Guard for Player 5 (Yellow) at (Center of Region 009 <gen>) facing (Position of (Triggering unit))
      • Unit Group - Order (Units in Region 009 <gen>) to Attack-Move To (Center of Region 010 <gen>)
This is the spawnign trigger....
  • REGION 10 SPAWN
    • Events
      • Unit - A unit enters Region 010 <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
    • Actions
      • Unit Group - Pick every unit in (Units in Region 010 <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of Region 006 <gen>)
Moving to another region so that they don't cut corners....
  • SPAWN LEFT MOVEMENT
    • Events
      • Unit - A unit enters Region 003 <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
    • Actions
      • Unit Group - Pick every unit in (Units in Region 003 <gen>) and do (Actions)
        • Loop - Actions
          • Unit Group - Order (Units in Region 003 <gen>) to Attack-Move To (Center of Region 006 <gen>)
This is the attacking enemy main region. So again help is needed.
 
You can make this just by using two triggers and a simple loop without unit groups. I'll make it when i get some more time... in about half hour.

Ok...
  • Spawn Creeps
    • Events
      • Time - Every 35.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set TempLoc01 = Center of region1 <gen>
          • Set TempLoc02 = Center of region2 <gen>
          • Unit - Create 1 Footman for Player 1 (Red) at (TempLoc01) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (TempLoc02)
          • Custom script - call RemoveLocation(udg_TempLoc01)
          • Custom script - call RemoveLocation(udg_TempLoc02)
  • CreepPoint
    • Events
      • Unit - A unit enters Region2 <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Set TempLoc03 = Center of region3 <gen>
      • Unit - Order (Triggering unit) to Attack-Move To (TempLoc03)
      • Custom script - call RemoveLocation(udg_TempLoc03)
I'm not sure if regions leak... otherwise make them into variables..
 
Last edited:
Status
Not open for further replies.
Top