• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Need Help To TD Map

Status
Not open for further replies.
You can post the triggers easily by right clicking the trigger's name on the right pane and selecting "copy as text". Then paste the triggers between [TRIGGER][/TRIGGER] tags here.

You can run this kind of trigger and then spawn i amount of units. That i is an integer variable.

  • Untitled Trigger 080
    • Events
    • Conditions
    • Actions
      • Set i = 0
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
              • ((Picked player) slot status) Equal to Is playing
            • Then - Actions
              • Set i = (i + 1)
            • Else - Actions
      • Set i = (10 x i)
 
is a trigger for next rund
  • RB Next Round
    • Events
    • Conditions
    • Actions
      • Set CurrentLevel = (CurrentLevel + 1)
      • Set GoldperLevel = (GoldperLevel + 2)
      • Set TotalEnemies = (EnemyCount[CurrentLevel] x (Number of players in (All players matching (((Matching player) slot status) Equal to (==) Is playing))))
      • Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to (==) Is playing)) and do (Player - Add GoldperLevel to (Picked player) Current gold)
      • Trigger - Run RB Spawn Monsters <gen> (ignoring conditions)
      • Game - Display to (All players) for 10.00 seconds the text: (Level + ((String(CurrentLevel)) + ( : + (Name of (Last created unit)))))
      • If (EnableWaves Equal to (==) True) then do (Leaderboard - Change the value for Player 12 (Brown) in Leaderboard to CurrentLevel) else do (Do nothing)
      • If (EnableWaves Equal to (==) True) then do (Leaderboard - Change the value for Neutral Victim in Leaderboard to TotalEnemies) else do (Do nothing)
      • Trigger - Turn on RB Total Enemies <gen>
but i dont know if it will works so i will also try
  • Set TotalEnemies = (EnemyCount[CurrentLevel] x (Number of players in (All players matching (((Picked player) slot status) Equal to (==) Is playing))))
and

  • Set TotalEnemies = (EnemyCount[CurrentLevel] x (Number of players in (All players controlled by a User player)))
but i dont know they will works
 
i fund out with one ther works
  • Set TotalEnemies = (EnemyCount[CurrentLevel] x (Number of players in (All players matching ((((Matching player) controller) Equal to (==) User) and (((Matching player) slot status) Equal to (==) Is playing)))))
this one works for me :D
 
Status
Not open for further replies.
Back
Top