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

Naming Players

Status
Not open for further replies.
Level 3
Joined
Oct 19, 2004
Messages
16
I'm pretty new to triggering and stuff..was wondering how I might go about making a trigger which allows the player to type in -name suchandsuch..where the trigger reads the suchandsuch and sets it as the players name, need the trigger to adapt to all players, if it is possible with one, or 12 triggers..I've seen maps with this trigger in it. So far, i have a trigger that lets u type in -name suchandsuch, but it takes -name to be part of the name, pretty sure this doesn't require JASS as it is pretty simple and there should be a way to get around it in triggers..plz reply soon, thanks..
 
Level 16
Joined
Oct 30, 2004
Messages
1,277
Event - Player1 types '-name pliplop' as an SUBSTRING
Conditions - None
Actions:
-Set name of Player1 to (Event response: Entered chat message (Substring 7,30))

30 being the limit of how long the name can be. In this trigger the lenght of the name is max 23 characters. Make the '30' more or less, what ever suits you.
 
Status
Not open for further replies.
Top