DialogDisplay

Parameters
whichPlayer player

Target player to whom to show the dialog.

whichDialog dialog

Target dialog.

flag boolean

true to show (or refresh), false to hide.

comment

Open/close the dialog for the target player.

Since the dialogs are created for all players, they are hidden by default. Then you display the dialog to players who should see and interact with it.

note

Dialogs can not be shown at map-init. Use a wait or a zero-timer to display it as soon as possible.

note

Technically, because every player knows about each dialog, cheaters could interact with dialogs that are invisible to them.

return type
nothing
Source code
native DialogDisplay                takes player whichPlayer, dialog whichDialog, boolean flag returns nothing
Source
dialog.j
wc3modding.com
DialogDisplay