Timer window trouble

Craigimus

New Member
This is my timer winow start (its run from another trigger)

Code:
Mission 1 Red Timer
    Events
    Conditions
    Actions
        Hero - Make Player 1 (Red) Heroes gain 0.00% experience from future kills
        Countdown Timer - Create a timer window for Mission_Red_Timer with title Time Left
        Countdown Timer - Start Mission_Red_Timer as a One-shot timer that will expire in 300.00 seconds
        Countdown Timer - Show (Last created timer window) for Player 1 (Red)
        Wait 300.00 seconds
        Countdown Timer - Destroy (Last created timer window)

The timer starts in the top right but as soon this trigger starts spwaning units it disappears.

So pretty much as soon as a unit is spawned in the area the timer dissappears but the timer still runs you just cant see it.

Code:
Five Minutes 20 Kills Red
    Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        Unit - Create 5 Ghoul (01) for Player 12 (Brown) at (Random point in Red Spawns <gen>) facing Default building facing (270.0) degrees
 

Prometheus

Everything is mutable; nothing is sacred
Staff member
Code:
        Wait 300.00 seconds
        Countdown Timer - Destroy (Last created timer window)
Remove the timer window destroy function?
 

Pharaoh_

The epic journey will soon begin... Prepare!
Code:
 Unit - Create 5 Ghoul (01) for Player 12 (Brown) at (Random point in Red Spawns <gen>) facing Default building facing (270.0) degrees
This will cause leaks by the way.
 

Pharaoh_

The epic journey will soon begin... Prepare!
I think yes; the countdown timer is already set to expire in 300 seconds. The Destroy function is for example: (Quest type map): "You have 300 seconds to leave the city!" Now, If unit leaves specific region before those 300 seconds, destroy last created countdown timer.
 

Prometheus

Everything is mutable; nothing is sacred
Staff member
Waits aren't accurate.
Make a global real variable called ticker.

As you can tell, my GUI isn't the best. I code in Jass 100% of the time. :)
Code:
Five Minutes 20 Kills Red
    Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        if ticker == 300 then turn off(this trigger)
        destroy timer window
        skip remaining actions
        Unit - Create 5 Ghoul (01) for Player 12 (Brown) at (Random point in Red Spawns <gen>) facing Default building facing (270.0) degrees
        Set ticker = ticker + 1
 

Pharaoh_

The epic journey will soon begin... Prepare!
By the way, kc102, how can you know Jass better than GUi? GUI is silly compared to Jass, lol!
 

Prometheus

Everything is mutable; nothing is sacred
Staff member
Theres this phenomenon with some Jass users. GUI becomes hard to read.

And I haven't made anything in GUI, in ages. But my code gave the basic idea, just not the exact function calls.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    oh shit Hatebreeder is on the site
  • Ghan Ghan:
    Site Log, 1/7/22: TH changed his avatar today. Speculation among the crew is that this heralds the end times are upon us. Only time will tell.
    +1
  • jonas jonas:
    TH changed profile pictures before no hasty conclusions
  • jonas jonas:
    didn't he used to have just TH in blue letters or something like that?
  • The Helper The Helper:
    I have had a number of different profile pics in the past - I just changed it to the NUON award pic because there is stuff going on with NUON right now hint hint
  • The Helper The Helper:
    plus I just added an Atari Jaguar forum lol maybe Ghan is right about the end times lol
  • The Helper The Helper:
    If I can get this NUON stuff going that is going to be good
  • The Helper The Helper:
    on a side note and totally out of nowhere I am buying a bass guitar and am going to try and learn it
    +1
  • The Helper The Helper:
    I am about to go to a friends house and dig his Atari Jaguar collection out of the attic and get it ready to sell
  • The Helper The Helper:
    and my friend is such a slacker he could only put his hands on the base jag and cd unit no wires, power supply or games they are still buried somewhere in the attic for another time.
  • The Helper The Helper:
    250 Members online and most of them looking at American Airlines below economy class post that I bumped the other day LOL
  • The Helper The Helper:
    actually 249 guest not members
  • Varine Varine:
    Is there even 250 members that have logged in in the last couple years? I feel like there's maybe 30 of us
  • The Helper The Helper:
    I am not tracking that stat but I would have to say probably not
  • tom_mai78101 tom_mai78101:
    Would like to get some annual forum statistics report.
  • The Helper The Helper:
    there are stats in the xenforo forum admin section and we have matomo stats we started collecting beginning of the year so we will not have annual on that until next year
  • The Helper The Helper:
    I thought you had keys to the bathroom Tom? Ghan does Tom have access to the stats thread in the bathroom
  • The Helper The Helper:
    since I started jacking with the bots on the site we doubled our page views on the site in a week lol
  • The Helper The Helper:
    I have been having lots of fun
  • The Helper The Helper:
    we have had like 6000 views of the American Airlines economy class thread in the last week
  • The Helper The Helper:
    I ought to stick a travel affiliate link or something on that page to try and monetize that they are just going there and leaving it might even be bots I am not sure
  • The Helper The Helper:
    I just got into it with the Atari VCS Facebook Moderator I started trolling him and almost got banned
  • The Helper The Helper:
    They deleted one of my posts one time so I was trolling him on a help post I put up because I am evil I guess and bored and the guy handled it well I loved his attitude Atari has a good social media presence even if they do not have many games.
  • The Helper The Helper:
    The French Atari they call them even though they are like totally based in America they just have French Money coming in. Gotta love it

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome
    Top