• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Using player name's in trigger messages.

Status
Not open for further replies.
Level 3
Joined
Dec 19, 2016
Messages
45
How do I make it so a trigger message uses a player's name in it.

Example: Greetings (player name), welcome to your new base.

If this is possible, could it be used in cinematics as well?

Thank you in advance! :D
 
Level 13
Joined
May 10, 2009
Messages
868
Use "Concatenate strings". Then type your message, and add the player name with the function "Player - Player Name".
  • Game - Display to (All players) the text: (The player + ((Name of (Triggering player)) + is the only one capable of...))
As soon as you click the "(Triggering player)" you'll be able to select a specific player name depending on your needs (e.g: Owner of picked unit, triggering unit, etc...).

If this is possible, could it be used in cinematics as well?

Yes.
 
Status
Not open for further replies.
Top