• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Player chosen names

Status
Not open for further replies.
Something like this:
  • Change 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
      • 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
    • Actions
      • Player - Set name of Player 1 (Red) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 2 (Blue) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 3 (Teal) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 4 (Purple) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 5 (Yellow) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 6 (Orange) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 7 (Green) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 8 (Pink) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 9 (Gray) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 10 (Light Blue) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 11 (Dark Green) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
      • Player - Set name of Player 12 (Brown) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
You could run a loop, yeah. Lol, I forgot to create one though. I just c'n'ped it over and over and just changed the players. =P Well, loops does essentially the same thing.
 
Level 7
Joined
Oct 14, 2008
Messages
340
Purge, that would change the name of every player, so if player 4 typed -name Leif Erikson, every players name would change to Leif Erikson. You would only need one action, and it would use Triggering Player as opposed to one action for every player.
 
Level 14
Joined
Aug 31, 2009
Messages
775
Like Max said, you want it to be:
  • 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
  • Actions
    • Player - Set name of (Triggering Player) to (Substring((Entered chat string), 6, (Length of (Entered chat string))))
 
Level 10
Joined
Sep 6, 2008
Messages
423
@Darkness-4ever
Max length of name is pretty big :p I used "Blaxor Slayer of Gods" on my friends map and it worked without any signs of problems. If you go bigger and have a multiboard it might be too big but you'll see the whole name in chat etc. as it should.
 
Status
Not open for further replies.
Top