Need help with Spawns and stuff

Exide

I am amazingly focused right now!
Reaction score
448
Your first problem is solved with a Point Array variable.

Trigger:
  • Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set SpawnPoint[1] = (Center of Spawn Region 1 <gen>)
      • Set SpawnPoint[2] = (Center of Spawn Region 2 <gen>)
      • Set SpawnPoint[3] = (Center of Spawn Region 3 <gen>)
      • Set SpawnPoint[4] = (Center of Spawn Region 4 <gen>)
      • Set LifePoint[1] = (Center of Life Region 1 <gen>)
      • Set LifePoint[2] = (Center of Life Region 2 <gen>)


Trigger:
  • Spawn Trigger
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Unit - Create 10 Footman for Neutral Hostile at SpawnPoint[(Integer A)] facing Default building facing degrees


Trigger:
  • Move Trigger
    • Events
      • Unit - A unit enters Spawn Region 1 <gen>
      • Unit - A unit enters Spawn Region 2 <gen>
      • Unit - A unit enters Spawn Region 3 <gen>
      • Unit - A unit enters Spawn Region 4 <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Neutral Hostile
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Spawn Region 1 <gen> contains (Triggering unit)) Equal to True
              • (Spawn Region 2 <gen> contains (Triggering unit)) Equal to True
        • Then - Actions
          • Unit - Order (Triggering unit) to Move To LifePoint[1]
        • Else - Actions
          • Unit - Order (Triggering unit) to Move To LifePoint[2]


Trigger:
  • Lose Life
    • Events
      • Unit - A unit enters Life Region 1 <gen>
      • Unit - A unit enters Life Region 2 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life Region 1 <gen> contains (Triggering unit)) Equal to True
        • Then - Actions
          • Set Lives[1] = (Lives[1] - 1)
        • Else - Actions
          • Set Lives[2] = (Lives[2] - 1)
      • Unit - Remove (Triggering unit) from the game


You have to change these triggers to suit your map, of course.
 

Sp3tZn4z

Cool Member
Reaction score
2
Thanx for the help, i'll go try it right away :).

And offcourse i'll have to change the triggers :), my creeps are stored in a array but with the examples you gave me i should find it on my own for now. Fingers crossed.

EDIT: They spawn at all spawn points now :), now on to the pathing and other things. Thx again for the help I really appreciate it :).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top