- Joined
- Jul 30, 2012
- Messages
- 93
Hi,
i have copied this streak system from somewhere then changed values for myself.But it doesn't work fine. *-* After we die, it ignores 5 seconds and writes double and triple etc. whenever i kill someone.But at first it's ok.After our hero die, it becomes distorted.
i have copied this streak system from somewhere then changed values for myself.But it doesn't work fine. *-* After we die, it ignores 5 seconds and writes double and triple etc. whenever i kill someone.But at first it's ok.After our hero die, it becomes distorted.
-
System Initialization
-

Events
-


Time - Elapsed game time is 0.00 seconds
-
-

Conditions
-

Actions
-


Trigger - Run Setup Streak Strings <gen> (ignoring conditions)
-


Trigger - Turn on System Streak Kill <gen>
-


Trigger - Turn on System Timers <gen>
-


For each (Integer A) from 1 to 12, do (Actions)
-



Loop - Actions
-




Trigger - Add to System Timers <gen> the event (Time - ExtraStreak_Timer[(Integer A)] expires)
-
-
-
-
-
System Streak Kill
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Triggering unit) is A Hero) Equal to True
-


((Triggering unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
-


((Triggering unit) is an illusion) Equal to False
-


((Owner of (Killing unit)) controller) Not equal to (Neutral Hostile controller)
-
-

Actions
-


Set Streak_Kills[(Player number of (Owner of (Killing unit)))] = (Streak_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-


Set ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))] = (ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))] + 1)
-


Set Streak_Kills[(Player number of (Owner of (Triggering unit)))] = 0
-


Countdown Timer - Start ExtraStreak_Timer[(Player number of (Owner of (Killing unit)))] as a One-shot timer that will expire in 5.00 seconds
-


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
-




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
-






Game - Display to (All players) the text: (Isim[(Player number of (Owner of (Killing unit)))] + ExtraStreak_Strings[5])
-
-





Else - Actions
-






Game - Display to (All players) the text: (Isim[(Player number of (Owner of (Killing unit)))] + ExtraStreak_Strings[ExtraStreak_Kills[(Player number of (Owner of (Killing unit)))]])
-
-
-
-



Else - Actions
-
-


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
-




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 8
-
-





Then - Actions
-






Game - Display to (All players) the text: (Isim[(Player number of (Owner of (Killing unit)))] + Streak_Strings[8])
-
-





Else - Actions
-






Game - Display to (All players) the text: (Isim[(Player number of (Owner of (Killing unit)))] + Streak_Strings[Streak_Kills[(Player number of (Owner of (Killing unit)))]])
-
-
-
-



Else - Actions
-
-
-
-
System Timers
-

Events
-

Conditions
-

Actions
-


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
-






(Remaining time for ExtraStreak_Timer[ExtraStreakInt]) Equal to 0.00
-
-





Then - Actions
-






Set ExtraStreak_Kills[ExtraStreakInt] = 0
-
-





Else - Actions
-
-
-
-
-



