• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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