• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Changing the Hero name to the player name.

Status
Not open for further replies.
Level 2
Joined
Apr 10, 2021
Messages
16
Hello, i am trying to RPG map. What I want to ask you is how can I translate the names of the units into player names?

For Example: I want it to appear (Player's Name) instead of (Peasant) when it comes to it with the mouse.
 
Level 13
Joined
Feb 5, 2018
Messages
568
  • Unit - Set Unit: (Triggering unit)'s String Field: Name ('unam') to Value: (Name of Player 1 (Red))
This is the way and it should work. Note that this is on the latest version of warcraft 3.

I personally would add this to the hero selection trigger and do something like:
  • Hero select
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Set Unit: (Triggering unit)'s String Field: Name ('unam') to Value: (Name of (Owner of (Triggering unit)))
 
Status
Not open for further replies.
Top