• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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 15
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