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

The command to change the name

Status
Not open for further replies.
Level 1
Joined
Jul 2, 2012
Messages
3
Hi, my question is how to do something such as for example in Titan Land, says that the player -name <what he just comes to mind> and his name is such that Sallis in Komeda some screenshots please.

Thanks in advance.
 
"-name " has 6 characters

Create a trigger "Player 1, 2 3 4 5 6 7 8 9 10 11 12" enters a message displaying "-name " as a substring
Player - Set name of (Triggering Player) to Substring(7, entered chat string).

It will take the entered chat String and set the name of the player from the 7th character to the total of the typed message (tough I think there's a limit of 15 characters for names)

Example:
JASS:
123456 -> 6 characters // -name .
||||||7890123456789 -> 13 characters // MyNameIsReall.
|||||||||||||||||||01234567890 -> 11 Chracters // yReallyLong.
-name MyNameIsReallyReallyLong

If the Limit is 15 characters, the name will remain as: MyNameIsReallyR
 
Status
Not open for further replies.
Back
Top