Advice on dialog boxes

Tythoid

New Member
Reaction score
23
im using a dialog box system in my map for allying i want to know if this trigger would cause lag or leaks as alot of people were complaining about bursts of lag
Code:
teamtwobuttons
    Events
        Dialog - A dialog button is clicked for twoteamally_dialog1
        Dialog - A dialog button is clicked for twoteamally_dialog2
    Conditions
    Actions
        If ((Clicked dialog button) Equal to twoteamDialogbutton[7]) then do (Dialog - Show twoteamally_dialog2 for (Triggering player)) else do (Do nothing)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[1]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 1 (Red) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 1 (Red)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[2]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 2 (Blue) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 2 (Blue)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[3]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 3 (Teal) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 3 (Teal)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[4]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 4 (Purple) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 4 (Purple)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[5]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 5 (Yellow) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 5 (Yellow)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[6]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 6 (Orange) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 6 (Orange)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[8]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 7 (Green) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 7 (Green)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[9]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 8 (Pink) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 8 (Pink)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[10]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 9 (Gray) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 9 (Gray)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[11]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 10 (Light Blue) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 10 (Light Blue)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[12]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 11 (Dark Green) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 11 (Dark Green)))) + |r))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to twoteamDialogbutton[13]
            Then - Actions
                Player Group - Pick every player in allplayers and do (Actions)
                    Loop - Actions
                        Player - Make (Triggering player) treat (Picked player) as an Enemy
                Player - Make (Triggering player) treat Player 12 (Brown) as an Ally
                Game - Display to (All players) the text: (|cff32cd32 + (((Name of (Triggering player)) + ( has allied  + (Name of Player 12 (Brown)))) + |r))
            Else - Actions
 

Sim

Forum Administrator
Staff member
Reaction score
534
This trigger does not leak. It isn't the one responsible for the increasing lag in your game.
 
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