Hi. Im looking for a way to get a player's name and then place it into a piece of text within the "text message" trigger. For example, in what im making, whenever the player's hero unit dies; a trigger will fire and create a text message that says "(Player name) has been destroyed". It would be a massive help if someone would show me how to accomplish this. Thankyou for your time...
UI - Display (Combine ((Name of player (Triggering player)), " has been destroyed")) for (All players) to Subtitle area
Message: Combine Text Multiple
Text: Name Of Player
Player: Triggering Player
Text: " has been destroyed"
Players: All Players
Message Area: Subtitle
One has to get the player's name as text. One can then combine it with any other text as normal.
When you make an ability, you can set the button hotkey to be whatever you want, including multiple keys separated by a +. If you want a notification message everytime they use that ability, you can use that method.
Then in triggers:
You can make an event for ability is used. This will give you all the info you need, as you can reference owner of triggering unit to get the player name. You should be able to create the message with what you have here.