• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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
 
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.
Back
Top