• 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] Two Triggers - mistake or something leaked?

Status
Not open for further replies.
Level 5
Joined
Jun 24, 2009
Messages
118
Hello,I need help with my triggers -

First trigger is about one of my game modes - When I tested map then in arena winners are both and at that time when arena fighting starts. What's wrong?

  • Teammode
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
      • (Clicked dialog button) Equal to DialogButtons[2]
    • Actions
      • Game - Unpause the game
      • Game - Display to (All players) the text: |cff32cd32Current a...
      • Wait 15.00 seconds
      • Unit Group - Pick every unit in (Units in Full Destroyers Region <gen>) and do (Actions)
        • Loop - Actions
          • If (((Picked unit) is A Hero) Equal to True) then do (Unit - Move (Picked unit) instantly to (Center of Teleport Destroyers Region <gen>)) else do (Do nothing)
      • Unit Group - Pick every unit in (Units in Full Guards Region <gen>) and do (Actions)
        • Loop - Actions
          • If (((Picked unit) is A Hero) Equal to True) then do (Unit - Move (Picked unit) instantly to (Center of Teleport Guards Region <gen>)) else do (Do nothing)
      • Game - Pause the game
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Picked player) to (Center of Arena Region <gen>) over 0.00 seconds
          • Visibility - Disable fog of war
      • Game - Display to (All players) the text: |cff116644Get ready...
      • Wait 5.00 seconds
      • Floating Text - Create floating text that reads |cffff00005|r at (Center of Timer Region <gen>) with Z offset 0.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads |cffff00004|r at (Center of Timer Region <gen>) with Z offset 0.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads |cffff00003|r at (Center of Timer Region <gen>) with Z offset 0.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads |cffff00002|r at (Center of Timer Region <gen>) with Z offset 0.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads |cffff00001|r at (Center of Timer Region <gen>) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Game - Unpause the game
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Set Unit[1] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
        • Loop - Actions
          • Set Unit[2] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 3 (Teal)) and do (Actions)
        • Loop - Actions
          • Set Unit[3] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 4 (Purple)) and do (Actions)
        • Loop - Actions
          • Set Unit[4] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 5 (Yellow)) and do (Actions)
        • Loop - Actions
          • Set Unit[5] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 6 (Orange)) and do (Actions)
        • Loop - Actions
          • Set Unit[6] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 7 (Green)) and do (Actions)
        • Loop - Actions
          • Set Unit[7] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 8 (Pink)) and do (Actions)
        • Loop - Actions
          • Set Unit[8] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 9 (Gray)) and do (Actions)
        • Loop - Actions
          • Set Unit[9] = (Picked unit)
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 10 (Light Blue)) and do (Actions)
        • Loop - Actions
          • Set Unit[10] = (Picked unit)
      • Unit Group - Pick every unit in (Units in RandomRegion1 <gen>) and do (Actions)
        • Loop - Actions
          • Unit Group - Add Unit[1] to (Last created unit group)
          • Unit Group - Add Unit[2] to (Last created unit group)
          • Unit Group - Add Unit[3] to (Last created unit group)
          • Unit Group - Add Unit[4] to (Last created unit group)
          • Unit Group - Add Unit[5] to (Last created unit group)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Last created unit group)) Equal to 0
        • Then - Actions
          • Game - Display to (All players) the text: |cff99550Congradula...
          • Visibility - Disable (Last created visibility modifier)
          • Player Group - Pick every player in (All enemies of Player 6 (Orange)) and do (Actions)
            • Loop - Actions
              • Camera - Pan camera for (Picked player) to (Center of The Destroyers Region <gen>) over 0.00 seconds
          • Unit Group - Pick every unit in (Units of type (Unit-type of (Picked unit))) and do (Actions)
            • Loop - Actions
              • Unit Group - Add Unit[1] to (Last created unit group)
              • Unit Group - Add Unit[2] to (Last created unit group)
              • Unit Group - Add Unit[3] to (Last created unit group)
              • Unit Group - Add Unit[4] to (Last created unit group)
              • Unit Group - Add Unit[5] to (Last created unit group)
              • Unit - Move (Picked unit) instantly to (Center of The Destroyers Region <gen>)
          • Unit Group - Pick every unit in (Units of type (Unit-type of (Picked unit))) and do (Actions)
            • Loop - Actions
              • Unit Group - Add Unit[6] to (Last created unit group)
              • Unit Group - Add Unit[7] to (Last created unit group)
              • Unit Group - Add Unit[8] to (Last created unit group)
              • Unit Group - Add Unit[9] to (Last created unit group)
              • Unit Group - Add Unit[10] to (Last created unit group)
              • Unit - Move (Picked unit) instantly to (Center of The Guards Region <gen>)
          • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
            • Loop - Actions
              • Camera - Pan camera for (Picked player) to (Center of The Guards Region <gen>) over 0.00 seconds
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String((KillsDestroyers + 15)))
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String((DestroyersGold + 1000)))
        • Else - Actions
      • Unit Group - Pick every unit in (Units in Region 036 <gen>) and do (Actions)
        • Loop - Actions
          • Unit Group - Add Unit[6] to (Last created unit group)
          • Unit Group - Add Unit[7] to (Last created unit group)
          • Unit Group - Add Unit[8] to (Last created unit group)
          • Unit Group - Add Unit[9] to (Last created unit group)
          • Unit Group - Add Unit[10] to (Last created unit group)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Last created unit group)) Equal to 0
        • Then - Actions
          • Game - Display to (All players) the text: |cff99550 Congradul...
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to (String((KillsGuards + 15)))
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String((GuardsGold + 1000)))
          • Player Group - Pick every player in (All enemies of Player 6 (Orange)) and do (Actions)
            • Loop - Actions
              • Camera - Pan camera for (Picked player) to (Center of The Destroyers Region <gen>) over 1.72 seconds
          • Unit Group - Pick every unit in (Units of type (Unit-type of (Picked unit))) and do (Actions)
            • Loop - Actions
              • Unit Group - Add Unit[1] to (Last created unit group)
              • Unit Group - Add Unit[2] to (Last created unit group)
              • Unit Group - Add Unit[3] to (Last created unit group)
              • Unit Group - Add Unit[4] to (Last created unit group)
              • Unit Group - Add Unit[5] to (Last created unit group)
              • Unit - Move (Picked unit) instantly to (Center of The Destroyers Region <gen>)
          • Unit Group - Pick every unit in (Units of type (Unit-type of (Picked unit))) and do (Actions)
            • Loop - Actions
              • Unit Group - Add Unit[6] to (Last created unit group)
              • Unit Group - Add Unit[7] to (Last created unit group)
              • Unit Group - Add Unit[8] to (Last created unit group)
              • Unit Group - Add Unit[9] to (Last created unit group)
              • Unit Group - Add Unit[10] to (Last created unit group)
              • Unit - Move (Picked unit) instantly to (Center of The Guards Region <gen>)
          • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
            • Loop - Actions
              • Camera - Pan camera for (Picked player) to (Center of The Guards Region <gen>) over 1.70 seconds
        • Else - Actions
And second is with my kills and multiboard - when somebody kills then killer gets +1 kill to table but that isn't working.
  • Guards
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) is in (All enemies of Player 1 (Red))) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Equal to True
          • ((Owner of (Dying unit)) is in (All enemies of Player 1 (Red))) Equal to True
        • Then - Actions
          • Countdown Timer - Start ReviewTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in 30.00 seconds
          • Countdown Timer - Create a timer window for (Last started timer) with title Respawn
          • Countdown Timer - Show (Last created timer window) for (Matching player)
          • Player - Add 300 to (Owner of (Killing unit)) Current gold
          • Player - Add -300 to (Owner of (Triggering unit)) Current gold
          • Set Timer_Window[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
          • Wait 30.00 seconds
          • Set tempPoint = (Center of The Destroyers Region <gen>)
          • Hero - Instantly revive (Triggering unit) at tempPoint, Hide revival graphics
          • Hero - Set (Triggering unit) Hero-level to (Level of (Dying unit)), Hide level-up graphics
          • Countdown Timer - Destroy (Last created timer window)
          • Countdown Timer - Hide (Last created timer window) for (Matching player)
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String((KillsDestroyers + 1)))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Not equal to True
        • Then - Actions
          • Player - Add -150 to (Owner of (Killing unit)) Current gold
          • Player - Add 150 to (Owner of (Triggering unit)) Current gold
        • Else - Actions
 
Well, I've not watched though your triggers that much, but this may be the problem. But create an integer variable with an array and add a action that will increase the number of kills.

  • set kills[(Owner of (Killing unit)] = kills[(Owner of (Killing unit)] + 1
something, my World Editor is down. Then you use
  • Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String((kills[(Owner of (Killing unit)])))
something like that, experiment alittle!
 
Status
Not open for further replies.
Top