I am working on a mod witch will give a visual alert when the player is close to supply block.
The alert is given by a pulsing image (no dialog).
How can i make the image only appear for a specific player ? (The one who is close to supply block).
The problem is that the action « Dialog - Display image » do not have a player field.
So i can't use it to show the image to the specific player.
As it is now, the alert is displayed to all the players when a player is close to supply blocked.
So, do I have to use a dialog or i there any other solution ?
Yeah, it's better to create your own dialogs. Screen buttons/images are easier to use, but they'll limit you in the long run.
Screen buttons/images are actually just dialog items, provided by Blizzard as a convenience. You can check out the implementation of "Pulse Screen Image" in the Built-In library. Just enable View —> Show Libraries and navigate to the folder Built-In / Dialog / Screen Image. You can copy everything there, paste it into your document and modify it to suit your purposes.