A possible Crash?

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 (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 (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
      • Set NUMBERKILLTIME[(Player number of (Owner of (Killing unit)))] = (NUMBERKILLTIME[(Player number of (Owner of (Killing unit)))] + 3.00)

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
 

Exide

I am amazingly focused right now!
Reaction score
448
Nope, it should not cause any problem.
The easiest way to test, though, is to disable these two triggers - play your game and see if it still crashes or not.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top