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

How change player name above the one unit of the player?

Level 5
Joined
May 10, 2024
Messages
57
On mouse over we can see that unit belong to Computer 2 Normal or whatever name is given to that slot. I want multiple forces assigned to one player. Is it possible to change name which appears above the unit for several units?

Let's say I have 3 footmans. First footman is Computer 2 Normal. Second is Militia. Third is Bandits.
 
Level 30
Joined
Aug 29, 2012
Messages
1,382
You can change player names in the players tab or during gameplay like this

  • Actions
    • Player - Set name of Player 1 (Red) to Computer 2 Normal
    • Player - Set name of Player 2 (Blue) to Militia
    • Player - Set name of Player 3 (Teal) to Bandits
But units must belong to different players of course. You can change the other players color to make it look like it's the same player, but that's about it
 
Level 28
Joined
Dec 3, 2020
Messages
970
You can change player names in the players tab or during gameplay like this

  • Actions
    • Player - Set name of Player 1 (Red) to Computer 2 Normal
    • Player - Set name of Player 2 (Blue) to Militia
    • Player - Set name of Player 3 (Teal) to Bandits
But units must belong to different players of course. You can change the other players color to make it look like it's the same player, but that's about it
This works obviously, but I want to say something interesting about this:

So for a custom campaign I'm working on I change the name of the player to "Alliance of Lordaeron" for example (for more immersion). So if the player's name was "Joe", it is now "Alliance of Lordaeron". Here comes the interesting part:
Once I couldn't complete the mission in one go so I saved and loaded it up on the following day. The player's name (my name in this case) wasn't "Alliance of Lordaeron", it was back to "Joe".

I run this trigger only once at the beginning of the map. Perhaps it needs to be a periodic event. Would triggering it to be every 1 second cause any lags or flood the memory?
(I know this is a bit off topic but I think it's an interesting thing to know)
 
Top