Showing A Hidden Timer to individual Players

S

Syncourt

Guest
Basically, I have one timer called 'wavetimer' shown in the window 'wavetimerwindow'. When a player achieves a certain wave level I have activated a boss round for that player, during which I have hidden wavetimerwindow for that individual player only.

I got that to work but when it comes to using 'show wavetimerwindow for player X' It will not display the window for them again.

Here's My Triggers:

Creating The Timer & Window
Code:
    Events - (triggered manually after all players are ready)
    Conditions
    Actions
        Countdown Timer - Start WaveTimer as a Repeating timer that will expire in 40.00 seconds
        Countdown Timer - Create a timer window for WaveTimer with title |cff00FF00Until Nex...
        Set WaveTimerWindow = (Last created timer window)
        Countdown Timer - Change the color of the time for WaveTimerWindow to (100.00%, 100.00%, 100.00%) with 0.00% transparency
        Countdown Timer - Start BonusTimer as a Repeating timer that will expire in 600.00 seconds
        Countdown Timer - Create a timer window for BonusTimer with title |cffFFD700Until Bon...
        Set BonusTimerWindow = (Last created timer window)
        Countdown Timer - Change the color of the time for BonusTimerWindow to (100.00%, 100.00%, 100.00%) with 0.00% transparency

Hiding the timer:
Code:
    Events
        Time - WaveTimer expires
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                WaveLevelP1 Equal to 5.00
            Then - Actions                
                Countdown Timer - Hide WaveTimerWindow for Player 1 (Red)
                Set WaveLevelP1 = 6.00
            Else - Actions
                Do nothing

Showing the timer again:
Code:
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Boss Level 5
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Area P1 <gen> contains (Dying unit)) Equal to True
            Then - Actions
                Countdown Timer - Show WaveTimerWindow for Player 1 (Red)
            Else - Actions
                Do nothing

No matter what I try I can't seem to get the window showing back up again. Any Ideas what could be wrong? I've tried putting extra actions in the show timer again trigger, they all activate and work fine except for show timer.
 
S

Syncourt

Guest
Good idea, I pretty much just started learning Jass though. Every line I try combining getlocalplayer and call displaytimerwindow is crashing my editor :( Would you be so kind as to show me the correct way of adding this line please? :eek:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Blackveiled Blackveiled:
    I wouldn't know, I'm in Joliet, Illinois right now working. I left Houston area about 2 weeks ago lol
  • Blackveiled Blackveiled:
    Not permanently of course, just a temporary job.
    +1
  • jonas jonas:
    Glad you're ok @tom_mai78101
  • jonas jonas:
    @Blackveiled you know another word for permanent? temporary
    +1
  • Varine Varine:
    Briefly, he'll only be there for the interim. Like a stopgap of sorts, he'll be back home in short time
  • O Old Mountain Shadow:
    Hurray! Tom has reappeared!
  • The Helper The Helper:
    Happy Thursday!
  • Blackveiled Blackveiled:
    Yep. Just another fun night at work.
  • Varine Varine:
    Broke the nozzle on my 3d printer and I don't have another heater block. So... I guess I'm fucked on that this weekend
  • The Helper The Helper:
    that sucks i bet they are expensive
  • Varine Varine:
    Not really
  • Varine Varine:
    The entire hot end is like 20 dollars, I just can't get anymore until next week
  • Varine Varine:
    I ordered like five blocks for 15 dollars. They're just little aluminum blocks with holes drilled into them
  • Varine Varine:
    They are pretty much disposable. I have shitty nozzles though, and I don't think these were designed for how hot I've run them
  • Varine Varine:
    I tried to extract it but the thing is pretty stuck. Idk what else I can use this for
  • Varine Varine:
    I'll throw it into my scrap stuff box, I'm sure can be used for something
  • Varine Varine:
    I have spare parts for like, everything BUT that block lol. Oh well, I'll print this shit next week I guess. Hopefully it fits
  • Varine Varine:
    I see that, despite your insistence to the contrary, we are becoming a recipe website
  • Varine Varine:
    Which is unique I guess.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top