• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 12
Joined
Feb 5, 2018
Messages
521
  • 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