So I'm trying to set up my hero death/revival trigger to be similar to what you might see with DotA or BattleTanks from WC3, where when a hero is killed that hero's name is broadcast along with the player that killed him.
I figured I would set up a "UI - Display "...." for All Players, however, I don't know how to insert a specific player name in that text. Do I need to set up variables for the unit killed and the unit who did the killing, then somehow put those in my text display?
So I'm trying to set up my hero death/revival trigger to be similar to what you might see with DotA or BattleTanks from WC3, where when a hero is killed that hero's name is broadcast along with the player that killed him.
I figured I would set up a "UI - Display "...." for All Players, however, I don't know how to insert a specific player name in that text. Do I need to set up variables for the unit killed and the unit who did the killing, then somehow put those in my text display?
Very simple:
Events:
Any Unit Dies
Variables:
Dying Player = Owner of (Triggering Unit) Killing Player = Owner of (Killing Unit)
Actions:
UI - Text Message Text = Combine (Killing Player + Combine (" has killed " + Dying Player)) for (All Players) in Alert Area
UI - Text Message Text = Combine (Killing Player + " has killed you") for (Convert Player Group to (Dying Player)) in Subititle
Im not sure if this is correct because I dont have the Editior open, but that should work...