i made a trigger which should execute when a timer elapses.
well i created that timer and even a window for it,
so that i can see when it is done.
but when the timer reaches 0 nothing happens.
im not a noob im coding and i know how to make such a thing but this really just don't work.
i use the same event in other maps - there it works !? -> wtf
i already tried it with another timer variable and another creation func of the time - nothing worked for me...
now im using a periodic event which counts itself down to 0.
this works but it is not what i wanted. T.t
can anybody help me or is this a random bug which happens when the editor hates his user? xD
it still does not work.
im now using a periodic event which looks how much time left on my timer - that works but it is a shit work arround which i hate...
lol dude, that is the thing which does not work.
i know you want to help me - but pls read first.
the trigger i showed you here is the one with the work arround which works.
but i want to know why the real event which you stated does NOT work... :-(
I can't help when the information you provide is vague. Ie, how was I supposed to know the one you showed me was the work around? If you're not a noob at coding then please structure a question logically otherwise I can't help. I still need the specific example of what wasn't working because lord knows how you were trying to do it.
Can you post a picture of the trigger which alters the timer please.
And you didnt understand what he said obviously. In that trigger remove your condition as its a very pointless one, change the event to Timer Expires. Like this.
BuildersWinEventsTimer-gametimerexpiresLocalVariablesConditionsActions------- UITimer-Hidegametimer_wfor(ActivePlayers)Timer-Destroygametimer_wTimer-Pausegametimer------- ClearUnit-Pauseallunits------- Win MessageUI-Display"Builders won the game - thanks for ..."for(ActivePlayers)toSubtitlearea------- Builder WinPlayerGroup-PickeachplayerinBuildersanddo(Actions)ActionsGame-EndgameinVictoryforplayer(Pickedplayer)(Showdialogs,Showscorescreen)------- Hunters LosePlayerGroup-PickeachplayerinHuntersanddo(Actions)ActionsGame-EndgameinDefeatforplayer(Pickedplayer)(Showdialogs,Showscorescreen)------- Triggers DeactivateTrigger-Turn(Currenttrigger)Off
Yes.. I remade your entire trigger.
EDIT: Ok so if you made a workaround then why are you asking how to fix a trigger your not even using now. And why would you show us the workaround when your asking about a different trigger. You keep claiming your not a noob at coding but as much as that may be, your not very good at asking for help.
Show us the trigger that does not work, the trigger that counts down gametimer and then we can help you.
And by the way, there is absolutly no reason to turn a trigger off when the game is ending for all players. It isn't going to do anything at all except waste your time to add that line in.
i made a trigger which should execute when a timer elapses. well i created that timer and even a window for it, so that i can see when it is done. but when the timer reaches 0 nothing happens.
i thought this would be enough.
but ok, i will show you the trigger for the creation of that timer even if i know that it works due to the fact that the timerwindow works...
http://peeeq.de/gui.php?id=1981
i showed you my trigger with the workarround because this one was working.
but with the expire event and without the condition it did not work - which is very strange if you ask me.
in another map of mine this works perfectly. 0.o
as i already said i made a timer window for the gamestart time to look if the timer runs out and yeah it does - thats why i created the working work arround. but i really want to know why the real event does not work...
btw: the turn off action at the end of the trigger is needed because of the workarround which triggers every second. when i hadn't this turn off and i win or lost the game and still didn't quit it, the win/defeat messages poped up every second ... (not good xD)
Robbepop
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hiho,
i made a trigger which should execute when a timer elapses. well i created that timer and even a window for it, so that i can see when it is done. but when the timer reaches 0 nothing happens.
im not a noob im coding and i know how to make such a thing but this really just don't work. i use the same event in other maps - there it works !? -> wtf
i already tried it with another timer variable and another creation func of the time - nothing worked for me... now im using a periodic event which counts itself down to 0. this works but it is not what i wanted. T.t
can anybody help me or is this a random bug which happens when the editor hates his user? xD
Robbepop
hiho,
bump
it still does not work. im now using a periodic event which looks how much time left on my timer - that works but it is a shit work arround which i hate...
Robbepop
Showing the trigger will be more helpful to solving the problem
hiho,
well perhaps you are right. here we go...
http://peeeq.de/gui.php?id=1964
Robbepop
hiho,
so nobody here has got a clue? is it then a blizzard bug?
Robbepop
Try changing the event to Timer Expires and remove the condition
hiho,
lol dude, that is the thing which does not work. i know you want to help me - but pls read first. the trigger i showed you here is the one with the work arround which works. but i want to know why the real event which you stated does NOT work... :-(
as i said: "im not a noob in coding"
Robbepop
I can't help when the information you provide is vague. Ie, how was I supposed to know the one you showed me was the work around? If you're not a noob at coding then please structure a question logically otherwise I can't help. I still need the specific example of what wasn't working because lord knows how you were trying to do it.
Can you post a picture of the trigger which alters the timer please.
And you didnt understand what he said obviously. In that trigger remove your condition as its a very pointless one, change the event to Timer Expires. Like this.
Yes.. I remade your entire trigger.
EDIT: Ok so if you made a workaround then why are you asking how to fix a trigger your not even using now. And why would you show us the workaround when your asking about a different trigger. You keep claiming your not a noob at coding but as much as that may be, your not very good at asking for help.
Show us the trigger that does not work, the trigger that counts down gametimer and then we can help you.
And by the way, there is absolutly no reason to turn a trigger off when the game is ending for all players. It isn't going to do anything at all except waste your time to add that line in.
hiho,
sry for my late response...
i thought this would be enough. but ok, i will show you the trigger for the creation of that timer even if i know that it works due to the fact that the timerwindow works... http://peeeq.de/gui.php?id=1981
i showed you my trigger with the workarround because this one was working. but with the expire event and without the condition it did not work - which is very strange if you ask me. in another map of mine this works perfectly. 0.o
and here the trigger without the workarround: (not working) http://peeeq.de/gui.php?id=1982
as i already said i made a timer window for the gamestart time to look if the timer runs out and yeah it does - thats why i created the working work arround. but i really want to know why the real event does not work...
btw: the turn off action at the end of the trigger is needed because of the workarround which triggers every second. when i hadn't this turn off and i win or lost the game and still didn't quit it, the win/defeat messages poped up every second ... (not good xD)
Robbepop