Need help with name trigger

Status
Not open for further replies.
Level 1
Joined
Jan 2, 2008
Messages
3
  • 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.
 
Level 6
Joined
Nov 12, 2007
Messages
134
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:
Level 1
Joined
Jan 2, 2008
Messages
3
  • 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
 
Level 1
Joined
Jan 2, 2008
Messages
3
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.
Top