Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Untitled Trigger 001

Events


Player - Player 1 (Red) types a chat message containing A as A substring


Player - Player 1 (Red) types a chat message containing B as A substring


Player - Player 1 (Red) types a chat message containing C as A substring


Player - Player 1 (Red) types a chat message containing D as A substring


Player - Player 1 (Red) types a chat message containing E as A substring


Player - Player 1 (Red) types a chat message containing F as A substring


-------- repeat all this events with the remaining alphabets or numbers (if you need numbers in the name) --------


Player - Player 1 (Red) types a chat message containing Z as A substring

Conditions

Actions


Player - Set name of Player 1 (Red) to (Entered chat string)
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)
Player - Set name of (Triggering Player) to (Substring((Length of "name "), Length of (Entered Chat string)))
rename

Events


Player - Player 1 (Red) types a chat message containing -name as A substring


Player - Player 2 (Blue) types a chat message containing -name as A substring


Player - Player 3 (Teal) types a chat message containing -name as A substring


Player - Player 4 (Purple) types a chat message containing -name as A substring

Conditions

Actions


Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, (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.