HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Timer Windows for 10 players

01-20-2006, 08:15 AM#1
Electricall
Ok, I found a nice AoS I'm changing around a bit. There's lots of stuff I'm changing, one of them is adding a timer window for counting down to the revival of a killed hero. It always takes 30 seconds to revive a hero, also. Problem is, if several heroes are killed in a short amount of time, they each get their own timer windows all right but the earlier ones "remove the last created timer window", which is another player's timer (yeah I'm a noob). I know it's solvable through the use of variables, but I haven't been able to find the solution yet. You can't choose a specific timer window variable with the remove timer window trigger.

Another question, which doesn't really have anything to do with triggers, but I'm busy so here goes: The two sides are of the sun and the moon, respectively, and besides having big health regen during their time of day, I'd like to give them some other bonuses like improved move speed and higher armor during their time. In this manner, the moon team would be stronger during the night and could makes great strides, and the opposite would true of the sun team.
01-20-2006, 02:14 PM#2
Zoxc
I suggest you use a multiboard with timers instead of timer windows.
01-20-2006, 04:30 PM#3
Tim.
GetLocalPLayer() perhaps?
01-20-2006, 06:11 PM#4
Zoxc
Quote:
Originally Posted by blizzard.j
Collapse JASS:
function TimerDialogDisplayForPlayerBJ takes boolean show, timerdialog td, player whichPlayer returns nothing
    if (GetLocalPlayer() == whichPlayer) then
        // Use only local code (no net traffic) within this block to avoid desyncs.
        call TimerDialogDisplay(td, show)
    endif
endfunction

Might be possible "without", aka pure GUI...