HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog

08-26-2003, 09:18 PM#1
Eternal-Agony
Ok, Maybe I'm just a newbie but I can't find a condition for "Player clicking dialog button"

Event: Dialog - A dialog button is clicked for Dialog

Condition: (Clicking Player Equal to Player 1) Non-Existant?!

Action: Something player 1 related.


This sucks, I could have sworn I found a way to do this before without making dialog buttons for each player. Triggering player DOES NOT WORK :(
08-26-2003, 09:21 PM#2
Draco
I'm pretty sure you can't tell who clicked a dialog button unless you use JASS...
08-26-2003, 09:23 PM#3
Raptor--
there is no 'clicking player'

you need to set each dialog button set into an array

event contains all of the button's array clicks
OTHER_dbButton1[1] is clicked, OTHER_dbButton1[2] is clicked, etc...

then in the body of the trigger do:

for int A = 1 to maxplayers
+if OTHER_dbButton1[intA] = (clicked dialogue button) then
+set OTHER_nIndexPlayer = intA

from then on you use OTHER_nIndexPlayer to determine which player it is for, such as game - text message to player(OTHER_nIndexPlayer)

if thats a little unclear i can go into more detail, but i'm a bit lazy right now
08-26-2003, 09:52 PM#4
Eternal-Agony
Quite clear, thanks.