• 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.

How to change name of a player

Status
Not open for further replies.
Level 6
Joined
Feb 25, 2005
Messages
230
guess this would work:

  • setname
    • Events
      • Player - Player 1 (Red) types a chat message containing -setname as A substring
    • Conditions
    • Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 9, (Length of (Entered chat string))))
What you have to do is of course to have an event for each player you think should be able to change their name. What the action does when using substring is that it takes a string (entered chat string) and then takes out a part of it. The part you want is the one after "-setname " (note the space) and to the last letter. This should be from letter nr. 9 to the last letter, Lenght of Entered chat string.

Hope this helped.
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
impossible, sorry, but that is what i know

in WEU you can change a Unit Name, or that is what ive heard, but if it exist it doesnt work on Proper Names

ive heard something about data sets, but ive never seen anything like it
 
Status
Not open for further replies.
Top