I have a Hero Selection Screen. I have dialog items, that is buttons which each spawn their hero when clicked.
Now, I have a problem.
When they are clicked, I want them to be disabled for all other players. I have the following in my trigger:
Events:
Any Dialog Item is pressed by Player Any Player with event type Clicked
Actions:
If
(Used Dialog Item) = *hero name here*
Then
Dialog - Hide (Used Dialog Item) for (All Players).
I have the same action performed for the rest of the heroes in the same trigger.
The problem is, this hides the pressed button by any player for all others, BUT, I want another thing that will hide the rest of the buttons, or the entire dialog, for the player that clicked it.
But for some reason, Blizzard decided to put COMPLETELY different functions for things regarding dialogs, therefore I don't have the "Triggering Player" function -.-. I only have Active Players, All Players, Objective Players and other completely useless functions for my case.
My question is, how do I disable all the buttons or hide the entire dialog for the triggering player T_T?
Set a Boolean as an Array, set it to false, and when a player clicks it, set that dialog button as True, so if variable = true, then display message "Button Disabled"
Along with All Players, Active Players etc. there's an option called "Convert Player to Player Group", that will let you specify a single player.
Also, you don't have to hide the dialog item, there's a "Disable Dialog Item" function that grays it out.
But for some reason, Blizzard decided to put COMPLETELY different functions for things regarding dialogs, therefore I don't have the "Triggering Player" function -.-. I only have Active Players, All Players, Objective Players and other completely useless functions for my case.
I think you have to use "Convert Player to Player Group"
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ok, so this has driven me crazy.
I have a Hero Selection Screen. I have dialog items, that is buttons which each spawn their hero when clicked.
Now, I have a problem.
When they are clicked, I want them to be disabled for all other players. I have the following in my trigger:
Events:
Any Dialog Item is pressed by Player Any Player with event type Clicked
Actions:
If
(Used Dialog Item) = *hero name here*
Then
Dialog - Hide (Used Dialog Item) for (All Players).
I have the same action performed for the rest of the heroes in the same trigger. The problem is, this hides the pressed button by any player for all others, BUT, I want another thing that will hide the rest of the buttons, or the entire dialog, for the player that clicked it.
But for some reason, Blizzard decided to put COMPLETELY different functions for things regarding dialogs, therefore I don't have the "Triggering Player" function -.-. I only have Active Players, All Players, Objective Players and other completely useless functions for my case.
My question is, how do I disable all the buttons or hide the entire dialog for the triggering player T_T?
Set a Boolean as an Array, set it to false, and when a player clicks it, set that dialog button as True, so if variable = true, then display message "Button Disabled"
Along with All Players, Active Players etc. there's an option called "Convert Player to Player Group", that will let you specify a single player. Also, you don't have to hide the dialog item, there's a "Disable Dialog Item" function that grays it out.
I never knew about that, awesome.
I know about that, I was just trying with EVERYTHING to make it work T_T, so it isn't that in this case.
Thanks for the reply =).
@Starscr3am: Go
I think you have to use "Convert Player to Player Group"