Never_Quit
New Member
- Reaction score
- 16
does anyone think that this code i made for a double kill multi kill ultra kill monster kill trigger will cause my game to crash?
Trigger:
- Other Bloods Backup
- Events
- Unit - A unit Dies
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- NUMBERKILLTIME[(Player number of (Owner of (Killing unit)))] Greater than 8.00
- BOOLEANKILLSOUND2[(Player number of (Owner of (Killing unit)))] Equal to True
- BOOLEANKILLSOUND3[(Player number of (Owner of (Killing unit)))] Equal to False
- Then - Actions
- Set BOOLEANKILLSOUND3[(Player number of (Owner of (Killing unit)))] = True
- Game - Display to (All players) the text: (iPlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + |r MONSTER KILL!))
- Sound - Play monsterkill <gen>
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- NUMBERKILLTIME[(Player number of (Owner of (Killing unit)))] Greater than 4.00
- BOOLEANKILLSOUND1[(Player number of (Owner of (Killing unit)))] Equal to True
- BOOLEANKILLSOUND2[(Player number of (Owner of (Killing unit)))] Equal to False
- Then - Actions
- Set BOOLEANKILLSOUND2[(Player number of (Owner of (Killing unit)))] = True
- Game - Display to (All players) the text: (iPlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + |r Ultra Kill!))
- Sound - Play Ultra_Kill <gen>
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- NUMBERKILLTIME[(Player number of (Owner of (Killing unit)))] Greater than 0.00
- BOOLEANKILLSOUND1[(Player number of (Owner of (Killing unit)))] Equal to False
- Then - Actions
- Set BOOLEANKILLSOUND1[(Player number of (Owner of (Killing unit)))] = True
- Game - Display to (All players) the text: (iPlayerColors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + |r double kill!))
- Sound - Play Double_Kill <gen>
- Else - Actions
- If - Conditions
- Set NUMBERKILLTIME[(Player number of (Owner of (Killing unit)))] = (NUMBERKILLTIME[(Player number of (Owner of (Killing unit)))] + 3.00)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Tick Down Backup
- Events
- Time - Every 0.25 seconds of game time
- 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
- NUMBERKILLTIME[(Integer A)] Greater than 0.00
- Then - Actions
- Set NUMBERKILLTIME[(Integer A)] = (NUMBERKILLTIME[(Integer A)] - 0.25)
- Else - Actions
- Set BOOLEANKILLSOUND1[(Integer A)] = False
- Set BOOLEANKILLSOUND2[(Integer A)] = False
- Set BOOLEANKILLSOUND3[(Integer A)] = False
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer A) from 1 to 12, do (Actions)
- Events