• 🏆 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!

You have 30 seconds to live Timer

Status
Not open for further replies.
Level 8
Joined
Jun 16, 2008
Messages
333
I made trigger for a timer but it isn't working right. When a unit dies it starts a timer and when it is finished he revives but it wont work... here is the trigger...
  • Alliance Grave Yard
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set Alliance_grp = (All allies of Player 2 (Blue))
      • Player Group - Pick every player in Alliance_grp and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) slot status) Equal to Is playing
              • ((Picked player) controller) Equal to User
            • Then - Actions
              • Countdown Timer - Create a timer window for AllianceTimer with title ((Name of (Owner of (Dying unit))) + <Empty String>)
              • Countdown Timer - Start AllianceTimer as a One-shot timer that will expire in 30.00 seconds
              • Countdown Timer - Show (Last created timer window) for (Picked player)
              • Game - Display to Alliance_grp the text: ((Name of (Owner of (Dying unit))) + has just died. )
              • Set AllianceHero[(Player number of (Owner of (Dying unit)))] = (Dying unit)
              • Set AllianceTimerWindow[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
            • Else - Actions
      • Custom script: call DestroyForce(udg_Alliance_grp)
and
  • Alliance Timer
    • Events
      • Time - AllianceTimer expires
    • Conditions
    • Actions
      • Set Alliance_Loc = (Center of Alliance GraveYard <gen>)
      • Countdown Timer - Destroy AllianceTimerWindow[(Player number of (Owner of (Dying unit)))]
      • Hero - Instantly revive AllianceHero[(Player number of (Owner of (Dying unit)))] at Alliance_Loc, Show revival graphics
      • Custom script: call RemoveLocation(udg_Alliance_Loc)
 
Level 11
Joined
Sep 12, 2008
Messages
657
2 options by me

1.make all of it as hashtables/Custom values.. Hashtables more prefered..

2.making the timer array, then play with the variables/boleans..

i could make you the hashtables if you want.. just pm me/tell me here..
 
Status
Not open for further replies.
Top