This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hello,
I am looking for a way to ''wait for condition'' then start timer
The condition is : The unit of Player 15 (Zerg's team) are in combat. (being attacked or attacking)
You help is welcome ! ;)
maybe give the unit an autocast ability which has an in-combat-validator. You can catch this ability with an event.
I'll try that. but with the trigger i currently use it might be hard.
Events Timer - Chrono expires Local Variables Conditions Actions General - If (Conditions) then do (Actions) else do (Actions) If Day == true Then Variable - Set Day = false Variable - Set Temps = (Integer(TempsNight)) Timer - Start Chrono as a Repeating timer that will expire in TempsNight Game Time seconds Sound - Play Music LostViking_MusicBossFightLoop (Any Soundtrack Index) for (All players) (with cue Any Cue) and Do make default UI - Display "It's Night! Prepare yourself!" for (All players) to Subtitle area Trigger - Run ZergBoss (Check Conditions, Don't Wait until it finishes) Trigger - Turn ZergInvasion On Environment - Set lighting to BelShirNight, blending over 5.0 seconds General - Wait 10.0 Game Time seconds Environment - Set lighting to BelShirFindeNuit, blending over TempsNight seconds Else Variable - Set Day = true Variable - Set Temps = (Integer(TempsDay)) Trigger - Turn ZergInvasion Off Timer - Start Chrono as a Repeating timer that will expire in TempsDay Game Time seconds Sound - Play Music Music_ProtLow (Unnamed) (Any Soundtrack Index) for (All players) (with cue Any Cue) and Do make default UI - Display "It's Day!" for (All players) to Subtitle area Show "Vote Dialog" dialog for player Host. Trigger - Run StartDay (Check Conditions, Don't Wait until it finishes) General - If (Conditions) then do (Actions) else do (Actions) If Zerg Kill == 0 Then General - If (Conditions) then do (Actions) else do (Actions) If Warned == false Then UI - Display "No zerglings were killed last night..." for (All players) to Subtitle area Variable - Set Warned = true Else UI - Display "No zerglings were killed for the 2n..." for (All players) to Subtitle area General - Wait 10.0 Game Time seconds Player Group - Pick each player in ProbeGroupPlayer and do (Actions) Actions Game - End game in Defeat for player (Picked player) (Hide dialogs, Hide score screen) Else General - If (Conditions) then do (Actions) else do (Actions) If Warned == true Then Variable - Set Warned = false UI - Display "Warning removed." for (All players) to Subtitle area Else Variable - Set Zerg Kill = 0 Environment - Set lighting to Bel'Shir, blending over 5.0 seconds General - Wait 10.0 Game Time seconds Environment - Set lighting to Bel'Shir Fin de journée, blending over TempsDay seconds
i want
Timer - Start Chrono as a Repeating timer that will expire in TempsNight Game Time seconds
to start when zerg unit enter combat.
maybe i should split this into 2 differents triggers.
anyone else have an idea how to do this ?
Events Unit is attacked Unit begins attacking Conditions Owner of triggering unit == 15 Elapsed time of Timer = 0 Actions Start Timer for 30 seconds, etc.
You might have to tweak it a bit but that should get you started
Hello,
I am looking for a way to ''wait for condition'' then start timer
The condition is : The unit of Player 15 (Zerg's team) are in combat. (being attacked or attacking)
You help is welcome ! ;)
maybe give the unit an autocast ability which has an in-combat-validator. You can catch this ability with an event.
I'll try that. but with the trigger i currently use it might be hard.
i want
Timer - Start Chrono as a Repeating timer that will expire in TempsNight Game Time seconds
to start when zerg unit enter combat.
maybe i should split this into 2 differents triggers.
anyone else have an idea how to do this ?
You might have to tweak it a bit but that should get you started