• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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: 28
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