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

Creating TD

Status
Not open for further replies.
Level 7
Joined
Feb 22, 2009
Messages
158
Hello, i want to do the trigger that spawns var_unit_count for 4computers (if 4players are playing).

I picked them, but nothing happens. Can you help me?

If 1player playing spawn for Brown (12).
If 2players playing spawn for Player (Comp) (12) and (11).

I hope you agreed

STATUS: SOLVED
 

Attachments

  • Tricky TD v0.0.w3x
    26.1 KB · Views: 30
Last edited:
Level 4
Joined
Aug 30, 2009
Messages
70
Where is this only single player?
  • Spawn
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • Set Level = (Level + 1)
      • Countdown Timer - Destroy (Last created timer window)
      • For each (Integer A) from 1 to Unit_Type_Count[Level], do (Actions)
        • Loop - Actions
          • Player Group - Pick every player in SpawnPlayers and do (Actions)
            • Loop - Actions
              • Unit - Create 1 Unit_Type[Level] for (Picked player) at SpawnPoint facing Default building facing (270.0) degrees
          • Wait 1.00 seconds
it spawns 10 units for each player in SpawnPlayers and in the other trigger, for each playing player there is another enemy added to SpawnPlayers.
 
Status
Not open for further replies.
Top