HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about triggers

09-26-2003, 12:20 AM#1
Guinsoo
Here's what I'm trying to do.
I open up a dialogue for all active players, and depending on which button is pushed, it creates a unit for the player that clicks the button.
The question I have, however, is that I don't know how to create the unit for the player who clicks the button.
Basically I have seperate triggers for each player that look like this:
Event - Dialogue Button is Clicked
Conditions - (here I want it to say Clicking player = player 1(red)
Action - if clicked dialogue button = this then do that else nothing.
if clicked dialogue button = that then do this else nothing.

However the way I have it now is that there is no condition, because I can't figure out what condition to use.

Can anybody help?
Or even figure out what I'm askin?
09-26-2003, 12:49 AM#2
Draco
If you want to make it simple, have a different identical dialog for each player. Then you can use dialog events and dialog button comparissons easier.
09-30-2003, 06:11 PM#3
Guinsoo
nt
09-30-2003, 06:32 PM#4
D4RKSLAY3R
Would the "current player" option not work for your conditon? or could you make a dummy unit and use "owner of created unit"?
emote_sweat
10-01-2003, 01:12 AM#5
Mr.Obliteration
The bad thing about dialogs, is there is no jass function to find who clicked the dialog, so you have to create a trigger for each player. Furthermore, you cannot create multiple dialogs, so the dialog for each player has to be a dialog array and the buttons have to be dialog button arrays.

I made a huge dialog for 9 players that took ages.
*groan* (hehe)