HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Hero Names

12-19-2003, 05:11 PM#1
9398hrb
Can you make it so that when a player enters some text it becomes the heros name? Either in a text bex or whatever it goes onto the hero and is used in cinumatic scenes?
12-19-2003, 06:20 PM#2
Dead-Inside
I don't know if it's possible to set the actual units name. But, it is however possible to set a "String Variable". Create one in the Variable editor (The X in the trigger editor). Now, when you create your cinematic and you're going to enter a name for the Hero-Unit when he's about to speak... Enter the String Variable instead of a text.

Now you need to set the String Variable to the name the player types. This is rather simple... Here's the trigger:
Code:
Type
    Events
        Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
    Conditions
    Actions
        Set YourStringVariableHere = (Entered chat string)
        Trigger - Turn off (This trigger)


You might want to keep this turned off until the point where you ask the player in question to enter a name.

Regards
Dead-Inside
12-20-2003, 09:55 AM#3
9398hrb
Theres no point in really doing it if tour hero ends up with a different name, ill keep looking.
12-20-2003, 10:20 AM#4
Balthamos
Hmm, you could make it that the hero's name is an empty string, and instead a floating text appears above the hero's head constantly. Although keeping it always above the unit's head is tricky, it would require constant updating.