• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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.
 
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.
 
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))))
 
@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.
Back
Top