• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Change Player Name bij Chat

Status
Not open for further replies.
Level 16
Joined
Oct 12, 2008
Messages
1,570
Hi guys,

I am trying to make a trigger so that if you say: -name Yixx
that your player name will turn into Yixx..
I tried to do it myself, but the farthest i got is that it changes to -name Yixx
Anyone any help?
I preffer the trigger in GUI..

Tnx, Yixx
 
Level 6
Joined
Mar 15, 2005
Messages
112
  • NameChange
    • 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
      • Player - Player 5 (Yellow) types a chat message containing -name as A substring
      • Player - Player 6 (Orange) types a chat message containing -name as A substring
      • Player - Player 7 (Green) types a chat message containing -name as A substring
      • Player - Player 8 (Pink) types a chat message containing -name as A substring
      • Player - Player 9 (Gray) types a chat message containing -name as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -name as A substring
      • Player - Player 11 (Dark Green) types a chat message containing -name as A substring
      • Player - Player 12 (Brown) types a chat message containing -name as A substring
    • Conditions
      • (Length of (Substring((Entered chat string), 7, (Length of (Entered chat string))))) Less than or equal to (<=) 20
    • Actions
      • Game - Display to (All players) the text: (|cffffcc00 + ((Name of (Triggering player)) + (|r |cff1cffa1has changed his name to|r |cffffcc00 + ((Substring((Entered chat string), 7, (Length of (Entered chat string)))) + .|r |cffc8fc0fNames can only be up to 20 letters/numbers long.|r))))
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, (Length of (Entered chat string))))
This is a copy from one of my maps. The condition is to prevent people from picking a name that is ridiculously long.
 
Status
Not open for further replies.
Top