Timer Problem

crazyfanatic

New Member
Reaction score
20
I have made this revival timer trigger, but it has a bug - when the hero is revived, the player gets disconnected. Can anyone tell me why can this happen?

Here is the trigger:
Trigger:
  • Player 1 death
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Countdown Timer - Create a timer window for Player1 with title (colour[1] + ((Name of (Owner of (Triggering unit))) + |r))
      • Set Player1timerw = (Last created timer window)
      • Countdown Timer - Start Player1 as a One-shot timer that will expire in (4.00 + (2.00 x (Real((Hero level of hero[(Player number of (Owner of (Triggering unit)))]))))) seconds
      • Countdown Timer - Show Player1timerw for Player 1 (Red)
      • Countdown Timer - Change the color of the title for Player1timerw to (100.00%, 0.00%, 0.00%) with 0.00% transparency
      • Wait (4.00 + (2.00 x (Real((Hero level of hero[(Player number of (Owner of (Triggering unit)))]))))) seconds
      • Countdown Timer - Destroy Player1timerw
      • Multiboard - Set the display style for Multiboard item in column 5, row row[(Player number of (Owner of (Triggering unit)))] to Hide text and Hide icons
      • Wait 0.01 seconds
      • Hero - Instantly revive hero[1] at (Center of Region 011 <gen>), Show revival graphics
      • Wait 0.01 seconds
      • Camera - Pan camera as necessary for Player 1 (Red) to (Center of Region 011 <gen>) over 0.50 seconds
      • Wait 0.01 seconds
      • Selection - Select hero[1] for Player 1 (Red)
 

Durandal

New Member
Reaction score
11
Trigger:
  • Hero - Instantly revive hero[1] at (Center of Region 011 <gen>), Show revival graphics


You didn't set the dying hero to the hero here in the variable, that's why War3 is freaking out I believe
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Trigger:
  • Hero - Instantly revive hero[1] at (Center of Region 011 <gen>), Show revival graphics


You didn't set the dying hero to the hero here in the variable, that's why War3 is freaking out I believe

Agreed
 

crazyfanatic

New Member
Reaction score
20
Well i actually have set this variable at the game start, it is used in all the triggers that use a specific hero.
 

crazyfanatic

New Member
Reaction score
20
Well it disconnects right after the hero is revived and selected... There are 9 more triggers like tis one that make timers for all players. Its the same every time - hero gets revived - "You were disconnected"
 

jig7c

Stop reading me...-statement
Reaction score
123
it could be the wait that is screwing up...
if could be that your variables in other triggers are not set right...
try the method below, it removes the wait part...

Trigger:
  • Player 1 death
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Countdown Timer - Create a timer window for Player1 with title (colour[1] + ((Name of (Owner of (Triggering unit))) + |r))
      • Set Player1timerw = (Last created timer window)
      • Countdown Timer - Start Player1 as a One-shot timer that will expire in (4.00 + (2.00 x (Real((Hero level of hero[(Player number of (Owner of (Triggering unit)))]))))) seconds
      • Countdown Timer - Show Player1timerw for Player 1 (Red)
      • Countdown Timer - Change the color of the title for Player1timerw to (100.00%, 0.00%, 0.00%) with 0.00% transparency


Trigger:
  • Player1 Revive
    • Events
      • Player1 Expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy Player1timerw
      • Multiboard - Set the display style for Multiboard item in column 5, row row[(Player number of (Owner of (Triggering unit)))] to Hide text and Hide icons
      • Wait 0.01 seconds
      • Set Point = (Center of Region 011 <gen>)
      • Hero - Instantly revive hero[1] at (Point), Show revival graphics
        • ----you might want to try to Create 1 Hero[1] at point... instead of instantly reviving it...
      • Wait 0.01 seconds
      • Camera - Pan camera as necessary for Player 1 (Red) to (Point) over 0.50 seconds
      • Wait 0.01 seconds
      • Selection - Select hero[1] for Player 1 (Red)
      • Custom script: call RemoveLocation (udg_Point)
 
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