Kill Streaks

Bloodcount

Starcraft II Moderator
Reaction score
297
I am pretty sure everyone here knows what they are but just for the record: Kill streaks are basically X ammount of kills in a row. They are used mostly in FPS games... the AoS genre uses them as well.


So I want to make kill streaks for my map.

I imagine it like this: a global variable for each player. 1 trigger that will run when the player looses a unit and if the lost unit is the hero the variable mentioned above will be reset to zero and finally a trigger that will add points to the variable for each kill and will grant rewards if the variable is large enough.

So 2 triggers and a global variable per player... hm... is there a more efficient way to do it ?
 

blastintime

Member
Reaction score
10
make an array variable and you can have all players on 1 variable. like name the variable KillStreak[] with 10 positions. And then KillStreak[1] will be for player 1 etc
 

blastintime

Member
Reaction score
10
Yeah sure.
About the triggers, I bet you can squeeze everything to one trigger as well.
something like this.

an event that triggers when someone dies..
1 check which player that died, then set his kill streak to 0
2 if ur lucky theres an action that knows which player that killed it too, then you add +1 to his kill streak
3 an if else action that checks how many kills that player got and reward him if he has enough

voila :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top