• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

help me fix getlocalplayer desyncs

Status
Not open for further replies.
Level 21
Joined
Mar 16, 2014
Messages
325
Pushing esc usually causes a desync for the player who pushed esc. I have used these kinds of effects with getlocalplayer in the past, any suggestions?

Trigger does what it's supposed to do in single player fine.

  • Types Popup
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
      • Player - Player 2 (Blue) skips a cinematic sequence
      • Player - Player 3 (Teal) skips a cinematic sequence
      • Player - Player 4 (Purple) skips a cinematic sequence
      • Player - Player 5 (Yellow) skips a cinematic sequence
      • Player - Player 6 (Orange) skips a cinematic sequence
      • Player - Player 7 (Green) skips a cinematic sequence
      • Player - Player 8 (Pink) skips a cinematic sequence
      • Player - Player 9 (Gray) skips a cinematic sequence
      • Player - Player 10 (Light Blue) skips a cinematic sequence
      • Player - Player 11 (Dark Green) skips a cinematic sequence
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Name of (Triggering player)) Not equal to WorldEdit
        • Then - Actions
          • Set VariableSet TypeChartPlayerNumber = ((Player number of (Triggering player)) - 1)
          • Trigger - Run Types Popup 2 <gen> (ignoring conditions)
        • Else - Actions
          • Cinematic - Clear the screen of text messages for (Player group((Triggering player))).

  • Types Popup 2
    • Events
    • Conditions
    • Actions
      • Custom script: local player p=Player(udg_TypeChartPlayerNumber)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PlayerTypePopup[TypeChartPlayerNumber] Equal to False
        • Then - Actions
          • Cinematic - Clear the screen of text messages for (Player group((Player((TypeChartPlayerNumber + 1))))).
          • Custom script: if GetLocalPlayer()==p then
          • Cinematic - Fade out over 0.00 seconds using texture war3mapImported\Types10.tga and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
          • Custom script: endif
          • Set VariableSet PlayerTypePopup[TypeChartPlayerNumber] = True
        • Else - Actions
          • Custom script: if GetLocalPlayer()==p then
          • Cinematic - Fade in over 0.00 seconds using texture war3mapImported\Types10.tga and color (100.00%, 100.00%, 100.00%) with 100.00% transparency
          • Custom script: endif
          • Set VariableSet PlayerTypePopup[TypeChartPlayerNumber] = False
 
Status
Not open for further replies.
Back
Top