HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How would I specify which player has clicked a dialog button as an event or condition

10-05-2003, 05:43 AM#1
Zwan
I am having trouble specifying which player has clicked a dialog button. Can this be done?

It seems simple I guess, basically I just have a simple Accept/Decline box, but I can't figure out how to determine which player is accepting or declining to make the appropriate actions.

The triggers are running like:

Trigger 1: (Player X chooses another player)
Player X types XXXX as an exact match

Create Dialog
Add buttons
Set Button Variables
Show Dialog for Player X


Trigger 2 (choosen player recieves accept/decline dialog)
E- Dialog button clicked
C- Clicked button = to blah
A- Create Dialog for Player choosen
Add buttons
Set Variable
Show Dialog for player choosen via 1st trigger

Trigger 3 (problem area)

E- Dialog button clicked
C- Button clicked = to blah
(how do I specify which player has choosen to accept/decline)
10-05-2003, 05:47 AM#2
Supra God CrK
isn't there a condition that says player is equal to?
10-05-2003, 05:53 AM#3
Draco
Nope, I'd use a seperate dialog for each person or only show the dialog to one person at a time.
10-05-2003, 06:06 AM#4
Supra God CrK
hmmm i hate to doubt draco the great himself...but i am going to go checkout my we real quick....i coulda swore i saw it...
10-05-2003, 06:09 AM#5
Draco
There are dialog button conditions, but no player condition, unless a triggering player condition would work in your case.

And you're sigs kinda huge. :D
10-05-2003, 06:26 AM#6
Zwan
I solved It, I just created a PlayerGroup Variable, and add the player choosen into the PlayerGroup in the 2nd trigger, and run the condition If playerX is in playergroup on the 3rd trigger.

Seems to be working fine.