• 🏆 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!

[General] Adding Titles (Name)

Status
Not open for further replies.
Level 3
Joined
Aug 5, 2017
Messages
20
Hello, I'm trying to have the map set a title before player name without changing player name
For example (Creator) or (Rampaging) or (Death Streak) and remove it after meeting certain conditions.

an example would be Servo312
Applied title (Death Fetish) Servo312
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,552
You can change a Player's name like so:
  • Player - Set name of Player 1 (Red) to <Empty String>

But if you wanted the Player to retain their original name then use a String variable:
  • Set Variable PlayerTitle[1] = ((Creator) + (Name of Player 1 (Red)))
Use Concatenate Strings to combine multiple strings together.

PlayerTitle[] is a String Array. The [index] should be the Player's number (1-28).

An example of it being put to use:
  • Example
    • Events
      • Player - Player 1 (Red) types a chat message containing -test as An exact match
      • Player - Player 2 (Blue) types a chat message containing -test as An exact match
      • Player - Player 3 (Teal) types a chat message containing -test as An exact match
    • Conditions
    • Actions
      • Game - Display to (All players) for 30.00 seconds the text: PlayerTitle[(Player number of (Triggering player))]

How to remove the BNET tag from a player's name (see my first post):
 
Status
Not open for further replies.
Top