🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
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.