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:
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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Events