I've been trying and trying to get this custom dialog to work. I don't want to give away too much about my map yet so maybe someone can just point me in the right direction. I'm trying to get a custom dialog with 6 unit selections to pop up when a unit enters an area. I've got the dialog worked out, the unit spawns when the dialog is clicked but if another played enters the same area the dialog for the 1st played buggs out and wont spawn a unit anymore and will not close when the unit leaves the area. I've looked everywhere for custom multiplayer dialog tutorials but cant find anything that will work for me. Im doing all this through 3 triggers. 1 trigger to spawn the dialog with 6 buttons when the unit entered the area. a 2nd to monitor dialog item used. and a 3 when player leaves area to clos the dialog. i need the dialog to work for 6 seperate players. whats the best way to make this work?
I know nothing about how functions or action definitions work so maybe thats my problem. also if anyone does know a good tutorial on action definitions and functions and how they work that would be great. Thanks! Sorry for the wall of text.
Well, it seems you messed up whom to show the dialog to.
First of all: Do you create the dialog and all of it's buttons everytime a unit enters the region, or do you just show/hide it?
If you create it everytime, then you should change that (just create it once in a Map Init trigger and then use the action Show/Hide Dialog to display it to the individual players).
To me it sounds like you create the dialog everytime a unit enters an area. At least that would be an explanation why it bugs for the first player.
Because all your dialog variables are set to the new dialog, but the old one is still active. Then the old one's buttons don't work anymore.
But one dialog can be shown and hidden for different players. So everyone can use the same dialog.
I've been trying and trying to get this custom dialog to work. I don't want to give away too much about my map yet so maybe someone can just point me in the right direction. I'm trying to get a custom dialog with 6 unit selections to pop up when a unit enters an area. I've got the dialog worked out, the unit spawns when the dialog is clicked but if another played enters the same area the dialog for the 1st played buggs out and wont spawn a unit anymore and will not close when the unit leaves the area. I've looked everywhere for custom multiplayer dialog tutorials but cant find anything that will work for me. Im doing all this through 3 triggers. 1 trigger to spawn the dialog with 6 buttons when the unit entered the area. a 2nd to monitor dialog item used. and a 3 when player leaves area to clos the dialog. i need the dialog to work for 6 seperate players. whats the best way to make this work?
I know nothing about how functions or action definitions work so maybe thats my problem. also if anyone does know a good tutorial on action definitions and functions and how they work that would be great. Thanks! Sorry for the wall of text.
Well, it seems you messed up whom to show the dialog to.
First of all: Do you create the dialog and all of it's buttons everytime a unit enters the region, or do you just show/hide it? If you create it everytime, then you should change that (just create it once in a Map Init trigger and then use the action Show/Hide Dialog to display it to the individual players).
To me it sounds like you create the dialog everytime a unit enters an area. At least that would be an explanation why it bugs for the first player. Because all your dialog variables are set to the new dialog, but the old one is still active. Then the old one's buttons don't work anymore.
But one dialog can be shown and hidden for different players. So everyone can use the same dialog.
@s3rius: Go
hmm, ill try creating the dialog and just showing/hiding it when a unit enters the area. thanks
@s3rius: Go Worked perfect. I just overlooked that. Thanks very much!