hard problem with sound trigger

LoveTD's

New Member
Reaction score
34
hi all :)

I'm having a bit of a problem... I am making a double kill system where you hear sounds when you make for example a double kill...

The problem is that when a player kills a few guys at the same time you hear all the sounds playing through each other :(

I've tryed different things to make it work but it didn't help...
Here is my trigger:

Trigger:
  • Some kind of killing trigger
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) is an ally of Player 12 (Brown)) Equal to True
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Wait for Spree_Sounds[1] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[2] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[3] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[4] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[5] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[6] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[7] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[8] to be 0.00 seconds from finished playing
      • Wait for Spree_Sounds[9] to be 0.00 seconds from finished playing
      • Set Player_number_of_owner_of_k_u = (Player number of (Owner of (Killing unit)))
      • Set spree_integer[Player_number_of_owner_of_k_u] = (spree_integer[Player_number_of_owner_of_k_u] + 1)
      • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • spree_integer[Player_number_of_owner_of_k_u] Equal to 2
        • Then - Actions
          • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
          • Trigger - Run double kill <gen> (checking conditions)
          • Custom script: call PlaySoundBJ( udg_Spree_Sounds[1] )
          • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
          • For each (Integer A) from 1 to 5, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Player_number_of_owner_of_k_u Equal to (Integer A)
                • Then - Actions
                  • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                • Else - Actions
          • Set double_kills_player[Player_number_of_owner_of_k_u] = (double_kills_player[Player_number_of_owner_of_k_u] + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • spree_integer[Player_number_of_owner_of_k_u] Equal to 3
            • Then - Actions
              • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
              • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
              • Trigger - Run triple kill <gen> (checking conditions)
              • Custom script: call PlaySoundBJ( udg_Spree_Sounds[2] )
              • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
              • For each (Integer A) from 1 to 5, do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Player_number_of_owner_of_k_u Equal to (Integer A)
                    • Then - Actions
                      • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                    • Else - Actions
              • Set triple_kills_player[Player_number_of_owner_of_k_u] = (triple_kills_player[Player_number_of_owner_of_k_u] + 1)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • spree_integer[Player_number_of_owner_of_k_u] Equal to 4
                • Then - Actions
                  • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                  • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                  • Trigger - Run overkill <gen> (checking conditions)
                  • Custom script: call PlaySoundBJ( udg_Spree_Sounds[3] )
                  • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                  • For each (Integer A) from 1 to 5, do (Actions)
                    • Loop - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Player_number_of_owner_of_k_u Equal to (Integer A)
                        • Then - Actions
                          • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                        • Else - Actions
                  • Set overkills_player[Player_number_of_owner_of_k_u] = (overkills_player[Player_number_of_owner_of_k_u] + 1)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • spree_integer[Player_number_of_owner_of_k_u] Equal to 5
                    • Then - Actions
                      • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                      • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                      • Trigger - Run killtacular <gen> (checking conditions)
                      • Custom script: call PlaySoundBJ( udg_Spree_Sounds[4] )
                      • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                      • For each (Integer A) from 1 to 5, do (Actions)
                        • Loop - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Player_number_of_owner_of_k_u Equal to (Integer A)
                            • Then - Actions
                              • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                            • Else - Actions
                      • Set killtaculars_player[Player_number_of_owner_of_k_u] = (killtaculars_player[Player_number_of_owner_of_k_u] + 1)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • spree_integer[Player_number_of_owner_of_k_u] Equal to 6
                        • Then - Actions
                          • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                          • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                          • Trigger - Run killtrocity <gen> (checking conditions)
                          • Custom script: call PlaySoundBJ( udg_Spree_Sounds[5] )
                          • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                          • For each (Integer A) from 1 to 5, do (Actions)
                            • Loop - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Player_number_of_owner_of_k_u Equal to (Integer A)
                                • Then - Actions
                                  • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                • Else - Actions
                          • Set killtrocitys_player[Player_number_of_owner_of_k_u] = (killtrocitys_player[Player_number_of_owner_of_k_u] + 1)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • spree_integer[Player_number_of_owner_of_k_u] Equal to 7
                            • Then - Actions
                              • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                              • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                              • Trigger - Run killinmanjaro <gen> (checking conditions)
                              • Custom script: call PlaySoundBJ( udg_Spree_Sounds[6] )
                              • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                              • For each (Integer A) from 1 to 5, do (Actions)
                                • Loop - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • Player_number_of_owner_of_k_u Equal to (Integer A)
                                    • Then - Actions
                                      • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                    • Else - Actions
                              • Set killinmanjaros_player[Player_number_of_owner_of_k_u] = (killinmanjaros_player[Player_number_of_owner_of_k_u] + 1)
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • spree_integer[Player_number_of_owner_of_k_u] Equal to 8
                                • Then - Actions
                                  • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                  • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                  • Trigger - Run killtastrophe <gen> (checking conditions)
                                  • Custom script: call PlaySoundBJ( udg_Spree_Sounds[7] )
                                  • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                                  • For each (Integer A) from 1 to 5, do (Actions)
                                    • Loop - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • Player_number_of_owner_of_k_u Equal to (Integer A)
                                        • Then - Actions
                                          • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                        • Else - Actions
                                  • Set killtastrophes_player[Player_number_of_owner_of_k_u] = (killtastrophes_player[Player_number_of_owner_of_k_u] + 1)
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • spree_integer[Player_number_of_owner_of_k_u] Equal to 9
                                    • Then - Actions
                                      • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                      • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                      • Trigger - Run killpocalypse <gen> (checking conditions)
                                      • Custom script: call PlaySoundBJ( udg_Spree_Sounds[8] )
                                      • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 7.00 seconds
                                      • For each (Integer A) from 1 to 5, do (Actions)
                                        • Loop - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • Player_number_of_owner_of_k_u Equal to (Integer A)
                                            • Then - Actions
                                              • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                            • Else - Actions
                                      • Set killpocalypses_player[Player_number_of_owner_of_k_u] = (killpocalypses_player[Player_number_of_owner_of_k_u] + 1)
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • spree_integer[Player_number_of_owner_of_k_u] Equal to 10
                                        • Then - Actions
                                          • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                          • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                          • Trigger - Run killionaire <gen> (checking conditions)
                                          • Custom script: call PlaySoundBJ( udg_Spree_Sounds[9] )
                                          • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 7.00 seconds
                                          • For each (Integer A) from 1 to 5, do (Actions)
                                            • Loop - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • Player_number_of_owner_of_k_u Equal to (Integer A)
                                                • Then - Actions
                                                  • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                                • Else - Actions
                                          • Set killionaires_player[Player_number_of_owner_of_k_u] = (killionaires_player[Player_number_of_owner_of_k_u] + 1)
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • spree_integer[Player_number_of_owner_of_k_u] Greater than 10
                                            • Then - Actions
                                              • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                              • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                              • Set spree_integer[Player_number_of_owner_of_k_u] = 1
                                              • For each (Integer A) from 1 to 5, do (Actions)
                                                • Loop - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • Player_number_of_owner_of_k_u Equal to (Integer A)
                                                    • Then - Actions
                                                      • Trigger - Turn off K_spree_picture_trigger[(Integer A)]
                                                    • Else - Actions
                                              • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                                            • Else - Actions
 

LoveTD's

New Member
Reaction score
34
sorry for double posting but my tekst was too long XD

I've also tryed doing this:

Trigger:
  • Some kind of killing trigger
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) is an ally of Player 12 (Brown)) Equal to True
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[1]) then
      • Wait for Spree_Sounds[1] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[2]) then
      • Wait for Spree_Sounds[2] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[3]) then
      • Wait for Spree_Sounds[3] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[4]) then
      • Wait for Spree_Sounds[4] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[5]) then
      • Wait for Spree_Sounds[5] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[6]) then
      • Wait for Spree_Sounds[6] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[7]) then
      • Wait for Spree_Sounds[7] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[8]) then
      • Wait for Spree_Sounds[8] to be 0.00 seconds from finished playing
      • Custom script: else
      • Custom script: if GetSoundIsPlaying(udg_Spree_Sounds[9]) then
      • Wait for Spree_Sounds[9] to be 0.00 seconds from finished playing
      • Custom script: endif
      • Custom script: endif
      • Custom script: endif
      • Custom script: endif
      • Custom script: endif
      • Custom script: endif
      • Custom script: endif
      • Custom script: endif
      • Custom script: endif
      • Set Player_number_of_owner_of_k_u = (Player number of (Owner of (Killing unit)))
      • Set spree_integer[Player_number_of_owner_of_k_u] = (spree_integer[Player_number_of_owner_of_k_u] + 1)
      • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • spree_integer[Player_number_of_owner_of_k_u] Equal to 2
        • Then - Actions
          • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
          • Trigger - Run double kill <gen> (checking conditions)
          • Custom script: call PlaySoundBJ( udg_Spree_Sounds[1] )
          • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
          • For each (Integer A) from 1 to 5, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Player_number_of_owner_of_k_u Equal to (Integer A)
                • Then - Actions
                  • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                • Else - Actions
          • Set double_kills_player[Player_number_of_owner_of_k_u] = (double_kills_player[Player_number_of_owner_of_k_u] + 1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • spree_integer[Player_number_of_owner_of_k_u] Equal to 3
            • Then - Actions
              • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
              • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
              • Trigger - Run triple kill <gen> (checking conditions)
              • Custom script: call PlaySoundBJ( udg_Spree_Sounds[2] )
              • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
              • For each (Integer A) from 1 to 5, do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Player_number_of_owner_of_k_u Equal to (Integer A)
                    • Then - Actions
                      • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                    • Else - Actions
              • Set triple_kills_player[Player_number_of_owner_of_k_u] = (triple_kills_player[Player_number_of_owner_of_k_u] + 1)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • spree_integer[Player_number_of_owner_of_k_u] Equal to 4
                • Then - Actions
                  • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                  • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                  • Trigger - Run overkill <gen> (checking conditions)
                  • Custom script: call PlaySoundBJ( udg_Spree_Sounds[3] )
                  • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                  • For each (Integer A) from 1 to 5, do (Actions)
                    • Loop - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Player_number_of_owner_of_k_u Equal to (Integer A)
                        • Then - Actions
                          • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                        • Else - Actions
                  • Set overkills_player[Player_number_of_owner_of_k_u] = (overkills_player[Player_number_of_owner_of_k_u] + 1)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • spree_integer[Player_number_of_owner_of_k_u] Equal to 5
                    • Then - Actions
                      • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                      • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                      • Trigger - Run killtacular <gen> (checking conditions)
                      • Custom script: call PlaySoundBJ( udg_Spree_Sounds[4] )
                      • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                      • For each (Integer A) from 1 to 5, do (Actions)
                        • Loop - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Player_number_of_owner_of_k_u Equal to (Integer A)
                            • Then - Actions
                              • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                            • Else - Actions
                      • Set killtaculars_player[Player_number_of_owner_of_k_u] = (killtaculars_player[Player_number_of_owner_of_k_u] + 1)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • spree_integer[Player_number_of_owner_of_k_u] Equal to 6
                        • Then - Actions
                          • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                          • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                          • Trigger - Run killtrocity <gen> (checking conditions)
                          • Custom script: call PlaySoundBJ( udg_Spree_Sounds[5] )
                          • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                          • For each (Integer A) from 1 to 5, do (Actions)
                            • Loop - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Player_number_of_owner_of_k_u Equal to (Integer A)
                                • Then - Actions
                                  • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                • Else - Actions
                          • Set killtrocitys_player[Player_number_of_owner_of_k_u] = (killtrocitys_player[Player_number_of_owner_of_k_u] + 1)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • spree_integer[Player_number_of_owner_of_k_u] Equal to 7
                            • Then - Actions
                              • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                              • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                              • Trigger - Run killinmanjaro <gen> (checking conditions)
                              • Custom script: call PlaySoundBJ( udg_Spree_Sounds[6] )
                              • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                              • For each (Integer A) from 1 to 5, do (Actions)
                                • Loop - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • Player_number_of_owner_of_k_u Equal to (Integer A)
                                    • Then - Actions
                                      • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                    • Else - Actions
                              • Set killinmanjaros_player[Player_number_of_owner_of_k_u] = (killinmanjaros_player[Player_number_of_owner_of_k_u] + 1)
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • spree_integer[Player_number_of_owner_of_k_u] Equal to 8
                                • Then - Actions
                                  • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                  • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                  • Trigger - Run killtastrophe <gen> (checking conditions)
                                  • Custom script: call PlaySoundBJ( udg_Spree_Sounds[7] )
                                  • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                                  • For each (Integer A) from 1 to 5, do (Actions)
                                    • Loop - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • Player_number_of_owner_of_k_u Equal to (Integer A)
                                        • Then - Actions
                                          • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                        • Else - Actions
                                  • Set killtastrophes_player[Player_number_of_owner_of_k_u] = (killtastrophes_player[Player_number_of_owner_of_k_u] + 1)
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • spree_integer[Player_number_of_owner_of_k_u] Equal to 9
                                    • Then - Actions
                                      • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                      • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                      • Trigger - Run killpocalypse <gen> (checking conditions)
                                      • Custom script: call PlaySoundBJ( udg_Spree_Sounds[8] )
                                      • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 7.00 seconds
                                      • For each (Integer A) from 1 to 5, do (Actions)
                                        • Loop - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • Player_number_of_owner_of_k_u Equal to (Integer A)
                                            • Then - Actions
                                              • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                            • Else - Actions
                                      • Set killpocalypses_player[Player_number_of_owner_of_k_u] = (killpocalypses_player[Player_number_of_owner_of_k_u] + 1)
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • spree_integer[Player_number_of_owner_of_k_u] Equal to 10
                                        • Then - Actions
                                          • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                          • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                          • Trigger - Run killionaire <gen> (checking conditions)
                                          • Custom script: call PlaySoundBJ( udg_Spree_Sounds[9] )
                                          • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 7.00 seconds
                                          • For each (Integer A) from 1 to 5, do (Actions)
                                            • Loop - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • Player_number_of_owner_of_k_u Equal to (Integer A)
                                                • Then - Actions
                                                  • Trigger - Turn on K_spree_picture_trigger[(Integer A)]
                                                • Else - Actions
                                          • Set killionaires_player[Player_number_of_owner_of_k_u] = (killionaires_player[Player_number_of_owner_of_k_u] + 1)
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • spree_integer[Player_number_of_owner_of_k_u] Greater than 10
                                            • Then - Actions
                                              • Image - Destroy tmpImage[Player_number_of_owner_of_k_u]
                                              • Custom script: set udg_tmpImage[udg_Player_number_of_owner_of_k_u] = null
                                              • Set spree_integer[Player_number_of_owner_of_k_u] = 1
                                              • For each (Integer A) from 1 to 5, do (Actions)
                                                • Loop - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • Player_number_of_owner_of_k_u Equal to (Integer A)
                                                    • Then - Actions
                                                      • Trigger - Turn off K_spree_picture_trigger[(Integer A)]
                                                    • Else - Actions
                                              • Countdown Timer - Start spree_timer[Player_number_of_owner_of_k_u] as a One-shot timer that will expire in 10.00 seconds
                                            • Else - Actions


I know they are big-@ss...

EDIT: I shortened them a bit... Not much though :p

And I will probably get a comment saying: why all the endif's?
Because when I used 1 endif it didn't work for some strange reason :O!

also: the reason why I'm not using loops is because I have to turn on some triggers which couldn't be "arrayed" ;)
 

Moridin

Snow Leopard
Reaction score
144
Ok I haven't read through the full triggers because im a little busy at the moment. Will do that soon and comment again.

But one thing. You can array your triggers. Make a variable of type trigger that's an array and at map initialization set each part of the trigger array to a trigger. That will make your GIGANTIC triggers much much smaller.
 

LoveTD's

New Member
Reaction score
34
Ok I haven't read through the full triggers because im a little busy at the moment. Will do that soon and comment again.

But one thing. You can array your triggers. Make a variable of type trigger that's an array and at map initialization set each part of the trigger array to a trigger. That will make your GIGANTIC triggers much much smaller.

Thanks! Didn't know that was possible ;) Helps me out a LOT! :p

EDIT: thanks to moridin the triggers are again shortened down a bit :)
 

LoveTD's

New Member
Reaction score
34
1 day has past!

bumpsigns.th.jpg
 

LoveTD's

New Member
Reaction score
34
BUMP

my problem is still not solved ;(

If there's anyone who knows how to make something like I want to accomplish then please help me :)
 

LoveTD's

New Member
Reaction score
34
sorry for all the bumps, but here is another one... I can't seem to figure this out ;(

also... What is the maximum number of bumps you may give to a thread :D?
 

Silver

New Member
Reaction score
21
To avoid overlapping of sounds, just place the following behind whenever you have an action that generates the sound.
Trigger:
  • Trigger - Turn off (This trigger)
    • Wait 3 seconds
    • Trigger - Turn on (This trigger)
 

LoveTD's

New Member
Reaction score
34
since its a double kill system that will not help...

when you turn off the trigger and someone makes for example 3 kills at nearly the same time then it will only say double kill instead of tripple kill...

So what happens is that he/she only gets a double kill instead of a tripple kill what he/she is supposed to get...

What should happen is something like:

the sounds shouldn't overlap even though you have made 5/6 kills at nearly the same time...

so it has to stop all sounds except the last sound that is playing...
But I have no idea how I would accomplish something like that :S
 

Silver

New Member
Reaction score
21
Trigger:
  • Sound - Stop YourSound Immediately
    • Sound - Destroy YourSound

First stopping it, and then destroying it to get rid of it.
 

LoveTD's

New Member
Reaction score
34
have you looked at the trigger I posted above?

I play variable sounds... If I destroy them I won't be abled to re-play them...

But that doesn't matter since I fixed it in a different way ;) +rep because I'm happy :D And for your efforts ofc...

I still need to know 1 thing though:
does this work?

if GetLocalPlayer()==Player(udg_Player_number_of_owner_of_k_u) then
sound - play sound
endif
 
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