My map has two game variants. One for the normal game and one for the tutorial. I need certain things to be triggered for each game variant.
It seems there should be a condition that checks what game variant is being played. I have not been able to find anything. There are lots of conditions related to the lobby settings. These lobby setting can be set up for each game variant. So for my trigger to determine what game mode is being run I tried having an if then check what the lobby count down delay is. However this doesn't seem to work with my tests in the 1.5 beta and release map editors.
Does anyone know a way for my triggers to determine what game variant is being played?
You can add a hidden game attribute, which is set by the game variant and check this attribute via trigger. Afaik, it is impossible to check the variant directly.
Just make a Boolean variable. Set the variable to the game variant on map initiazation. Then where you want to implement the changes use a if-then-else if variable=game variant then do blah else blah
My map has two game variants. One for the normal game and one for the tutorial. I need certain things to be triggered for each game variant. It seems there should be a condition that checks what game variant is being played. I have not been able to find anything. There are lots of conditions related to the lobby settings. These lobby setting can be set up for each game variant. So for my trigger to determine what game mode is being run I tried having an if then check what the lobby count down delay is. However this doesn't seem to work with my tests in the 1.5 beta and release map editors.
Does anyone know a way for my triggers to determine what game variant is being played?
You can add a hidden game attribute, which is set by the game variant and check this attribute via trigger. Afaik, it is impossible to check the variant directly.
@IggNight: Go
Can't you just make boolean variables and when the tutorial is on u set Tutorial == On and for game Game == On. O r maybe i didnt quite understand.
Just make a Boolean variable. Set the variable to the game variant on map initiazation. Then where you want to implement the changes use a if-then-else if variable=game variant then do blah else blah
Thank you Kueken531, I never made my own game attribute before. Battlenet won't let me upload this to fully test it, but it seems to fix my problem.
I guess my question was a bit too confusing for others. :D