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

[Trigger] Need Help To TD Map

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
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)
 
Level 12
Joined
Nov 13, 2010
Messages
254
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
 
Level 12
Joined
Nov 13, 2010
Messages
254
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.
Top