• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Duel System Problem

Status
Not open for further replies.
Level 9
Joined
Dec 26, 2010
Messages
475
Hello guys :D i need help.
I have a duel system and when it starts it works fine but when 7 seconds passed my hero automatically teleports at my base. even though my enemy is not dead. (sorry its too hard to explain :D)
Heres the triggers.

Tha Triggars!
Duel Timer.
  • Duel Timers
    • Events
      • Time - Elapsed game time is 10.00 seconds
    • Conditions
    • Actions
      • -------- Start the timer --------
      • Countdown Timer - Start DuelSystem_Timer as a One-shot timer that will expire in 35.00 seconds
      • -------- Create a window --------
      • Countdown Timer - Create a timer window for DuelSystem_Timer with title Duel In
      • Set DuelSystem_TimerWindow = (Last created timer window)
      • Countdown Timer - Show DuelSystem_TimerWindow
      • -------- Change color and transparency --------
      • Countdown Timer - Change the color of the title for (Last created timer window) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
Duel Start
  • Duel Start
    • Events
      • Time - DuelSystem_Timer expires
    • Conditions
    • Actions
      • -------- Setting the Arena --------
      • Set DuelSystem_Point_Arena = (Center of Arena <gen>)
      • -------- ========================================================== --------
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to DuelSystem_Point_Arena over 3.00 seconds
      • Unit - Pause all units
      • Sound - Play GameFound <gen>
      • -------- Destroying the timer window --------
      • Countdown Timer - Destroy DuelSystem_TimerWindow
      • -------- ========================================================== --------
      • -------- Setting the Units --------
      • Set DuelSystem_Unit[1] = (Random 1 units from (Units owned by (Random player from (All allies of Player 1 (Red))) matching (((Matching unit) is A Hero) Equal to True)))
      • Set DuelSystem_Unit[2] = (Random 1 units from (Units owned by (Random player from (All allies of Player 7 (Green))) matching (((Matching unit) is A Hero) Equal to True)))
      • -------- ========================================================== --------
      • -------- Setting the Duel Location --------
      • -------- The region where the two units will fight --------
      • Set DuelSystem_Point_Leak[1] = (Center of Arena Team 1 Teleport <gen>)
      • Set DuelSystem_Point_Leak[2] = (Center of Arena Team 2 Teleport <gen>)
      • -------- The region where the two units will be teleported when the duel is finished --------
      • Set DuelSystem_Point_Leak[3] = (Center of Hero Teleport When Pick T1 <gen>)
      • Set DuelSystem_Point_Leak[4] = (Center of Hero Teleport When Pick T2 <gen>)
      • -------- ========================================================== --------
      • -------- Pick the unit that will duel --------
      • Unit Group - Pick every unit in DuelSystem_Unit[2] and do (Actions)
        • Loop - Actions
          • -------- Be sure to check where i put the Duel Region --------
          • -------- Check if the unit is belongs to which team --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an ally of Player 7 (Green)) Equal to True
            • Then - Actions
              • Set DuelSystem_PickedUnit[0] = (Picked unit)
              • Unit Group - Add (Picked unit) to DuelSystem_Group[2]
              • Unit - Move (Picked unit) instantly to DuelSystem_Point_Leak[2]
            • Else - Actions
      • -------- Pick the unit that will Duel --------
      • Unit Group - Pick every unit in DuelSystem_Unit[1] and do (Actions)
        • Loop - Actions
          • -------- Be sure to check where i put the Duel Region --------
          • -------- Check if the unit is belongs to which team --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an ally of Player 1 (Red)) Equal to True
            • Then - Actions
              • Set DuelSystem_PickedUnit[1] = (Picked unit)
              • Unit Group - Add (Picked unit) to DuelSystem_Group[1]
              • Unit - Move (Picked unit) instantly to DuelSystem_Point_Leak[1]
            • Else - Actions
      • -------- ========================================================== --------
      • -------- Announcing the units --------
      • Game - Display to (All allies of Player 1 (Red)) the text: (PlayerName[(Player number of (Owner of DuelSystem_PickedUnit[0]))] + ((Name of DuelSystem_PickedUnit[0]) + ( Vs + (PlayerName[(Player number of (Owner of DuelSystem_PickedUnit[1]))] + (Name of DuelSystem_PickedUnit[1])))))
      • Game - Display to (All allies of Player 7 (Green)) the text: (PlayerName[(Player number of (Owner of DuelSystem_PickedUnit[0]))] + ((Name of DuelSystem_PickedUnit[0]) + ( Vs + (PlayerName[(Player number of (Owner of DuelSystem_PickedUnit[1]))] + (Name of DuelSystem_PickedUnit[1])))))
      • -------- ========================================================== --------
      • Wait 2.00 seconds
      • Game - Display to (All allies of Player 1 (Red)) the text: 3 ...
      • Game - Display to (All allies of Player 7 (Green)) the text: 3 ...
      • Sound - Play BattleNetTick <gen>
      • Wait 1.00 seconds
      • Game - Display to (All allies of Player 1 (Red)) the text: 2 ...
      • Game - Display to (All allies of Player 7 (Green)) the text: 2 ...
      • Sound - Play BattleNetTick <gen>
      • Wait 1.00 seconds
      • Game - Display to (All allies of Player 1 (Red)) the text: 1 ...
      • Game - Display to (All allies of Player 7 (Green)) the text: 1 ...
      • Sound - Play BattleNetTick <gen>
      • Wait 1.00 seconds
      • -------- Orders the two units to attack each other. --------
      • Unit Group - Pick every unit in DuelSystem_Unit[1] and do (Actions)
        • Loop - Actions
          • Unit - Unpause (Picked unit)
          • Unit - Order (Picked unit) to Attack-Move To DuelSystem_Point_Leak[2]
      • Unit Group - Pick every unit in DuelSystem_Unit[2] and do (Actions)
        • Loop - Actions
          • Unit - Unpause (Picked unit)
          • Unit - Order (Picked unit) to Attack-Move To DuelSystem_Point_Leak[1]
      • -------- ========================================================== --------
      • Wait 2.00 seconds
      • Trigger - Turn on Duel End <gen>
      • -------- Removing Leaks --------
      • Custom script: call RemoveLocation( udg_DuelSystem_Point_Leak[1] )
      • Custom script: call RemoveLocation( udg_DuelSystem_Point_Leak[2] )
      • Custom script: call DestroyGroup( udg_DuelSystem_Unit[1] )
      • Custom script: call DestroyGroup( udg_DuelSystem_Unit[2] )
      • Custom script: call RemoveLocation(udg_DuelSystem_Point_Arena)
Duel Remove
  • Duel Remove
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • ((Dying unit) is in DuelSystem_Group[1]) Equal to True
          • ((Dying unit) is in DuelSystem_Group[2]) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
        • Then - Actions
          • Unit Group - Remove (Dying unit) from DuelSystem_Group[1]
        • Else - Actions
          • Unit Group - Remove (Dying unit) from DuelSystem_Group[2]
Duel End
  • Duel End
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (DuelSystem_Group[2] is empty) Equal to True
        • Then - Actions
          • Quest - Display to (All players) the Quest Completed message: Team 1 wins the due...
          • Wait 2.00 seconds
          • Unit Group - Pick every unit in DuelSystem_Group[1] and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to DuelSystem_Point_Leak[3]
          • Custom script: call RemoveLocation(udg_DuelSystem_Point_Leak[3])
          • Unit Group - Remove all units from DuelSystem_Group[1]
          • Unit Group - Remove all units from DuelSystem_Group[2]
          • -------- countdown timer can be changed --------
          • Countdown Timer - Start DuelSystem_Timer as a One-shot timer that will expire in 300.00 seconds
          • Countdown Timer - Create a timer window for DuelSystem_Timer with title Duel In
          • Set DuelSystem_TimerWindow = (Last created timer window)
          • Countdown Timer - Show DuelSystem_TimerWindow
          • Countdown Timer - Change the color of the title for (Last created timer window) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
          • Unit - Unpause all units
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (DuelSystem_Group[1] is empty) Equal to True
            • Then - Actions
              • Quest - Display to (All players) the Quest Completed message: Team 2 wins the due...
              • Wait 2.00 seconds
              • Unit Group - Pick every unit in DuelSystem_Group[2] and do (Actions)
                • Loop - Actions
                  • Unit - Move (Picked unit) instantly to DuelSystem_Point_Leak[4]
              • Custom script: call RemoveLocation(udg_DuelSystem_Point_Leak[4])
              • Unit Group - Remove all units from DuelSystem_Group[1]
              • Unit Group - Remove all units from DuelSystem_Group[2]
              • -------- countdown timer can be changed --------
              • Countdown Timer - Start DuelSystem_Timer as a One-shot timer that will expire in 300.00 seconds
              • Countdown Timer - Create a timer window for DuelSystem_Timer with title Duel In
              • Set DuelSystem_TimerWindow = DuelSystem_TimerWindow
              • Countdown Timer - Show DuelSystem_TimerWindow
              • Countdown Timer - Change the color of the title for (Last created timer window) to (0.00%, 100.00%, 0.00%) with 0.00% transparency
              • Unit - Unpause all units
              • Trigger - Turn off (This trigger)
            • Else - Actions
              • Do nothing
 
i have a duel command in my map. it can help you but my triggers have some leaks ^^
  • Duel
    • Evénements
      • Joueur - Joueur 1 (Rouge) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 2 (Bleu) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 3 (Cyan) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 4 (Pourpre) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 5 (Jaune) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 6 (Orange) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 7 (Vert) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 8 (Rose) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 9 (gris) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 10 (Bleu clair) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 11 (Vert foncé) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 12 (Marron) types a chat message containing -duel as Une sous-chaîne
    • Conditions
      • Duel_Oui_Non_Boolean Egal Ã* TRUE
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si - Conditions
          • (-duel + (Name of Joueur 1 (Rouge))) Egal Ã* (Entered chat string)
          • (Triggering player) Différent de Joueur 1 (Rouge)
        • Alors - Actions
          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
            • Boucle - Actions
              • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
              • Unité - Pause (Picked unit)
              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 1 (Rouge)))) and do (Actions)
            • Boucle - Actions
              • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
              • Unité - Pause (Picked unit)
              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
          • Set Duel_Oui_Non_Boolean = FALSE
          • Joueur - Make (Triggering player) treat Joueur 1 (Rouge) as an Ennemi
          • Joueur - Make Joueur 1 (Rouge) treat (Triggering player) as an Ennemi
          • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 1 (Rouge)) + !)))
        • Sinon - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si - Conditions
              • (-duel + (Name of Joueur 2 (Bleu))) Egal Ã* (Entered chat string)
              • (Triggering player) Différent de Joueur 2 (Bleu)
            • Alors - Actions
              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                • Boucle - Actions
                  • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                  • Unité - Pause (Picked unit)
                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 2 (Bleu)))) and do (Actions)
                • Boucle - Actions
                  • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                  • Unité - Pause (Picked unit)
                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
              • Set Duel_Oui_Non_Boolean = FALSE
              • Joueur - Make (Triggering player) treat Joueur 2 (Bleu) as an Ennemi
              • Joueur - Make Joueur 2 (Bleu) treat (Triggering player) as an Ennemi
              • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 2 (Bleu)) + !)))
            • Sinon - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • Si - Conditions
                  • (-duel + (Name of Joueur 3 (Cyan))) Egal Ã* (Entered chat string)
                  • (Triggering player) Différent de Joueur 3 (Cyan)
                • Alors - Actions
                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                    • Boucle - Actions
                      • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                      • Unité - Pause (Picked unit)
                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 3 (Cyan)))) and do (Actions)
                    • Boucle - Actions
                      • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                      • Unité - Pause (Picked unit)
                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                  • Set Duel_Oui_Non_Boolean = FALSE
                  • Joueur - Make (Triggering player) treat Joueur 3 (Cyan) as an Ennemi
                  • Joueur - Make Joueur 3 (Cyan) treat (Triggering player) as an Ennemi
                  • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 3 (Cyan)) + !)))
                • Sinon - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • Si - Conditions
                      • (-duel + (Name of Joueur 4 (Pourpre))) Egal Ã* (Entered chat string)
                      • (Triggering player) Différent de Joueur 4 (Pourpre)
                    • Alors - Actions
                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                        • Boucle - Actions
                          • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                          • Unité - Pause (Picked unit)
                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 4 (Pourpre)))) and do (Actions)
                        • Boucle - Actions
                          • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                          • Unité - Pause (Picked unit)
                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                      • Set Duel_Oui_Non_Boolean = FALSE
                      • Joueur - Make (Triggering player) treat Joueur 4 (Pourpre) as an Ennemi
                      • Joueur - Make Joueur 4 (Pourpre) treat (Triggering player) as an Ennemi
                      • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 4 (Pourpre)) + !)))
                    • Sinon - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • Si - Conditions
                          • (-duel + (Name of Joueur 5 (Jaune))) Egal Ã* (Entered chat string)
                          • (Triggering player) Différent de Joueur 5 (Jaune)
                        • Alors - Actions
                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                            • Boucle - Actions
                              • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                              • Unité - Pause (Picked unit)
                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 5 (Jaune)))) and do (Actions)
                            • Boucle - Actions
                              • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                              • Unité - Pause (Picked unit)
                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                          • Set Duel_Oui_Non_Boolean = FALSE
                          • Joueur - Make (Triggering player) treat Joueur 5 (Jaune) as an Ennemi
                          • Joueur - Make Joueur 5 (Jaune) treat (Triggering player) as an Ennemi
                          • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 5 (Jaune)) + !)))
                        • Sinon - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • Si - Conditions
                              • (-duel + (Name of Joueur 6 (Orange))) Egal Ã* (Entered chat string)
                              • (Triggering player) Différent de Joueur 6 (Orange)
                            • Alors - Actions
                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                • Boucle - Actions
                                  • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                  • Unité - Pause (Picked unit)
                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 6 (Orange)))) and do (Actions)
                                • Boucle - Actions
                                  • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                  • Unité - Pause (Picked unit)
                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                              • Set Duel_Oui_Non_Boolean = FALSE
                              • Joueur - Make (Triggering player) treat Joueur 6 (Orange) as an Ennemi
                              • Joueur - Make Joueur 6 (Orange) treat (Triggering player) as an Ennemi
                              • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 6 (Orange)) + !)))
                            • Sinon - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • Si - Conditions
                                  • (-duel + (Name of Joueur 7 (Vert))) Egal Ã* (Entered chat string)
                                  • (Triggering player) Différent de Joueur 7 (Vert)
                                • Alors - Actions
                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                    • Boucle - Actions
                                      • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                      • Unité - Pause (Picked unit)
                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 7 (Vert)))) and do (Actions)
                                    • Boucle - Actions
                                      • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                      • Unité - Pause (Picked unit)
                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                  • Set Duel_Oui_Non_Boolean = FALSE
                                  • Joueur - Make (Triggering player) treat Joueur 7 (Vert) as an Ennemi
                                  • Joueur - Make Joueur 7 (Vert) treat (Triggering player) as an Ennemi
                                  • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 7 (Vert)) + !)))
                                • Sinon - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • Si - Conditions
                                      • (-duel + (Name of Joueur 8 (Rose))) Egal Ã* (Entered chat string)
                                      • (Triggering player) Différent de Joueur 8 (Rose)
                                    • Alors - Actions
                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                        • Boucle - Actions
                                          • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                          • Unité - Pause (Picked unit)
                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 8 (Rose)))) and do (Actions)
                                        • Boucle - Actions
                                          • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                          • Unité - Pause (Picked unit)
                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                      • Set Duel_Oui_Non_Boolean = FALSE
                                      • Joueur - Make (Triggering player) treat Joueur 8 (Rose) as an Ennemi
                                      • Joueur - Make Joueur 8 (Rose) treat (Triggering player) as an Ennemi
                                      • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 8 (Rose)) + !)))
                                    • Sinon - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • Si - Conditions
                                          • (-duel + (Name of Joueur 9 (gris))) Egal Ã* (Entered chat string)
                                          • (Triggering player) Différent de Joueur 9 (gris)
                                        • Alors - Actions
                                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                            • Boucle - Actions
                                              • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                              • Unité - Pause (Picked unit)
                                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 9 (gris)))) and do (Actions)
                                            • Boucle - Actions
                                              • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                              • Unité - Pause (Picked unit)
                                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                          • Set Duel_Oui_Non_Boolean = FALSE
                                          • Joueur - Make (Triggering player) treat Joueur 9 (gris) as an Ennemi
                                          • Joueur - Make Joueur 9 (gris) treat (Triggering player) as an Ennemi
                                          • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 9 (gris)) + !)))
                                        • Sinon - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • Si - Conditions
                                              • (-duel + (Name of Joueur 10 (Bleu clair))) Egal Ã* (Entered chat string)
                                              • (Triggering player) Différent de Joueur 10 (Bleu clair)
                                            • Alors - Actions
                                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                                • Boucle - Actions
                                                  • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                                  • Unité - Pause (Picked unit)
                                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 10 (Bleu clair)))) and do (Actions)
                                                • Boucle - Actions
                                                  • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                                  • Unité - Pause (Picked unit)
                                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                              • Set Duel_Oui_Non_Boolean = FALSE
                                              • Joueur - Make (Triggering player) treat Joueur 10 (Bleu clair) as an Ennemi
                                              • Joueur - Make Joueur 10 (Bleu clair) treat (Triggering player) as an Ennemi
                                              • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 10 (Bleu clair)) + !)))
                                            • Sinon - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • Si - Conditions
                                                  • (-duel + (Name of Joueur 11 (Vert foncé))) Egal Ã* (Entered chat string)
                                                  • (Triggering player) Différent de Joueur 11 (Vert foncé)
                                                • Alors - Actions
                                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                                    • Boucle - Actions
                                                      • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                                      • Unité - Pause (Picked unit)
                                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 11 (Vert foncé)))) and do (Actions)
                                                    • Boucle - Actions
                                                      • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                                      • Unité - Pause (Picked unit)
                                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                  • Set Duel_Oui_Non_Boolean = FALSE
                                                  • Joueur - Make (Triggering player) treat Joueur 11 (Vert foncé) as an Ennemi
                                                  • Joueur - Make Joueur 11 (Vert foncé) treat (Triggering player) as an Ennemi
                                                  • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 11 (Vert foncé)) + !)))
                                                • Sinon - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • Si - Conditions
                                                      • (-duel + (Name of Joueur 12 (Marron))) Egal Ã* (Entered chat string)
                                                      • (Triggering player) Différent de Joueur 12 (Marron)
                                                    • Alors - Actions
                                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                                        • Boucle - Actions
                                                          • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                                          • Unité - Pause (Picked unit)
                                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 12 (Marron)))) and do (Actions)
                                                        • Boucle - Actions
                                                          • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                                          • Unité - Pause (Picked unit)
                                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                      • Set Duel_Oui_Non_Boolean = FALSE
                                                      • Joueur - Make (Triggering player) treat Joueur 12 (Marron) as an Ennemi
                                                      • Joueur - Make Joueur 12 (Marron) treat (Triggering player) as an Ennemi
                                                      • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 12 (Marron)) + !)))
                                                    • Sinon - Actions
      • Wait 5.00 seconds
      • Unité - Reprendre all units
      • Déclencheur - Turn on DuelMort <gen>
  • DuelMort
    • Evénements
      • Unité - A unit Meurt
    • Conditions
      • ((Dying unit) is Un héros) Egal Ã* TRUE
      • (duel arena <gen> contains (Dying unit)) Egal Ã* TRUE
    • Actions
      • Partie - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( has kill + ((Name of (Owner of (Dying unit))) + in the duel arena for gain 10% of the gold and 10% of the kills of his adversary !)))
      • Joueur - Add (((Owner of (Dying unit)) Or actuel) / 10) to (Owner of (Killing unit)) Or actuel
      • Joueur - Add (((Owner of (Dying unit)) Or actuel) / -10) to (Owner of (Dying unit)) Or actuel
      • Set Kill[(Player number of (Owner of (Killing unit)))] = ((Kill[(Player number of (Owner of (Dying unit)))] / 10) + Kill[(Player number of (Owner of (Killing unit)))])
      • Panneau de commandes - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Kill[(Player number of (Owner of (Killing unit)))]
      • Set Kill[(Player number of (Owner of (Dying unit)))] = ((Kill[(Player number of (Owner of (Dying unit)))] x 9) / 10)
      • Panneau de commandes - Change the value for (Owner of (Dying unit)) in (Last created leaderboard) to Kill[(Player number of (Owner of (Dying unit)))]
      • Panneau de commandes - Sort (Last created leaderboard) by Valeur in Descendant order
      • Joueur - Make (Owner of (Dying unit)) treat (Owner of (Killing unit)) as an Allié avec vision partagée
      • Joueur - Make (Owner of (Killing unit)) treat (Owner of (Dying unit)) as an Allié avec vision partagée
      • Groupe unité - Pick every unit in (Units in duel arena <gen>) and do (Actions)
        • Boucle - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si - Conditions
              • ((Picked unit) is Un héros) Egal Ã* TRUE
            • Alors - Actions
              • Unité - Move (Picked unit) instantly to (Center of respawn <gen>)
            • Sinon - Actions
      • Wait 60.00 seconds
      • Set Duel_Oui_Non_Boolean = TRUE
      • Déclencheur - Turn off (This trigger)
 
Level 9
Joined
Dec 26, 2010
Messages
475
i have a duel command in my map. it can help you but my triggers have some leaks ^^
  • Duel
    • Evénements
      • Joueur - Joueur 1 (Rouge) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 2 (Bleu) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 3 (Cyan) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 4 (Pourpre) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 5 (Jaune) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 6 (Orange) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 7 (Vert) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 8 (Rose) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 9 (gris) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 10 (Bleu clair) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 11 (Vert foncé) types a chat message containing -duel as Une sous-chaîne
      • Joueur - Joueur 12 (Marron) types a chat message containing -duel as Une sous-chaîne
    • Conditions
      • Duel_Oui_Non_Boolean Egal Ã* TRUE
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si - Conditions
          • (-duel + (Name of Joueur 1 (Rouge))) Egal Ã* (Entered chat string)
          • (Triggering player) Différent de Joueur 1 (Rouge)
        • Alors - Actions
          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
            • Boucle - Actions
              • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
              • Unité - Pause (Picked unit)
              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 1 (Rouge)))) and do (Actions)
            • Boucle - Actions
              • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
              • Unité - Pause (Picked unit)
              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
          • Set Duel_Oui_Non_Boolean = FALSE
          • Joueur - Make (Triggering player) treat Joueur 1 (Rouge) as an Ennemi
          • Joueur - Make Joueur 1 (Rouge) treat (Triggering player) as an Ennemi
          • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 1 (Rouge)) + !)))
        • Sinon - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si - Conditions
              • (-duel + (Name of Joueur 2 (Bleu))) Egal Ã* (Entered chat string)
              • (Triggering player) Différent de Joueur 2 (Bleu)
            • Alors - Actions
              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                • Boucle - Actions
                  • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                  • Unité - Pause (Picked unit)
                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 2 (Bleu)))) and do (Actions)
                • Boucle - Actions
                  • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                  • Unité - Pause (Picked unit)
                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
              • Set Duel_Oui_Non_Boolean = FALSE
              • Joueur - Make (Triggering player) treat Joueur 2 (Bleu) as an Ennemi
              • Joueur - Make Joueur 2 (Bleu) treat (Triggering player) as an Ennemi
              • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 2 (Bleu)) + !)))
            • Sinon - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • Si - Conditions
                  • (-duel + (Name of Joueur 3 (Cyan))) Egal Ã* (Entered chat string)
                  • (Triggering player) Différent de Joueur 3 (Cyan)
                • Alors - Actions
                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                    • Boucle - Actions
                      • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                      • Unité - Pause (Picked unit)
                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 3 (Cyan)))) and do (Actions)
                    • Boucle - Actions
                      • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                      • Unité - Pause (Picked unit)
                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                  • Set Duel_Oui_Non_Boolean = FALSE
                  • Joueur - Make (Triggering player) treat Joueur 3 (Cyan) as an Ennemi
                  • Joueur - Make Joueur 3 (Cyan) treat (Triggering player) as an Ennemi
                  • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 3 (Cyan)) + !)))
                • Sinon - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • Si - Conditions
                      • (-duel + (Name of Joueur 4 (Pourpre))) Egal Ã* (Entered chat string)
                      • (Triggering player) Différent de Joueur 4 (Pourpre)
                    • Alors - Actions
                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                        • Boucle - Actions
                          • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                          • Unité - Pause (Picked unit)
                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 4 (Pourpre)))) and do (Actions)
                        • Boucle - Actions
                          • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                          • Unité - Pause (Picked unit)
                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                      • Set Duel_Oui_Non_Boolean = FALSE
                      • Joueur - Make (Triggering player) treat Joueur 4 (Pourpre) as an Ennemi
                      • Joueur - Make Joueur 4 (Pourpre) treat (Triggering player) as an Ennemi
                      • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 4 (Pourpre)) + !)))
                    • Sinon - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • Si - Conditions
                          • (-duel + (Name of Joueur 5 (Jaune))) Egal Ã* (Entered chat string)
                          • (Triggering player) Différent de Joueur 5 (Jaune)
                        • Alors - Actions
                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                            • Boucle - Actions
                              • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                              • Unité - Pause (Picked unit)
                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 5 (Jaune)))) and do (Actions)
                            • Boucle - Actions
                              • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                              • Unité - Pause (Picked unit)
                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                          • Set Duel_Oui_Non_Boolean = FALSE
                          • Joueur - Make (Triggering player) treat Joueur 5 (Jaune) as an Ennemi
                          • Joueur - Make Joueur 5 (Jaune) treat (Triggering player) as an Ennemi
                          • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 5 (Jaune)) + !)))
                        • Sinon - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • Si - Conditions
                              • (-duel + (Name of Joueur 6 (Orange))) Egal Ã* (Entered chat string)
                              • (Triggering player) Différent de Joueur 6 (Orange)
                            • Alors - Actions
                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                • Boucle - Actions
                                  • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                  • Unité - Pause (Picked unit)
                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 6 (Orange)))) and do (Actions)
                                • Boucle - Actions
                                  • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                  • Unité - Pause (Picked unit)
                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                              • Set Duel_Oui_Non_Boolean = FALSE
                              • Joueur - Make (Triggering player) treat Joueur 6 (Orange) as an Ennemi
                              • Joueur - Make Joueur 6 (Orange) treat (Triggering player) as an Ennemi
                              • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 6 (Orange)) + !)))
                            • Sinon - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • Si - Conditions
                                  • (-duel + (Name of Joueur 7 (Vert))) Egal Ã* (Entered chat string)
                                  • (Triggering player) Différent de Joueur 7 (Vert)
                                • Alors - Actions
                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                    • Boucle - Actions
                                      • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                      • Unité - Pause (Picked unit)
                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 7 (Vert)))) and do (Actions)
                                    • Boucle - Actions
                                      • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                      • Unité - Pause (Picked unit)
                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                  • Set Duel_Oui_Non_Boolean = FALSE
                                  • Joueur - Make (Triggering player) treat Joueur 7 (Vert) as an Ennemi
                                  • Joueur - Make Joueur 7 (Vert) treat (Triggering player) as an Ennemi
                                  • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 7 (Vert)) + !)))
                                • Sinon - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • Si - Conditions
                                      • (-duel + (Name of Joueur 8 (Rose))) Egal Ã* (Entered chat string)
                                      • (Triggering player) Différent de Joueur 8 (Rose)
                                    • Alors - Actions
                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                        • Boucle - Actions
                                          • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                          • Unité - Pause (Picked unit)
                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 8 (Rose)))) and do (Actions)
                                        • Boucle - Actions
                                          • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                          • Unité - Pause (Picked unit)
                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                      • Set Duel_Oui_Non_Boolean = FALSE
                                      • Joueur - Make (Triggering player) treat Joueur 8 (Rose) as an Ennemi
                                      • Joueur - Make Joueur 8 (Rose) treat (Triggering player) as an Ennemi
                                      • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 8 (Rose)) + !)))
                                    • Sinon - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • Si - Conditions
                                          • (-duel + (Name of Joueur 9 (gris))) Egal Ã* (Entered chat string)
                                          • (Triggering player) Différent de Joueur 9 (gris)
                                        • Alors - Actions
                                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                            • Boucle - Actions
                                              • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                              • Unité - Pause (Picked unit)
                                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                          • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 9 (gris)))) and do (Actions)
                                            • Boucle - Actions
                                              • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                              • Unité - Pause (Picked unit)
                                              • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                              • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                          • Set Duel_Oui_Non_Boolean = FALSE
                                          • Joueur - Make (Triggering player) treat Joueur 9 (gris) as an Ennemi
                                          • Joueur - Make Joueur 9 (gris) treat (Triggering player) as an Ennemi
                                          • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 9 (gris)) + !)))
                                        • Sinon - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • Si - Conditions
                                              • (-duel + (Name of Joueur 10 (Bleu clair))) Egal Ã* (Entered chat string)
                                              • (Triggering player) Différent de Joueur 10 (Bleu clair)
                                            • Alors - Actions
                                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                                • Boucle - Actions
                                                  • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                                  • Unité - Pause (Picked unit)
                                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                              • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 10 (Bleu clair)))) and do (Actions)
                                                • Boucle - Actions
                                                  • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                                  • Unité - Pause (Picked unit)
                                                  • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                  • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                              • Set Duel_Oui_Non_Boolean = FALSE
                                              • Joueur - Make (Triggering player) treat Joueur 10 (Bleu clair) as an Ennemi
                                              • Joueur - Make Joueur 10 (Bleu clair) treat (Triggering player) as an Ennemi
                                              • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 10 (Bleu clair)) + !)))
                                            • Sinon - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • Si - Conditions
                                                  • (-duel + (Name of Joueur 11 (Vert foncé))) Egal Ã* (Entered chat string)
                                                  • (Triggering player) Différent de Joueur 11 (Vert foncé)
                                                • Alors - Actions
                                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                                    • Boucle - Actions
                                                      • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                                      • Unité - Pause (Picked unit)
                                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                  • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 11 (Vert foncé)))) and do (Actions)
                                                    • Boucle - Actions
                                                      • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                                      • Unité - Pause (Picked unit)
                                                      • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                      • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                  • Set Duel_Oui_Non_Boolean = FALSE
                                                  • Joueur - Make (Triggering player) treat Joueur 11 (Vert foncé) as an Ennemi
                                                  • Joueur - Make Joueur 11 (Vert foncé) treat (Triggering player) as an Ennemi
                                                  • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 11 (Vert foncé)) + !)))
                                                • Sinon - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • Si - Conditions
                                                      • (-duel + (Name of Joueur 12 (Marron))) Egal Ã* (Entered chat string)
                                                      • (Triggering player) Différent de Joueur 12 (Marron)
                                                    • Alors - Actions
                                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* (Triggering player)))) and do (Actions)
                                                        • Boucle - Actions
                                                          • Unité - Move (Picked unit) instantly to (Center of aggresseur <gen>)
                                                          • Unité - Pause (Picked unit)
                                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                      • Groupe unité - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is Un héros) Egal Ã* TRUE) and ((Owner of (Matching unit)) Egal Ã* Joueur 12 (Marron)))) and do (Actions)
                                                        • Boucle - Actions
                                                          • Unité - Move (Picked unit) instantly to (Center of agresse <gen>)
                                                          • Unité - Pause (Picked unit)
                                                          • Caméra - Pan camera for (Owner of (Picked unit)) to (Position of (Picked unit)) over 1.00 seconds
                                                          • Sélection - Select (Picked unit) for (Owner of (Picked unit))
                                                      • Set Duel_Oui_Non_Boolean = FALSE
                                                      • Joueur - Make (Triggering player) treat Joueur 12 (Marron) as an Ennemi
                                                      • Joueur - Make Joueur 12 (Marron) treat (Triggering player) as an Ennemi
                                                      • Partie - Display to (All players) the text: ((Name of (Triggering player)) + ( want make a duel VS + ((Name of Joueur 12 (Marron)) + !)))
                                                    • Sinon - Actions
      • Wait 5.00 seconds
      • Unité - Reprendre all units
      • Déclencheur - Turn on DuelMort <gen>
  • DuelMort
    • Evénements
      • Unité - A unit Meurt
    • Conditions
      • ((Dying unit) is Un héros) Egal Ã* TRUE
      • (duel arena <gen> contains (Dying unit)) Egal Ã* TRUE
    • Actions
      • Partie - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( has kill + ((Name of (Owner of (Dying unit))) + in the duel arena for gain 10% of the gold and 10% of the kills of his adversary !)))
      • Joueur - Add (((Owner of (Dying unit)) Or actuel) / 10) to (Owner of (Killing unit)) Or actuel
      • Joueur - Add (((Owner of (Dying unit)) Or actuel) / -10) to (Owner of (Dying unit)) Or actuel
      • Set Kill[(Player number of (Owner of (Killing unit)))] = ((Kill[(Player number of (Owner of (Dying unit)))] / 10) + Kill[(Player number of (Owner of (Killing unit)))])
      • Panneau de commandes - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Kill[(Player number of (Owner of (Killing unit)))]
      • Set Kill[(Player number of (Owner of (Dying unit)))] = ((Kill[(Player number of (Owner of (Dying unit)))] x 9) / 10)
      • Panneau de commandes - Change the value for (Owner of (Dying unit)) in (Last created leaderboard) to Kill[(Player number of (Owner of (Dying unit)))]
      • Panneau de commandes - Sort (Last created leaderboard) by Valeur in Descendant order
      • Joueur - Make (Owner of (Dying unit)) treat (Owner of (Killing unit)) as an Allié avec vision partagée
      • Joueur - Make (Owner of (Killing unit)) treat (Owner of (Dying unit)) as an Allié avec vision partagée
      • Groupe unité - Pick every unit in (Units in duel arena <gen>) and do (Actions)
        • Boucle - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si - Conditions
              • ((Picked unit) is Un héros) Egal Ã* TRUE
            • Alors - Actions
              • Unité - Move (Picked unit) instantly to (Center of respawn <gen>)
            • Sinon - Actions
      • Wait 60.00 seconds
      • Set Duel_Oui_Non_Boolean = TRUE
      • Déclencheur - Turn off (This trigger)

i cant understand it! :goblin_cry: lol :))
 
it's long but for each player, the if then else is same except the player... but my command it's when a player type -duel xxx ( name of player ), his heroes and xxx'heroes are teleport in an arena. The variable is a boolean. It's for not have 2duels in the same time^^ When a guy dead in the arena, his heroes are reteleported in the normal arena ( respawn point ) and the heroes of the winner too...
After the name of the second trigger in english is DuelDeath. And sorry because my editor is in french and not in eglish. It's not your fault... When you see the triggers like this, it's sure, it's hard ^^
A unit meurt --> a unit dies
egal --> egual
different --> different
Joueur X --> Player X
Actions --> actions
Evenements --> evenements ( i don't know ^^ )
Conditions --> conditions
Si --> if
alors --> then
sinon --> else
 
Level 9
Joined
Dec 26, 2010
Messages
475
it's long but for each player, the if then else is same except the player... but my command it's when a player type -duel xxx ( name of player ), his heroes and xxx'heroes are teleport in an arena. The variable is a boolean. It's for not have 2duels in the same time^^ When a guy dead in the arena, his heroes are reteleported in the normal arena ( respawn point ) and the heroes of the winner too...
After the name of the second trigger in english is DuelDeath. And sorry because my editor is in french and not in eglish. It's not your fault... When you see the triggers like this, it's sure, it's hard ^^
A unit meurt --> a unit dies
egal --> egual
different --> different
Joueur X --> Player X
Actions --> actions
Evenements --> evenements ( i don't know ^^ )
Conditions --> conditions
Si --> if
alors --> then
sinon --> else

ah. thanks for the help :D but i want a automatic duel system not by typing ^^ +rep :D
 
Level 9
Joined
Jun 7, 2008
Messages
440
Its because of your final trigger. The last one only has two options win or lose. If it isnt this one. Then the "else" fires. Either make it through a new "if/then/else"

You coulda also use a timer. Set it so that after a certain amount of time. Though this will not work if you want the duel to keep going until there is a winner. Also, remove "Do Nothing". Else can be left blank.
EDIT: Spaces arent Working. I will use "Do Nothing" to separate/
  • Events
    • Every 5 seconds of game time
  • Conditions
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (DuelSystem_Group[2] is empty) Equal to True
    • Then - Actions
      • Quest - Display to (All players) the Quest Completed message: Team 1 wins the due...
      • Wait 2.00 seconds
      • Unit Group - Pick every unit in DuelSystem_Group[1] and do (Actions)
      • Loop - Actions
        • Unit - Move (Picked unit) instantly to DuelSystem_Point_Leak[3]
      • Custom script: call RemoveLocation(udg_DuelSystem_Point_Leak[3])
      • Unit Group - Remove all units from DuelSystem_Group[1]
      • Unit Group - Remove all units from DuelSystem_Group[2]
    • -------- countdown timer can be changed --------
      • Countdown Timer - Start DuelSystem_Timer as a One-shot timer that will expire in 300.00 seconds
      • Countdown Timer - Create a timer window for DuelSystem_Timer with title Duel In
      • Set DuelSystem_TimerWindow = (Last created timer window)
      • Countdown Timer - Show DuelSystem_TimerWindow
      • Countdown Timer - Change the color of the title for (Last created timer window) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
      • Unit - Unpause all units
      • Trigger - Turn off (This trigger)
      • Else - Actions
      • Do Nothing
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (DuelSystem_Group[1] is empty) Equal to True
    • Then - Actions
      • Quest - Display to (All players) the Quest Completed message: Team 2 wins the due...
      • Wait 2.00 seconds
      • Unit Group - Pick every unit in DuelSystem_Group[2] and do (Actions)
      • Loop - Actions
        • Unit - Move (Picked unit) instantly to DuelSystem_Point_Leak[4]
      • Custom script: call RemoveLocation(udg_DuelSystem_Point_Leak[4])
      • Unit Group - Remove all units from DuelSystem_Group[1]
      • Unit Group - Remove all units from DuelSystem_Group[2]
    • -------- countdown timer can be changed --------
      • Countdown Timer - Start DuelSystem_Timer as a One-shot timer that will expire in 300.00 seconds
      • Countdown Timer - Create a timer window for DuelSystem_Timer with title Duel In
      • Set DuelSystem_TimerWindow = DuelSystem_TimerWindow
      • Countdown Timer - Show DuelSystem_TimerWindow
      • Countdown Timer - Change the color of the title for (Last created timer window) to (0.00%, 100.00%, 0.00%) with 0.00% transparency
      • Unit - Unpause all units
      • Trigger - Turn off (This trigger)
    • Else - Actions
      • Do Nothing
That should work. If it doesnt. Ill work with the trigger to find it a little more. I am pressed for time atm
 
Level 16
Joined
Jul 21, 2010
Messages
923
Hey I did this, but it was not working so well for me.

The timer and all works. But once I came down to making Duel Start I had troubles
making it. I am not strong with world editor anymore.

So I was wondering if you could make it for me on a blank map. This would mean a lot to me if you could do this for me.

I will give you Rep+ Credits to my current map.
 
Status
Not open for further replies.
Top