Hi, I'm trying to fix my hero selection dialog problem. Right now when any unit is picked by any player, all the hero selection dialog for all players are destroyed. (Because I have "Destroy all Dialog" action.) I would like to destroy all dialog for a player once they've picked a unit, and destroy the (dialog items that are involved with that picked unit) for any other players still picking.
I planned on hiding the dialog for a player when he picks, and destroying the dialog items attached to his picked unit. I think I have that, but then, that means I have to make a trigger for after every player has picked, destroy all dialog. Or will that allow people to still click where the (now hidden) dialog buttons were and create another hero... that would be bad.
If the above scenario will work, I still do not know how to set up the Destroy Dialog trigger. I would have to make a counter or something that says if active players = 1, and player 1 has picked, destroy all dialog
if active players = 2, and players 1 and 2 have picked, destroy all dialog
if active players = 3, and players 1, 2, and 3 have picked, destroy all dialog.
(at least that would make sense to me, but I'm not sure how to see how many active players there are and act accordingly)
Please help!
-Thanks :)
GothithePriest
Destroying the dialog remove it from the memory to take spaces for other stuff, you better just hide dialog/ dialog item for specific player instead, and remove the entire dialog when the game goes one later
Hi, I'm trying to fix my hero selection dialog problem. Right now when any unit is picked by any player, all the hero selection dialog for all players are destroyed. (Because I have "Destroy all Dialog" action.) I would like to destroy all dialog for a player once they've picked a unit, and destroy the (dialog items that are involved with that picked unit) for any other players still picking.
I planned on hiding the dialog for a player when he picks, and destroying the dialog items attached to his picked unit. I think I have that, but then, that means I have to make a trigger for after every player has picked, destroy all dialog. Or will that allow people to still click where the (now hidden) dialog buttons were and create another hero... that would be bad.
If the above scenario will work, I still do not know how to set up the Destroy Dialog trigger. I would have to make a counter or something that says if active players = 1, and player 1 has picked, destroy all dialog if active players = 2, and players 1 and 2 have picked, destroy all dialog if active players = 3, and players 1, 2, and 3 have picked, destroy all dialog.
(at least that would make sense to me, but I'm not sure how to see how many active players there are and act accordingly) Please help! -Thanks :) GothithePriest
@GothiThePriest: Go
Destroying the dialog remove it from the memory to take spaces for other stuff, you better just hide dialog/ dialog item for specific player instead, and remove the entire dialog when the game goes one later
Oh ok thanks!