• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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