• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

changing names in game

Status
Not open for further replies.
  • Events
    • Player - Player 1 (Red) types a message containing -name as a substring
  • Conditions
  • Actions
    • Set newName = (Entered Chat String)
    • Set newName = Sustring( newName, 7, Lenght(newName) )
    • Player - Set name of (Triggering Player) to newName
That is, whenever a player types the command to change name, it will store the string from the 7th character on ("-name " has 6 chars, so stat from the 7th) and change the name of the player who typed it.
 
ok. i have the event, but i dont know where you can find the first two actions?
i looked all over the actions but the only closest thing i could find was
Player - Set name of Player 1 (Red) to (entered chat string)
or is that it? :confused:
 
Status
Not open for further replies.
Back
Top