| 04-07-2007, 01:25 AM | #1 |
My current Hero Revival trigger creates the timer but when the hero revives and the timer expires, the timer display remains. ![]() |
| 04-07-2007, 01:57 AM | #2 |
You have to destroy the timer window when the timer expires. Also, you may need to hide it before destroying it. also, right-click: copy as text, paste into [trigger][/trigger] tags. |
| 04-07-2007, 02:09 AM | #3 |
Could you give an example of an action to do this? |
| 04-07-2007, 02:22 AM | #4 |
| 04-07-2007, 02:31 AM | #5 |
This trigger applies to 10 different units, therefore 10 timers could be present at any given time, would that trigger still work? would would it need to be integrated into my original trigger somehow like a If action? |
| 04-07-2007, 03:17 AM | #6 |
If you have u pto 10 timers active, make a global timer array, a global timer window array, start timer_array[player_id_of_dying_hero], make a timer window, store the last crated timer window in the same index, make a trigger for each timer index, and destroy the related window. |
| 04-07-2007, 03:25 AM | #7 |
Blah im still noob at this, could you write a trigger that in cooperates my original trigger please? |
| 04-07-2007, 03:31 AM | #8 |
The part of your trigger you posted is the first part of that i said to do =) Now, just add actions after you start the timer to create a timer window, then set a global timer dialog variable array to last crated timer dialog, with the same index as the timer you started. (index = the number between [ and ] for an array variable) Then, destroy the corresponding timer dialog when the timer expires. |
| 04-07-2007, 03:52 AM | #10 |
Post the timer expiration trigger too? Without that, i can't really just post a trigger. |
| 04-07-2007, 04:11 AM | #13 |
Zwan, with some adjustments to it, that trigger can be used inplace of both of my triggers and do the job i want? |
| 04-07-2007, 04:22 AM | #14 |
Yea. And add this to remove your windows when the hero actually revives. Trigger: These two triggers will revive all your heroes, create the timer windows for players and remove them when the hero revives. You just need a Timer array and a timer window array. These are set to 10 since there are 10 players in the map. |
| 04-07-2007, 05:03 AM | #15 |
Woot it works nicely! |
