• 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] Change Name trigger

Status
Not open for further replies.
Level 3
Joined
Apr 1, 2005
Messages
53
  • Change Name
    • Events
      • Player - Player 1 (Red) types a chat message containing -name as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 6)) Equal to -name
    • Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, 255))
I don't know wih tags show it like in the WE, but it should work like this. Just add the event for every player that should be able to change the name.
Or do you want the jass variant?

In conditions the substring is "-name "

Edit: found the tags.
 
Level 3
Joined
Apr 1, 2005
Messages
53
It works for me. Check if you did it like I did.
And tell me what you're doing.
You should type "-name yourname" to change your name. It works definatly if you do it right.
 
Level 5
Joined
Sep 27, 2008
Messages
147
It works for me. Check if you did it like I did.
And tell me what you're doing.
You should type "-name yourname" to change your name. It works definatly if you do it right.

  • Change Name
    • Events
      • Player - Player 1 (Red) types a chat message containing -name as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 6)) Equal to -name
    • Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, 255))
here is the trigger i use and a screenshot if i use it.
 

Attachments

  • Naamloos.jpg
    Naamloos.jpg
    181.4 KB · Views: 101
Level 3
Joined
Apr 1, 2005
Messages
53
  • Change Name
    • Events
      • Player - Player 1 (Red) types a chat message containing -name as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 6)) Equal to -name
    • Actions
      • Player - Set name of (Triggering player) to (Substring((Entered chat string), 7, 255))
here is the trigger i use and a screenshot if i use it.

Do you have "-name " with the space at the end in the conditions? Either check that or change the 6 to 5. Can't think of anything else, as it's working for me. Could you upload the map so I can check?

Edit: Uploaded a map for you with working name changer.
 

Attachments

  • change name.w3x
    16.1 KB · Views: 70
Status
Not open for further replies.
Top