HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Timers - Need a little help.

03-30-2004, 07:07 AM#1
ChoBo)H(StyleZ
Okay...It's easy to kill a single timer window.

With a variable or two it's pretty easy to kill multiple windows for various players dead heroes...

Problem: One person has 2-4 heroes dye, Timer windows come up, Count down, Revive hero...One timer disappears, How do we make the rest of them disappear when I can't use "Set Variable - Set TimerWindow(player number of owner of (dying unit)) to (last created timer window)" ?
03-30-2004, 11:20 AM#2
PEON1577
Quote:
Originally Posted by ChoBo)H(StyleZ
Okay...It's easy to kill a single timer window.

With a variable or two it's pretty easy to kill multiple windows for various players dead heroes...

Problem: One person has 2-4 heroes dye, Timer windows come up, Count down, Revive hero...One timer disappears, How do we make the rest of them disappear when I can't use "Set Variable - Set TimerWindow(player number of owner of (dying unit)) to (last created timer window)" ?

have you tryed keeping track of the player numbers and using that to destory the timers? if you cant get something to work i'll try doing something up in the world editor.
03-30-2004, 11:26 PM#3
ChoBo)H(StyleZ
Quote:
Originally Posted by wc3jass3
have you tryed keeping track of the player numbers and using that to destory the timers? if you cant get something to work i'll try doing something up in the world editor.

The problem with this is that each player can have multiple heroes, If one player has more than one hero die, than using their player number will still only destroy one timer.
03-31-2004, 01:26 AM#4
Ligature
You need a 2-d array! You can fake them using two arrays, one to hold lengths of imaginary 2nd dimension arrays and one to hold all the actual data.

Or you can have one timer array for each player. If there aren't too many players, that's probably the way to go.