Streak system help

rongheng

New Member
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



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
      • Player - Set Player 1 (Red) Current gold to Streak_Kills[1]



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
      • Player - Set Player 1 (Red) Current lumber to ExtraStreak_Kills[1]



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 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
      • -------- ---------------------------------------------------------------------- --------
      • -------- 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
            • Else - Actions


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.
 

MP®

Member
I think you have to play the sound as music instead of sound. I dont know exactly, and I cant check it right now, but I thought you can make any sound in the import manager act as music. And in the triggers you can make the music stop at any time.
 

evilwolf

Member
I think you have to play the sound as music instead of sound. I dont know exactly, and I cant check it right now, but I thought you can make any sound in the import manager act as music. And in the triggers you can make the music stop at any time.
If you don't know then don't help!
Heres a perfect streak system:
Trigger:
  • Spree
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
          • ((Killing unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True
          • (Owner of (Killing unit)) Not equal to Neutral Hostile
        • Then - Actions
          • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + (((Name of (Owner of (Killing unit))) + (|r + ( has killed + (PlayerColors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + (|r + for 200 gold!)))))) + |r))
          • Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(Player number of (Owner of (Killing unit)))] + 1)
          • Set Player_Death[(Player number of (Owner of (Dying unit)))] = (Player_Death[(Player number of (Owner of (Dying unit)))] + 1)
          • Multiboard - Set the text for MultiboardInit item in column 3, row MultiboardSpots[(Player number of (Owner of (Killing unit)))] to (String(PlayerKills[(Player number of (Owner of (Killing unit)))]))
          • Multiboard - Set the text for MultiboardInit item in column 4, row MultiboardSpots[(Player number of (Owner of (Dying unit)))] to (String(Player_Death[(Player number of (Owner of (Dying unit)))]))
          • Player - Add 1 to (Owner of (Killing unit)) Current lumber
          • Player - Add 1 to (Owner of (Dying unit)) Food used
          • Set Spree[(Player number of (Owner of (Killing unit)))] = (Spree[(Player number of (Owner of (Killing unit)))] + 1)
          • Set Spree[(Player number of (Owner of (Dying unit)))] = 0
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Spree[(Player number of (Owner of (Killing unit)))] Equal to 1
            • Then - Actions
              • Game - Display to (All players) the text: (Congraduations to + (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + on his |cffff0000First Kill!|r))))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Spree[(Player number of (Owner of (Killing unit)))] Equal to 2
                • Then - Actions
                  • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has just got a |cffff0000Double Kill!|r)))
                  • Sound - Play Double_Kill <gen>
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Spree[(Player number of (Owner of (Killing unit)))] Equal to 3
                    • Then - Actions
                      • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is on a |cffff0000Killing Spree!|r)))
                      • Sound - Play Killing_Spree <gen>
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Spree[(Player number of (Owner of (Killing unit)))] Equal to 4
                        • Then - Actions
                          • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |cffff0000Dominating|r)))
                          • Sound - Play Dominating <gen>
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Spree[(Player number of (Owner of (Killing unit)))] Equal to 5
                            • Then - Actions
                              • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has just got a |cffff0000Mega Kill!)))
                              • Sound - Play MegaKill <gen>
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • Spree[(Player number of (Owner of (Killing unit)))] Equal to 6
                                • Then - Actions
                                  • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has just got a |cffff0000Monster Kill!)))
                                  • Sound - Play MonsterKill <gen>
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • Spree[(Player number of (Owner of (Killing unit)))] Equal to 7
                                    • Then - Actions
                                      • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has just got a |cffff0000Ultra Kill!)))
                                      • Sound - Play UltraKill <gen>
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • Spree[(Player number of (Owner of (Killing unit)))] Equal to 8
                                        • Then - Actions
                                          • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |cffff0000Unstoppable!)))
                                          • Sound - Play Unstoppable <gen>
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • Spree[(Player number of (Owner of (Killing unit)))] Equal to 9
                                            • Then - Actions
                                              • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |cffff0000Wicked Sick!)))
                                              • Sound - Play WhickedSick <gen>
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • Spree[(Player number of (Owner of (Killing unit)))] Equal to 10
                                                • Then - Actions
                                                  • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is on a |cffff0000Rampage!)))
                                                  • Sound - Play Rampage <gen>
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • Spree[(Player number of (Owner of (Killing unit)))] Equal to 11
                                                    • Then - Actions
                                                      • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |cffff0000Godlike!)))
                                                      • Sound - Play GodLike <gen>
                                                    • Else - Actions
                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                        • If - Conditions
                                                          • Spree[(Player number of (Owner of (Killing unit)))] Greater than or equal to 12
                                                        • Then - Actions
                                                          • Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |cffff0000Beyond Godlike!)))
                                                          • Sound - Play HolyShit <gen>
                                                        • Else - Actions
        • Else - Actions

This will work 100% of the time...
Sorry for the long post!
Before you say WTF IS PIECE OF SHIT let me explain:
A unit dies
If dying unit is a hero.
Then it sets Spree(Player number) to Spree +1 (This will be your streak count)
if Spree = 3
It will play killing spree
and display the massage you got a killing spree!
Get it?
If you're really struggling with this I will post a demo map for you!
 

Risen

New Member
I think his problem was that sounds were overlapping / not playing.

For example, a player nukes an area and gets five kills, he wants the killstreak sound of 5 kills to play instead of the "doublekill" one.

If you want I could code a JASS/vJass one. (I'm planning to code one for myself anyway.)

Do you use JNGP?
 

Mythes

Member
I don't think JASS is necessary on this one... It can be done in GUI..
Alas,
If a hero nets 5 kills in one shot, each trigger would be activated at the same time.
So, you would hear "double kill" "triple kill" "ultra kill" "rampage" sounds in sucession, or even overlapped on each other...

That seems the most reasonable trigger response to me....
 

Risen

New Member
I don't think he wants that. Also, the system he needs to use isn't a normal one. There's also the ExtraKillingStreak sounds.

ExtraKillingStreak sounds activate when a player receives more than 1 kill within a certain interval.

JASS isn't necessary on this one, but it surely is a lot easier than GUI. I finished my system yesterday, it just needs debugging. I could most likely add his needs to my system quite easily.
 

evilwolf

Member
I don't think he wants that. Also, the system he needs to use isn't a normal one. There's also the ExtraKillingStreak sounds.

ExtraKillingStreak sounds activate when a player receives more than 1 kill within a certain interval.

JASS isn't necessary on this one, but it surely is a lot easier than GUI. I finished my system yesterday, it just needs debugging. I could most likely add his needs to my system quite easily.
Nope its easier in GUI
A unit dies
Dying unit is a hero
Set MultiKill(Player Number of owner of killing unit) = Multikill +1
If multikill = 2 then
You got a double kill
If multikill = 3 then
You got a triple kill
wait 2 seconds
set multikill = 0
Its easy, easy to make but hard to master.
Jass is a better choice but GUI is a lot easier.
 

rongheng

New Member
Eh, sry, haven been on9.

Evilwolf's trigger looks abit confusing to me and i want to ask whether i should use his or mine as his does not have the extra streaks.(I wanted the streaks to be muted when the extra streaks are playing)

I also noticed a lot of problems in the trigger as the first blood keeps playing as it is supposed to only play just once and then turned off.(do i need to make another trigger just for the first blood?)

I also wanted the normal streaks to be reset when the hero dies and leave a message about who ended its streak.

Edit 1: Okay, i solved the extra streak part but now i do not know how to seperate the first blood to let it just play once. I also dunno how to reset the streaks when the hero dies.

I also noticed another thing, are the streaks stored as the lumber and gold or as variables?

Edit 2: Okay, figured everything out but now the only problem is how to stop the first blood from playing at the time of the kills as it is supposed to be playing only once then disabled. Any solutions on how to do tat?
 

Mythes

Member
Make a separate trigger for first blood...
It's easier, because you can activate it once, then turn it off
So you would have
First Blood

Event: Unit dies

Cond: Dying unit is a hero

Action:
give gold
show message
etc
Turn OFF this trigger
Turn ON KillingHeroes

=============================

KillingHeroes

Event: Unit dies

Cond: Dying unit is a Hero

Actions:
Same stuff you already have...

======================================


Got the idea?
If you didn't understand I'll post a trigger made in World Editor =)
 

rongheng

New Member
Sry, i dun get the variable part where do i +1 or? Can u post the 2 triggers with documentation so i could understand?(u can just post it here, no nid for a demo map) Thx :D
 

Mythes

Member
I'll post my own triggers that I use in my map, ok?
They work perfectly =) (Ignore the portuguese plz... I'm brazilian...)


FIRST BLOOD

Trigger:
  • First Blood
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • ((Owner of (Killing unit)) is in PlayersPlaying) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Killing unit)) is an ally of (Owner of (Dying unit))) Equal to True
        • Then - Actions
          • Skip remaining actions
        • Else - Actions
      • Player - Add 200 to (Owner of (Killing unit)) Current gold
      • Quest - Display to (All players) the Hint message: (|cff00ccffFirst Blood|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + e ganhou mais 200 de gold!))))
      • Wait 0.10 seconds
      • Trigger - Turn off (This trigger)



Killing the first time a hero (not first blood)

Trigger:
  • Kill Heroes
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • (Dying unit) Not equal to DoppelUnit
      • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 0
    • Actions
      • Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Triggering unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!)))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to (Owner of (Triggering unit))
        • Then - Actions
          • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + se matou!)
          • Multiboard - Set the text for Scoreboard item in column 3, row (Player number of (Owner of (Dying unit))) to (String(PlayerNumberDeathes[(Player number of (Owner of (Dying unit)))]))
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Killing unit)) Equal to Neutral Hostile) or (((Owner of (Killing unit)) Equal to Neutral Victim) or (((Owner of (Killing unit)) Equal to Neutral Extra) or ((Owner of (Killing unit)) Equal to Neutral Passive)))
        • Then - Actions
          • Game - Display to (All players) the text: (|cffffcc00Neutral Creeps|r + ( mataram + ((Name of (Owner of (Triggering unit))) + !)))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Killing unit) belongs to an ally of (Owner of (Dying unit))) Equal to True
        • Then - Actions
          • Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( deu deny em + ((Name of (Owner of (Triggering unit))) + ( e ganhou + ((String((50 + (15 x (Level of (Dying unit)))))) + de gold!)))))
        • Else - Actions
      • Set KillSpree[(Player number of (Owner of (Dying unit)))] = 0
      • Player - Add (100 + (30 x (Level of (Dying unit)))) to (Owner of (Killing unit)) Current gold



KILLING SPREE (and etc)

Trigger:
  • Spree
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • ((Owner of (Killing unit)) is in PlayersPlaying) Equal to True
    • Actions
      • Set KillSpree[(Player number of (Owner of (Killing unit)))] = (KillSpree[(Player number of (Owner of (Killing unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 2
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffKilling Spree|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 3
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffDominating|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 4
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffMegaKill|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 5
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffUnstoppable|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 6
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffWicked Sick|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 7
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffMonster Kill|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 8
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffGodlike|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Equal to 9
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffBeyond Godlike|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KillSpree[(Player number of (Owner of (Killing unit)))] Greater than or equal to 10
        • Then - Actions
          • Quest - Display to (All players) the Hint message: (|cff00ccffSOUL FODAH|r - + ((Name of (Owner of (Killing unit))) + ( matou + ((Name of (Owner of (Dying unit))) + ( e ganhou + ((String((100 + (30 x (Level of (Dying unit)))))) + de gold!))))))
        • Else - Actions
      • Player - Add (100 + (30 x (Level of (Dying unit)))) to (Owner of (Killing unit)) Current gold



Just to clarify
PlayersPlaying is a variable (Player's Group) that I set in Map Initialization as:

Trigger:
  • Map Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) slot status) Equal to Is playing
            • Then - Actions
              • Player Group - Add (Player((Integer A))) to PlayersPlaying
            • Else - Actions



Got it now?
If you need a test map to see the trigger working, just tell me...
I just didn't input a sound because I don't really like them hehe..

Myt.


Note:
[.wc3] and [./wc3] aren't working (obviously without the dots...)
 

Mythes

Member
Didn't understand what's the problem.
I can put one inside another but that wouldn't reduce the number of "If's" Functions I must use..
I have to use one If for each killing spree counter..
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    but yeah man you should come to Houston there is so much more opportunity here than San Antonio. Just look at all the homeless people on the Riverwalk and downtown there you cannot even walk down the street without getting mobbed them
  • The Helper The Helper:
    check out this place apparently it is the best roommate site out there roommates.com lol
  • Varine Varine:
    The homeless people reminded me of New York
  • Varine Varine:
    I'll check it out, my lease expires in like a few months so I need to figure something out.
  • Varine Varine:
    I tried to open a food truck in Sandpoint a few years ago but the city said no, then like two years later they passed new laws to encourage it and gave them all fucking tax breaks and shit. And at that point I didn't have enough money to go buy one so I was way too late to the game once other cities realized they could just bring their existing truck there, or sell their brick and mortar.
  • Varine Varine:
    I do like food trucks though, they're way more fun than restaurants and usually I also get some of that tip money there.
  • Varine Varine:
    Restaurants are really hard if you don't have a back up source of income to fund them sometimes, in my experience most owners either got really really lucky, had existing money that allowed them to buy an already successful one, or they have family money to fall back on for loans. It's few and far between to see very inspiring success stories where the person actually got it through hard work and perseverance. I thought about opening one lots and I always just end up not thinking it'll work. I would much rather just find someone that has that money and go work for them
  • The Helper The Helper:
    i am not talking about opening a brick and mortar I am talking about food trucks though I have seen some brick and mortar mexican places open up during covid that are doing good because there food is awesome!
  • The Helper The Helper:
    Food trucks are killing out here because Bars cannot open unless they sell food and the governor ok'd the use of a food truck in front as serving food
  • The Helper The Helper:
    Just not enough food trucks
  • The Helper The Helper:
    a buddy of mine just opened up a food truck and he is killing it but he is a great cook and has awesome food right in the middle of the pandemic too food trucks are immune to pandemic because they are take out in Texas you will always be able to get take out or delivery
  • The Helper The Helper:
    He is in the different food facebook groups in houston and posts videos of him making his food
  • The Helper The Helper:
    he is killing it
  • jonas jonas:
    @Varine with the restaurants, there surely is a lot of luck and hard work but most restaurants fail because they suck. Flair isn't right, economics not well thought through, food is mediocre or sucks, location is bad, etc. If you're thinking about opening one, make sure you're looking at the stories of those that would be playing at your level, don't let your hopes be dragged down by all the subpar restaurants out there.
  • jonas jonas:
    I'm a bit worried about the future of data science, there's an influx of incompetent people hired by incompetent managers, that can't last. But I'm sure smart data scientists will always be useful and hireable. Same as smart security people.
  • jonas jonas:
    My sister in law worked in a vegan food truck, the owners were also making a killing, added several trucks and opened two restaurants over 5 years
  • Ghan Ghan:
    The CompTIA stuff is pretty much crap unfortunately. The places that ask for those low-level certs aren't likely places you want to work. For IT you really want a degree, but in the meantime you need to figure out some way to learn the skills. Cybersecurity is really hot right now so competition is fierce.
  • tom_mai78101 tom_mai78101:
    I realized I don't have anything much to say, other than "Good luck!". Compared to other places, I'm just very lucky we didn't have a lot of surges of cases coming in.
  • The Helper The Helper:
    My daughter just got back from school at Georgetown TX, outside of Austin and said there were 100 cases in the last week but she also said nobody was wearing a mask anywhere so people mask up and stay safe!
    +2
  • thewrongvine thewrongvine:
    happy thanksgiving folks!
    +1
  • Ralle Ralle:
    PLOOB
  • Varine Varine:
    @Gyah Yeah I figured they aren't particularly valuable, but they'll at the least act as a baseline for some entry level work somewhere.
  • Varine Varine:
    I now see how horribly I spelled @Ghan
  • Varine Varine:
    I had a rough morning
  • The Helper The Helper:
    that field is going to explode and though there is competition there is going to be room for all levels in the coming years imho.

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top