The command to change the name

Status
Not open for further replies.
Level 1
Joined
Jul 2, 2012
Messages
3
Hi, my question is how to do something such as for example in Titan Land, says that the player -name <what he just comes to mind> and his name is such that Sallis in Komeda some screenshots please.

Thanks in advance.
 
"-name " has 6 characters

Create a trigger "Player 1, 2 3 4 5 6 7 8 9 10 11 12" enters a message displaying "-name " as a substring
Player - Set name of (Triggering Player) to Substring(7, entered chat string).

It will take the entered chat String and set the name of the player from the 7th character to the total of the typed message (tough I think there's a limit of 15 characters for names)

Example:
JASS:
123456 -> 6 characters // -name .
||||||7890123456789 -> 13 characters // MyNameIsReall.
|||||||||||||||||||01234567890 -> 11 Chracters // yReallyLong.
-name MyNameIsReallyReallyLong

If the Limit is 15 characters, the name will remain as: MyNameIsReallyR
 
Status
Not open for further replies.
Back
Top