[Trigger] How to Remove Wait From Trigger?

Level 21
Joined
Mar 16, 2008
Messages
955
Trying to remove wait function. Worried it's causing desyncs. Also it's not MUI.

  • Share Research
    • Events
      • Unit - A unit Finishes research
    • Conditions
    • Actions
      • Wait 0.50 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Researching unit)) is in Group1Red.) Equal to True
        • Then - Actions
          • Player Group - Pick every player in Group1Red and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current research level of (Researched tech-type) for (Picked player)) Less than (Current research level of (Researched tech-type) for (Owner of (Researching unit)))
                • Then - Actions
                  • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for (Owner of (Researching unit))) for (Picked player)
                • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Researching unit)) is in Group2Blue.) Equal to True
        • Then - Actions
          • Player Group - Pick every player in Group2Blue and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current research level of (Researched tech-type) for (Picked player)) Less than (Current research level of (Researched tech-type) for (Owner of (Researching unit)))
                • Then - Actions
                  • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for (Owner of (Researching unit))) for (Picked player)
                • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Researching unit)) is in Group3Teal.) Equal to True
        • Then - Actions
          • Player Group - Pick every player in Group3Teal and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current research level of (Researched tech-type) for (Picked player)) Less than (Current research level of (Researched tech-type) for (Owner of (Researching unit)))
                • Then - Actions
                  • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for (Owner of (Researching unit))) for (Picked player)
                • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Researching unit)) is in Group4Purp.) Equal to True
        • Then - Actions
          • Player Group - Pick every player in Group4Purp and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current research level of (Researched tech-type) for (Picked player)) Less than (Current research level of (Researched tech-type) for (Owner of (Researching unit)))
                • Then - Actions
                  • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for (Owner of (Researching unit))) for (Picked player)
                • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Researching unit)) is in Black_Group_Var.) Equal to True
        • Then - Actions
          • Player Group - Pick every player in Black_Group_Var and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current research level of (Researched tech-type) for (Picked player)) Less than (Current research level of (Researched tech-type) for (Owner of (Researching unit)))
                • Then - Actions
                  • Player - Set the current research level of (Researched tech-type) to (Current research level of (Researched tech-type) for (Owner of (Researching unit))) for (Picked player)
                • Else - Actions
        • Else - Actions
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Why do you think anything in here causes a desync? Nothing is done locally. Nothing uses a banned function. There are no deformations.

Sleeping a trigger will not cause a desync. Desyncs are not random, they happen because the game state is different between two clients.
 
Top