player types a message containing "name " as a substring
set name of triggering player to substring (string length of "name ", string length of entered chat string)
Maybe dont go to JASS yet )The problem with what you said is that I don't understand this line:
set name of triggering player to substring (string length of "name ", string length of entered chat string)
Maybe dont go to JASS yet )
That way you will be restricted to the names you define in the events. I have tried this before and it named the player whatever name I want; since any word will contain the 26 alphabet.