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!
I've seen in several online games a feature that enables people to change their name. Like someone types "-setname Box", and guy's name turns to Box. Could someone explain me how you do that?
Player - Player 1 (Red) types a chat message containing -setname as A substring
Conditions
Actions
Player - Set name of (Triggering player) to (Substring((Entered chat string), 9, (Length of (Entered chat string))))
What you have to do is of course to have an event for each player you think should be able to change their name. What the action does when using substring is that it takes a string (entered chat string) and then takes out a part of it. The part you want is the one after "-setname " (note the space) and to the last letter. This should be from letter nr. 9 to the last letter, Lenght of Entered chat string.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.