Need help with name trigger

Status
Not open for further replies.

Fenrir

F

Fenrir

  • name
    • Events
      • Player - Player 8 (Pink) types a chat message containing -name as A substring
      • Player - Player 7 (Green) types a chat message containing -name as A substring
      • Player - Player 6 (Orange) types a chat message containing -name as A substring
      • Player - Player 5 (Yellow) types a chat message containing -name as A substring
      • Player - Player 4 (Purple) types a chat message containing -name as A substring
      • Player - Player 3 (Teal) types a chat message containing -name as A substring
      • Player - Player 2 (Blue) types a chat message containing -name as A substring
      • Player - Player 1 (Red) types a chat message containing -name as A substring
    • Conditions
    • Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 9, (Length of (Entered chat string))))
I got this format from another thread, but every time I tested it it would change my name to (Substring((Entered chat string), 9, (Length of (Entered chat string)))). Someone help me.
 
Also, make sure that you have this condition:

  • Name
    • Events
    • Conditions
      • (Substring((Entered chat string), 1, 6)) Equal to -name
    • Actions

If you don't, people can change their name by typing "-name " even if it's at the end of the entered chat string.
 
Last edited:
  • name
    • Events
      • Player - Player 8 (Pink) types a chat message containing -name as A substring
      • Player - Player 7 (Green) types a chat message containing -name as A substring
      • Player - Player 6 (Orange) types a chat message containing -name as A substring
      • Player - Player 5 (Yellow) types a chat message containing -name as A substring
      • Player - Player 4 (Purple) types a chat message containing -name as A substring
      • Player - Player 3 (Teal) types a chat message containing -name as A substring
      • Player - Player 2 (Blue) types a chat message containing -name as A substring
      • Player - Player 1 (Red) types a chat message containing -name as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 6)) Equal to -name
    • Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, (Length of (Entered chat string))))

This is the trigger after doing what everyone says, and now its not doing anything
 
And I honestly, have NO idea about JASS or GUI or w/e, so don't expect me to understand those things.
 
Status
Not open for further replies.
Back
Top