HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Naming system????

06-26-2005, 02:03 AM#1
mighty death
How do you make a naming system? example:

-name Great Empire

Hi=Great Empire: Hi

Instead of your bnet name i'm really confused
06-26-2005, 02:53 AM#2
Guest
simple.
Code:
Name changeRed
    Events
        Player - Player 1 (Red) types a chat message containing -name  as A substring
    Conditions
    Actions
        Player - Set name of Player 1 (Red) to (Substring((Entered chat string), 6, 76))
        Wait 2.00 seconds
        Leaderboard - Change the label for Player 1 (Red) in (Last created leaderboard) to ((Name of Player 1 (Red)) + 's total kills)

This is an exact copy/paste form my map, so you don't need the leaderboard, nor the wait action. (The wait action is just for debugging purposes.
Also the numbers in "Player - Set name of Player 1 (Red) to (Substring((Entered chat string), 6, 76))" are important, except 76, this can be anything you like, it just sets the maximum amount of characters.

~Destruction