RPG:spawning units

K

Kaokan

Guest
Now this is my first RPG and I need help on how to make locations spawn units. This is my trigger
Condition:player 7 brings exactly 0 any units to spawn1
Action:Create 5 Marines for player 7 at Spawn1
Preserve trigger

You probaly know what i am trying to do. I am trying to make it so if the person playing killed all the marines or lead them away then the trigger will make more. For some reason the trigger makes them continously. Even when there are 10 marines there. It still makes more marines. During the game you don't want alot of those yellow signs saying Cannot place unit. Can anyone help me?
 
D

Duffanator

Guest
Well, you could add a time to the thing, like a couple of seconds, or if yellow brings, say 10 marines to that location, kill 5 of them, or maybe using switches.

Eg:

Trigger 1:

Condition:
Current Player brings exactly 5 marines to location

Action:
Set switch 1.
Preserve trigger

Trigger 2:

Conditon:
Current Player brings exactly 0 mairnes to location

Action:
Clear Switch 1
Preserve trigger

Trigger 3:

Condition:
Switch 1 is cleared

Action:
Create 5 marines at location
Preserve trigger
 
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