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

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