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

[Trigger] Setname? (like in vamp fire)

Status
Not open for further replies.
Level 2
Joined
Oct 20, 2007
Messages
18
Can someone please tell me how to put a "-setname" command into a map? I have found the option which lets me change names, but I just can't figure out how to do user inputs, like if someone says '-say I CAN TALK' and the game says I CAN TALK. It's really driving me mad! So could someone help? It'd be greatly appreciated! :csmile: :csad:
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
String array PlayerDefaultNames

  • Bleh
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For Each Integer A from 1 to 12, Do Actions
        • Loop - Actions
          • Set PlayerDefaultNames[(For Loop Integer A)] = (Name of (Player (For Loop Integer A)))
Then your Default trigger would just set their name to the index of their player number of PlayerDefaultNames.
 
Status
Not open for further replies.
Top