Trigger:
- Streak Init
- Events
- Map initialization
- Conditions
- Actions
- Trigger - Run Streak SetupStrings <gen> (ignoring conditions)
- Trigger - Run Streak SetupSounds <gen> (ignoring conditions)
- For each (Integer A) from 1 to 12, do (Actions)
- Loop - Actions
- Set ExtraStreak_Chcker[(Integer A)] = False
- Loop - Actions
- Events
Trigger:
- Streak SetupSounds
- Events
- Conditions
- Actions
- -------- ---------------------------------------------------------------------- --------
- -------- All streak-sounds that will be used for streaks are here --------
- -------- ---------------------------------------------------------------------- --------
- Set Streak_Sounds[1] = firstblood <gen>
- Set Streak_Sounds[3] = killing_Spree <gen>
- Set Streak_Sounds[4] = dominating <gen>
- Set Streak_Sounds[5] = megakill <gen>
- Set Streak_Sounds[6] = unstoppable <gen>
- Set Streak_Sounds[7] = I_am_your_father <gen>
- Set Streak_Sounds[8] = godlike <gen>
- Set Streak_Sounds[9] = Rampage <gen>
- -------- ---------------------------------------------------------------------- --------
- Set ExtraStreak_Sounds[2] = double_kill <gen>
- Set ExtraStreak_Sounds[3] = triple_kill <gen>
- Set ExtraStreak_Sounds[4] = UltraKill <gen>
- Set ExtraStreak_Sounds[5] = humiliation <gen>
Trigger:
- Streak SetupStrings
- Events
- Conditions
- Actions
- -------- ---------------------------------------------------------------------- --------
- -------- All streak-strings that will be used for streaks are here --------
- -------- ---------------------------------------------------------------------- --------
- Set Streak_Strings[3] = is on a |c0080FF80killing-spree|r!
- Set Streak_Strings[4] = is |c00FF80C0dominating|r!
- Set Streak_Strings[5] = has a |c00FFFF80mega-kill|r!
- Set Streak_Strings[6] = is |c00FF8000unstoppable|r!
- Set Streak_Strings[7] = has enough power to be |c00FF0080HIS FATHER|r!
- Set Streak_Strings[8] = is |c000080FFGODLIKE|r!
- Set Streak_Strings[9] = is on a |c00FF0000Rampage|r!
- -------- ---------------------------------------------------------------------- --------
- Set ExtraStreak_Strings[2] = got a |c000000FFdouble-kill|r!!
- Set ExtraStreak_Strings[3] = got a |c00FFFC01tripple-kill|r!!!
- Set ExtraStreak_Strings[4] = has a |c00540081ULTRA-KILL|r!!!!
- Set ExtraStreak_Strings[5] = is a FUCKIN |c00000000FUCKERRRR|r!!!!!
Trigger:
- StreakKill
- Events
- Unit - A unit Dies
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- Actions
- -------- ---------------------------------------------------------------------- --------
- -------- Killer gets +1 to hes streak kills --------
- -------- Death resets the streak-kills for each player --------
- -------- ---------------------------------------------------------------------- --------
- Set Streak_Kills[(Player number of (Owner of (Killing unit)))] = (Streak_Kills[(Player number of (Owner of (Killing unit)))] + 1)
- Set Streak_Kills[(Player number of (Owner of (Triggering unit)))] = 0
- -------- ---------------------------------------------------------------------- --------
- -------- Displaying a simple message when a Hero dies --------
- -------- ---------------------------------------------------------------------- --------
- Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( pwned + ((Name of (Owner of (Triggering unit))) + 's head!)))
- Sound - Play Streak_Sounds[1]
- -------- ---------------------------------------------------------------------- --------
- -------- Running the trigger that will display the current player-streak (if theres one) and will a sound --------
- -------- ---------------------------------------------------------------------- --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Streak_Kills[(Player number of (Owner of (Killing unit)))] Greater than or equal to 3
- Then - Actions
- Trigger - Run Streak StringSound <gen> (ignoring conditions)
- Else - Actions
- If - Conditions
- Player - Set Player 1 (Red) Current gold to Streak_Kills[1]
- Events
Trigger:
- ExtraStreakKill
- Events
- Unit - A unit Dies
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- Actions
- -------- ---------------------------------------------------------------------- --------
- -------- Players get +1 extra-streak-kill for each Hero kill. Dying player get kills reset --------
- -------- ---------------------------------------------------------------------- --------
- Set ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))] = (ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))] + 1)
- Set ExtraStreak_Kills[(Player number of (Owner of (Triggering unit)))] = 0
- Set ExtraStreak_Chcker[(Player number of (Owner of (Killing unit)))] = True
- Set ExtraStreak_Timer[(Player number of (Owner of (Killing unit)))] = 10
- -------- ---------------------------------------------------------------------- --------
- -------- If a player has more or 2 extra-streak-kills, hes into a streak --------
- -------- Every player has 15 seconds to increase hes streak and get more bounty --------
- -------- If a player don't kill any hero in this 10 seconds, hes kills will be reset as well preveting bugs --------
- -------- ---------------------------------------------------------------------- --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))] Greater than or equal to 2
- Then - Actions
- Trigger - Run Streak ExtraStringSound <gen> (ignoring conditions)
- Else - Actions
- If - Conditions
- Player - Set Player 1 (Red) Current lumber to ExtraStreak_Kills[1]
- Events
Trigger:
- Streak StringSound
- Events
- Conditions
- Actions
- -------- ---------------------------------------------------------------------- --------
- -------- If the killing-player streak-kills are greater than 9, this trigger will display only the #9 string and will play only #9 sound --------
- -------- ---------------------------------------------------------------------- --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Streak_Kills[(Player number of (Owner of (Killing unit)))] Greater than or equal to 9
- Then - Actions
- Sound - Play Streak_Sounds[9]
- Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + Streak_Strings[9])
- Skip remaining actions
- Else - Actions
- If - Conditions
- -------- ---------------------------------------------------------------------- --------
- -------- If the player streak-kills are less than 9, it will display the current streak-string(s) and will play the current streak-sound(s) --------
- -------- The first streak starts from 3 and ends on 9 --------
- -------- If a player with at least 1 streak-kill dies, hes kills will be nulled --------
- -------- ---------------------------------------------------------------------- --------
- Sound - Play Streak_Sounds[Streak_Kills[(Player number of (Owner of (Killing unit)))]]
- Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + Streak_Strings[Streak_Kills[(Player number of (Owner of (Killing unit)))]])
Trigger:
- Streak ExtraStringSound
- Events
- Conditions
- Actions
- -------- ---------------------------------------------------------------------- --------
- -------- If an player extra-streak kills are greater than 5, then it will play only sound #5 and string #5 --------
- -------- ---------------------------------------------------------------------- --------
- Custom script: call PolledWait (0.27)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))] Greater than or equal to 5
- Then - Actions
- Wait 2.70 seconds
- Sound - Play ExtraStreak_Sounds[5]
- Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ExtraStreak_Strings[5])
- Skip remaining actions
- Else - Actions
- If - Conditions
- -------- ---------------------------------------------------------------------- --------
- -------- First streak is at 2, last is at 5 --------
- -------- ---------------------------------------------------------------------- --------
- Wait 2.70 seconds
- Sound - Play ExtraStreak_Sounds[ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))]]
- Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ExtraStreak_Strings[ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))]])
Trigger:
- Streak Loop
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- -------- ---------------------------------------------------------------------- --------
- -------- Every 1 secnd, this trigger checks all 12 player if they has an extra streak --------
- -------- If they do, then their timers are running --------
- -------- If any of the timers reaches 0, the specific players will have its extra-streak kills reset --------
- -------- Timer as well will stay at 0 until a player makes more than 2 kills in a row within the 10 seconds range --------
- -------- ---------------------------------------------------------------------- --------
- For each (Integer ExtraStreakInt) from 1 to 12, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ExtraStreak_Chcker[ExtraStreakInt] Equal to True
- Then - Actions
- Set ExtraStreak_Timer[ExtraStreakInt] = (ExtraStreak_Timer[ExtraStreakInt] - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ExtraStreak_Timer[ExtraStreakInt] Equal to 0
- Then - Actions
- Set ExtraStreak_Chcker[ExtraStreakInt] = False
- Set ExtraStreak_Kills[ExtraStreakInt] = 0
- Player - Set Player 1 (Red) Current lumber to ExtraStreak_Kills[1]
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Events
I know this is a lot, this is a system i got from hive(edited a bit) and i wanted to know if there is any way to mute the current streak sound if an extra streak sound is running?
I know i added waits but thats just a temporary solution to let the streaks sound run then the extra streak sound run.