• 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.

[Trigger] -name ????

Status
Not open for further replies.
Level 29
Joined
Jul 29, 2007
Messages
5,174
  • Unknown
    • Events
      • Player - Player 1 (Red) types a chat message containing -name as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 5)) Equal to -name
    • Actions
      • For each (Integer A) from 7 to 20, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Length of (Entered chat string)) Equal to (Integer A)
            • Then - Actions
              • Player - Set name of Player 1 (Red) to (Substring((Entered chat string), 7, (Integer A)))
            • Else - Actions

This would allow player 1 to set a name with 1-14 characters.
If you want to decrease/increase the number just change the 20 to whatever you want.
This will work like the usual [-name Your_name].

[Edit] I just tested it and it seems to be case sensitive so if you for example put it to be -Name instead of -name there IS a diffrence.
 
Last edited:
Status
Not open for further replies.
Top