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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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