• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] Need help setting player name!

Status
Not open for further replies.
Level 4
Joined
May 2, 2009
Messages
69
I want to make it so at the start it says "Type in your name" and whatever you type replaces your player name. The problem is the only things you can do to replace it are things where you have to know exactly what to type in, like this:
  • Set Name
    • Events
      • Player - Player 1 (Red) types a chat message containing (Typed in name) as A substring
    • Conditions
    • Actions
      • Set PlayerName[1] = (Entered chat string)
Anyone know how to fix it?
 
Level 24
Joined
Feb 28, 2007
Messages
3,480
  • TriggerName
    • Events
      • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
      • Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
      • Player - As many more players as you need
    • Conditions
    • Actions
      • Player - Set name of (Triggering player) to (Entered chat string)
That should work.
 
Status
Not open for further replies.
Top