• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[HELP] Wait Problem when Disconnect!

Status
Not open for further replies.
Level 9
Joined
Aug 7, 2009
Messages
380
Hello,
My map, most trigger uses wait [seconds] to set the time with each action in 1 trigger. But, when some player while playing, they disconnected, and war3 start a 30 seconds countdown... and then drop Player ... When it happen, units are paused, but my wait still count? they get leak of time, the action does not work when it sopose to be, some even does not work :eekani::eekani:. Got answer? post here! It may could help me or others, Thanks
 
Level 9
Joined
Aug 7, 2009
Messages
380
Well, below just a part of my trigger
  • Trigger
  • Events
    • Time - Elapsed game time is 5 seconds
  • Conditions
  • Actions
    • Countdown Timer - Start Count1 as a One-shot timer that will expire in 120 seconds
    • Countdown Timer - Create a timer window for Count1 with title Wave1:
    • Set Counter = (Last created timer window)
    • Countdown Timer - Show Counter
    • Wait 120 seconds
    • Trigger - Turn on Trigger 2
    • Countdown Timer - Destroy Counter

  • Trigger 2
  • Events
    • Time - Every 2 seconds of game time
  • Conditions
  • Actions
    • Unit - Create 1 Unit for Player 1 (Red) at (Center of Region1 <gen>) facing Default building facing degrees
    • Set Unit1 = (Last created unit)
    • Unit - Order Unit1 to attack-move to (Center of Region2 <gen>)

The counter start the Trigger 2 (when my friend disconnected) in 90 seconds (while the Counter still 30 seconds left to count) :hohum::hohum:
 
You can do this:
  • Trigger
  • Events
    • Time - Elapsed game time is 5.00 seconds
  • Conditions
  • Actions
    • Countdown Timer - Start Count1 as a One-shot timer that will expire in 120.00 seconds
    • Countdown Timer - Create a timer window for Count1 tiwh title Wave1:
    • Set Counter = (Last created timer window)
  • Trigger2
  • Events
    • Time - Count1 expires
  • Conditions
  • Actions
    • Countdown Timer - Destroy Counter
    • Trigger - Turn on Trigger 3 <gen>
  • Trigger 3
  • Events
    • Time - Every 2.00 seconds of game-time
  • Conditions
  • Actions
    • Set Points[1] = (Center of Region1 <gen>)
    • Set Points[2] = (Center of Region2 <gen>)
    • Unit - Create 1 Unit for Player 1 (Red) at Points[1] facing default building degrees
    • Unit - Order (Last created unit) to Attack-Move to Points[2]
    • Custom script: call RemoveLocation (udg_Points[1])
    • Custom script: call RemoveLocation (udg_Points[2])
 
Status
Not open for further replies.
Top