Seriously, how do you guys get rid of your boss bars once the boss dies/is removed/whatever?
I tried Hide/Show Boss Bar (Translated) but it really doesn't seem to work. All the other actions in my Reset-Level trigger are executed just fine and if I Update (!) the Boss bar it actually becomes 0/0. BUT I cant hide it. Yea. -_-
Ok, my editor is in german but i will post the trigger anyways, trying to translate the important parts.
Level 3 Bossbar
Ereignisse
Einheit -Level3Boss Untätigkeit Beenden (The boss stops doing nothing. This is triggered)
Lokale Variablen
Bedingungen
Aktionen
UI -Bossleiste 3 mit Titel "Corrupt Colonel", Porträt Assets\Textures\ui_chatbaricons_terran_individual.dds und Maximalwert 100 für PlayersInLevel3 anzeigen (creation of the boss bar)
UI -Boss Level3Boss für Bossleiste 3 auf (Bossleiste aktualisieren Tu ) (setting the bossbar 3 to Level3Boss)
UI -Bossleiste 3 auf Oben von Bildschirm mit Offset (0, 100) bewegen (movement of the boss bar 3)
Allgemein -Auf (Konditionen) warten und alle 5.0 Spielzeit Sekunden überprüfen ( checking every 5 sec. if the condition is fullfilled)
Bedingungen
(Anzahl der Spieler in PlayersInLevel3) == 0 (Numbers of players in group PlayersInLevel3 equals 0)
UI -"Test!" von (Alle Spieler) im Bereich Untertitel einblenden (Print out "Test!")
UI -Bossleiste 3 Ausblenden (Hide bossbar 3)
Here's the deal: The boss bar is generated. The linking works. AND "Test!" is printed once the hero leaves the level. Seriously, im puzzled. :-(
Thanks in advance...I hope the translation is ok...
Yeah, same here. My german is very basic too. I agree that what you pasted seems ok.
I doubt it will help, but I'd pull the periodic check to a new trigger that has a periodic event instead. Have this new trigger disabled by default and enable it from the trigger you pasted. Disable it once again when you don't need it.
I'm not a big fan of triggers that loop until X happens, and sometimes they actually make things break.
@Berrala: Go
Thanks for the advice guys, but I actually kinda fixed this. :-)
Turns out that when you show the boss bar for a specific player group you can hide it ONLY for that player group! Logically when I removed all players from PlayersInLevel3 I couldnt hide the boss bar anymore.
I just changed the trigger to show the boss bar to all players ingame and it worked right away. It's not the best solution but at least I know whats going on.. :-)
Anyways thanks for your efforts, it's appreciated.
Greetings
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Seriously, how do you guys get rid of your boss bars once the boss dies/is removed/whatever?
I tried Hide/Show Boss Bar (Translated) but it really doesn't seem to work. All the other actions in my Reset-Level trigger are executed just fine and if I Update (!) the Boss bar it actually becomes 0/0. BUT I cant hide it. Yea. -_-
Are you sure you are calling the correct boss bar ID?
Help us help you. Paste your boss bar triggers here so we can take a look and tell you whats going on and possibly where something has gone wrong.
Ok, my editor is in german but i will post the trigger anyways, trying to translate the important parts.
Level 3 Bossbar
Ereignisse Einheit -Level3Boss Untätigkeit Beenden (The boss stops doing nothing. This is triggered)
Lokale Variablen
Bedingungen
Aktionen
UI -Bossleiste 3 mit Titel "Corrupt Colonel", Porträt Assets\Textures\ui_chatbaricons_terran_individual.dds und Maximalwert 100 für PlayersInLevel3 anzeigen (creation of the boss bar)
UI -Boss Level3Boss für Bossleiste 3 auf (Bossleiste aktualisieren Tu ) (setting the bossbar 3 to Level3Boss)
UI -Bossleiste 3 auf Oben von Bildschirm mit Offset (0, 100) bewegen (movement of the boss bar 3)
Allgemein -Auf (Konditionen) warten und alle 5.0 Spielzeit Sekunden überprüfen ( checking every 5 sec. if the condition is fullfilled)
Bedingungen (Anzahl der Spieler in PlayersInLevel3) == 0 (Numbers of players in group PlayersInLevel3 equals 0)
UI -"Test!" von (Alle Spieler) im Bereich Untertitel einblenden (Print out "Test!")
UI -Bossleiste 3 Ausblenden (Hide bossbar 3)
Here's the deal: The boss bar is generated. The linking works. AND "Test!" is printed once the hero leaves the level. Seriously, im puzzled. :-(
Thanks in advance...I hope the translation is ok...
@Obatztrara: Go
Ah. German client :/. Well, as far as i can see it's fine, but i'm not the best at my deutsch.
Yeah, same here. My german is very basic too. I agree that what you pasted seems ok.
I doubt it will help, but I'd pull the periodic check to a new trigger that has a periodic event instead. Have this new trigger disabled by default and enable it from the trigger you pasted. Disable it once again when you don't need it.
I'm not a big fan of triggers that loop until X happens, and sometimes they actually make things break.
@Berrala: Go Thanks for the advice guys, but I actually kinda fixed this. :-)
Turns out that when you show the boss bar for a specific player group you can hide it ONLY for that player group! Logically when I removed all players from PlayersInLevel3 I couldnt hide the boss bar anymore.
I just changed the trigger to show the boss bar to all players ingame and it worked right away. It's not the best solution but at least I know whats going on.. :-)
Anyways thanks for your efforts, it's appreciated.
Greetings