• 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] spawn trigger

Status
Not open for further replies.
hello i just wanted to see thoughts on how efficient this trigger is
It sets the unit, the units lvl, and spawns of the units for each wave in one trigger.
just wanted to see how efficient it was and see if i could improve it anywere
unfortunately all ik how to do on here is upload a pic lol so here it is
 

Attachments

  • red spawn all lvls.PNG
    red spawn all lvls.PNG
    50.5 KB · Views: 95
lol ok then here
  • Unit Spawn Red all Lvls
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
      • Player - Player 1 (Red) types a chat message containing (- + go) as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set EnemiesAlive_Counter_Player[1] = Z_Player_Choice_Unit_Spawns[1]
      • Set Round_Player[1] = (Round_Player[1] + 1)
      • Multiboard - Set the text for MultiBoard_Game_Scores item in column 2, row 2 to (String(Round_Player[1]))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Round_Player[1] Less than or equal to 31
        • Then - Actions
          • Set Unit_Runner_Red_Spawn = Unit_Runner_Spawn[Round_Player[1]]
        • Else - Actions
      • Set Boss_Bonus_Counter[1] = (Boss_Bonus_Counter[1] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Boss_Bonus_Counter[1] Equal to 5
        • Then - Actions
          • Set Boss_Add_Mana_Boolean_Player[1] = True
          • Set Boss_Bonus_Counter[1] = 0
        • Else - Actions
      • For each (Integer A) from 1 to Z_Player_Choice_Unit_Spawns[1], do (Actions)
        • Loop - Actions
          • Set Temp_Spawn_Red_Reg[1] = (Center of red start <gen>)
          • Unit - Create 1 Unit_Runner_Red_Spawn for Player 12 (Brown) at Temp_Spawn_Red_Reg[1] facing Default building facing degrees
          • Custom script: call RemoveLocation( udg_Temp_Spawn_Red_Reg[1] )
          • Set Unit_Spawns_Red[(Integer A)] = (Last created unit)
          • Hero - Set Unit_Spawns_Red[(Integer A)] Hero-level to (Round_Player[1] - 30), Hide level-up graphics
          • Set EnemiesAlive_Player[1] = (EnemiesAlive_Player[1] + 1)
          • Multiboard - Set the text for MultiBoard_Game_Scores item in column 2, row 6 to (String(EnemiesAlive_Player[1]))
          • Wait 2.00 seconds
the reason i only wanted it to work for one player was becasue in the td im making u dont have to wait for the other ppl to play it
 
Last edited:
Status
Not open for further replies.
Top