Is there a easier trick to do this trigger work the same?

NeosDany

Member
Reaction score
1
Well, sometimes i dont see a shortcut to create some triggers like my queen shield in my game, that activates and changes the item for another, in that i created 10 triggers, with 1 variable with 10 arrays, very boring to do, but this one is the largest trigger in my game, it actually works well, but can anybody say if there is a easier way to create this trigger and keep work the same? :
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Owner of (Killing unit)) Equal to Player 1 (Red)
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Heroe_Player_6
        • Then - Actions
          • Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
          • Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_6)))))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 2
                • Then - Actions
                  • Sound - Play Killing_Spree01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 3
                • Then - Actions
                  • Sound - Play MegaKill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 4
                • Then - Actions
                  • Sound - Play monster_kill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 5
                • Then - Actions
                  • Sound - Play WhickedSick01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 6
                • Then - Actions
                  • Sound - Play Unstoppable01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 7
                • Then - Actions
                  • Sound - Play GodLike01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Greater than or equal to 8
                • Then - Actions
                  • Sound - Play HolyShit01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
                • Else - Actions
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Heroe_Player_7
        • Then - Actions
          • Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
          • Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_7)))))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 2
                • Then - Actions
                  • Sound - Play Killing_Spree01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 3
                • Then - Actions
                  • Sound - Play MegaKill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 4
                • Then - Actions
                  • Sound - Play monster_kill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 5
                • Then - Actions
                  • Sound - Play WhickedSick01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 6
                • Then - Actions
                  • Sound - Play Unstoppable01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 7
                • Then - Actions
                  • Sound - Play GodLike01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Greater than or equal to 8
                • Then - Actions
                  • Sound - Play HolyShit01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
                • Else - Actions
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Heroe_Player_8
        • Then - Actions
          • Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
          • Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_8)))))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 2
                • Then - Actions
                  • Sound - Play Killing_Spree01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 3
                • Then - Actions
                  • Sound - Play MegaKill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 4
                • Then - Actions
                  • Sound - Play monster_kill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 5
                • Then - Actions
                  • Sound - Play WhickedSick01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 6
                • Then - Actions
                  • Sound - Play Unstoppable01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 7
                • Then - Actions
                  • Sound - Play GodLike01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Greater than or equal to 8
                • Then - Actions
                  • Sound - Play HolyShit01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
                • Else - Actions
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Heroe_Player_9
        • Then - Actions
          • Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
          • Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_9)))))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 2
                • Then - Actions
                  • Sound - Play Killing_Spree01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 3
                • Then - Actions
                  • Sound - Play MegaKill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 4
                • Then - Actions
                  • Sound - Play monster_kill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 5
                • Then - Actions
                  • Sound - Play WhickedSick01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 6
                • Then - Actions
                  • Sound - Play Unstoppable01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 7
                • Then - Actions
                  • Sound - Play GodLike01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Greater than or equal to 8
                • Then - Actions
                  • Sound - Play HolyShit01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
                • Else - Actions
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dying unit) Equal to Heroe_Player_10
        • Then - Actions
          • Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
          • Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_10)))))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 2
                • Then - Actions
                  • Sound - Play Killing_Spree01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 3
                • Then - Actions
                  • Sound - Play MegaKill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 4
                • Then - Actions
                  • Sound - Play monster_kill01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 5
                • Then - Actions
                  • Sound - Play WhickedSick01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 6
                • Then - Actions
                  • Sound - Play Unstoppable01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Equal to 7
                • Then - Actions
                  • Sound - Play GodLike01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Cadena_De_Asesinatos[1] Greater than or equal to 8
                • Then - Actions
                  • Sound - Play HolyShit01 <gen>
                  • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
                • Else - Actions
            • Else - Actions
        • Else - Actions
    • Else - Actions


Well, thats the trigger, but not the only one, thats for player 1 only, i made 9 other triggers like this one and yes bored me but the result was succeful ...
 

JuiceBox

New Member
Reaction score
13
Well, sometimes i dont see a shortcut to create some triggers like my queen shield in my game, that activates and changes the item for another, in that i created 10 triggers, with 1 variable with 10 arrays, very boring to do, but this one is the largest trigger in my game, it actually works well, but can anybody say if there is a easier way to create this trigger and keep work the same? : If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Heroe_Player_6
Then - Actions
Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_6)))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 2
Then - Actions
Sound - Play Killing_Spree01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 3
Then - Actions
Sound - Play MegaKill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 4
Then - Actions
Sound - Play monster_kill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 5
Then - Actions
Sound - Play WhickedSick01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 6
Then - Actions
Sound - Play Unstoppable01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 7
Then - Actions
Sound - Play GodLike01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Greater than or equal to 8
Then - Actions
Sound - Play HolyShit01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
Else - Actions
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Heroe_Player_7
Then - Actions
Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_7)))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 2
Then - Actions
Sound - Play Killing_Spree01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 3
Then - Actions
Sound - Play MegaKill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 4
Then - Actions
Sound - Play monster_kill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 5
Then - Actions
Sound - Play WhickedSick01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 6
Then - Actions
Sound - Play Unstoppable01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 7
Then - Actions
Sound - Play GodLike01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Greater than or equal to 8
Then - Actions
Sound - Play HolyShit01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
Else - Actions
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Heroe_Player_8
Then - Actions
Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_8)))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 2
Then - Actions
Sound - Play Killing_Spree01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 3
Then - Actions
Sound - Play MegaKill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 4
Then - Actions
Sound - Play monster_kill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 5
Then - Actions
Sound - Play WhickedSick01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 6
Then - Actions
Sound - Play Unstoppable01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 7
Then - Actions
Sound - Play GodLike01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Greater than or equal to 8
Then - Actions
Sound - Play HolyShit01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
Else - Actions
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Heroe_Player_9
Then - Actions
Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_9)))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 2
Then - Actions
Sound - Play Killing_Spree01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 3
Then - Actions
Sound - Play MegaKill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 4
Then - Actions
Sound - Play monster_kill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 5
Then - Actions
Sound - Play WhickedSick01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 6
Then - Actions
Sound - Play Unstoppable01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 7
Then - Actions
Sound - Play GodLike01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Greater than or equal to 8
Then - Actions
Sound - Play HolyShit01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
Else - Actions
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Heroe_Player_10
Then - Actions
Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player_10)))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 2
Then - Actions
Sound - Play Killing_Spree01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 3
Then - Actions
Sound - Play MegaKill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 4
Then - Actions
Sound - Play monster_kill01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 5
Then - Actions
Sound - Play WhickedSick01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 6
Then - Actions
Sound - Play Unstoppable01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Equal to 7
Then - Actions
Sound - Play GodLike01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cadena_De_Asesinatos[1] Greater than or equal to 8
Then - Actions
Sound - Play HolyShit01 <gen>
Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
Else - Actions
Else - Actions
Else - Actions
Else - Actions


Well, thats the trigger, but not the only one, thats for player 1 only, i made 9 other triggers like this one and yes bored me but the result was succeful ...

Highlight your triggers then click the small letter "a" at the editing tools.
 

TheCrystal

New Member
Reaction score
36
Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)

Can be changed to Set Cadena_De_Asesinatos[(Player number of (Owner of (Triggering unit)))] = (Cadena_De_Asesinatos[(Player number of (Owner of (Triggering unit)))] + 1)



Trigger:
  • # If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Cadena_De_Asesinatos[1] Greater than or equal to 8
    • Then - Actions
      • Sound - Play HolyShit01 &lt;gen&gt;
      • Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
    • Else - Actions

These can all be stored into variables, then have an Integer A loop through the checks with their assigned numbers

If (Cadena_De_Asesinatos[(Player number of (Owner of (Triggering unit)))] == SoundRequirementInteger[IntegerA]
Then
Play Sound[IntegerA]
Display Message[IntegerA]


Edit: It should work, but just disable your working triggers for now in case when/if you try this it doesn't work.
 

Moridin

Snow Leopard
Reaction score
144
Try using a loop. That will shorten everything down a WHOLE LOT.

Here's the finished loop trigger:

You're going to have to initialise the loop and change the variables "Heror_Player_" into an Array instead of many individual variables.

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • * If - Conditions
      • o (Owner of (Killing unit)) Equal to Player 1 (Red)
    • * Then - Actions
      • For each (Integer A) from 6 to 10, do (Actions)
    • Loop - Actions
      • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • + If - Conditions
          • # (Dying unit) Equal to Heroe_Player[Integer A]
        • + Then - Actions
          • # Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
          • # Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player[Integer A])))))
          • # If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • * If - Conditions
            • * Then - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 2
                • + Then - Actions
                  • # Sound - Play Killing_Spree01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 3
                • + Then - Actions
                  • # Sound - Play MegaKill01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 4
                • + Then - Actions
                  • # Sound - Play monster_kill01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 5
                • + Then - Actions
                  • # Sound - Play WhickedSick01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 6
                • + Then - Actions
                  • # Sound - Play Unstoppable01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 7
                • + Then - Actions
                  • # Sound - Play GodLike01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Greater than or equal to 8
                • + Then - Actions
                  • # Sound - Play HolyShit01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
                • + Else - Actions
            • * Else - Actions
        • + Else - Actions
 

Moridin

Snow Leopard
Reaction score
144
Try using a loop. That will shorten everything down a WHOLE LOT.

Here's the finished loop trigger:

Note: The below trigger looks complicated. It is almost an EXACT copy of the beginning part of your trigger, with a loop inserted to make it run many times for each player instead of the huge wall of text you have.

Instructions -You're going to have to initialize the loop and change the variables "Heror_Player_" into an Array instead of many individual variables. For reference, look at the trigger below.

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • * If - Conditions
      • o (Owner of (Killing unit)) Equal to Player 1 (Red)
    • * Then - Actions
      • For each (Integer A) from 6 to 10, do (Actions)
    • Loop - Actions
      • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • + If - Conditions
          • # (Dying unit) Equal to Heroe_Player[Integer A]
        • + Then - Actions
          • # Set Cadena_De_Asesinatos[1] = (Cadena_De_Asesinatos[1] + 1)
          • # Quest - Display to (All players) the Quest Update message: ((Name of Heroe_Player_1) + ( + (Asesina a + ( + (Name of Heroe_Player[Integer A])))))
          • # If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • * If - Conditions
            • * Then - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 2
                • + Then - Actions
                  • # Sound - Play Killing_Spree01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Consigue una |c0080FF80Cadena de Muertes|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 3
                • + Then - Actions
                  • # Sound - Play MegaKill01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Se convierte en |c0000F4F4Mutilador|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 4
                • + Then - Actions
                  • # Sound - Play monster_kill01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es un |c00008080Monstruo|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 5
                • + Then - Actions
                  • # Sound - Play WhickedSick01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Ahora es |c00FEBA0EEnfermo|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 6
                • + Then - Actions
                  • # Sound - Play Unstoppable01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c005B5B5BNo se lo puede detener|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Equal to 7
                • + Then - Actions
                  • # Sound - Play GodLike01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + Contemplad, es como un |c00FF0000Dios|r))
                • + Else - Actions
              • o If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • + If - Conditions
                  • # Cadena_De_Asesinatos[1] Greater than or equal to 8
                • + Then - Actions
                  • # Sound - Play HolyShit01 &lt;gen&gt;
                  • # Quest - Display to (All players) the Quest Update message: ((Name of (Owner of Heroe_Player_1)) + ( + |c00CC00CCUna Locura|r |c00FFFF80Fuera de Si|r |c00FFCEE7Imparable|r))
                • + Else - Actions
            • * Else - Actions
        • + Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top