Here's the trigger_
-
Name
-

Events
-


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

Conditions
-


(Substring((Entered chat string), 1, 5)) Equal to name
-

Actions
-


Set Hero_Name = (Substring((Entered chat string), 6, (Length of (Entered chat string))))
Or multiplayer
-
Name
-

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
-

Conditions
-


(Substring((Entered chat string), 1, 5)) Equal to name
-

Actions
-


Set Hero_Name[Player number of (triggering player)] = (Substring((Entered chat string), 6, (Length of (Entered chat string))))
If you type
name Arthas
then your name will be Arthas. Instead of Length of (Entered chat string) you can set it to some exact value to limit the max length of name.
Then in cinematics for example, use the variable:
-
Cinematic - Send transmission to Player Group - Player 1 (Red) from Unit named Hero_Name: Play No sound and display Actually, I have no.... Modify duration: Add 2.00 seconds and Wait