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

[General] Color Change for Specific Units

Status
Not open for further replies.
Level 4
Joined
Mar 20, 2021
Messages
24
Hello,

I would Like to ask for help I'm making map where I have multiple "factions" under 1 Player specifically Lordaeron,Ironforge and Kul Tiras.
Wondering if there is any way to make trained units change color but only for specific ones for example player's color is Blue , but I'd like for trained Ironforge Units to be orange.
Now I've tried to tick Art- Allow Custom Team Color to true and even changed the color to specific one , it works when you put the unit in editor but not when you train them during gameplay.


Appreciate any reply in advance.
 
Hello,

I would Like to ask for help I'm making map where I have multiple "factions" under 1 Player specifically Lordaeron,Ironforge and Kul Tiras.
Wondering if there is any way to make trained units change color but only for specific ones for example player's color is Blue , but I'd like for trained Ironforge Units to be orange.
Now I've tried to tick Art- Allow Custom Team Color to true and even changed the color to specific one , it works when you put the unit in editor but not when you train them during gameplay.


Appreciate any reply in advance.
You would need to create a trigger to do this.

A basic one would be:

Event - A Unit Finishes Training
Condition - Trained Unit equal to (Dwarven Warrior)
Action - Change Colour of trained unit to orange.
 
Level 4
Joined
Mar 20, 2021
Messages
24
1705699076761.png

So I've cooked up this but it doesn't seem to do the trick could you please tell me if there is anything I need to switch? ^^
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,867
(Triggering unit) always refers to the first "unit" mentioned in the Event. So in this case the Event says:

A unit owned by Player 14 (Navy) finishes training a unit

So (Triggering unit) is referring to the building that produced your Footman.

But you need to rely on an entirely different function to get the Trained unit-type:

trained.png


And then refer to the (Trained unit) in the Actions section:
  • Actions
    • Unit - Change color of (Trained unit) to Orange
The final product:
  • Events
    • Unit - A unit owned by Player 14 (Navy) finishes training a unit
  • Conditions
    • (Trained unit-type) Equal to Ironforge Footman
  • Actions
    • Unit - Change color of (Trained unit) to Orange
 
Last edited:
Level 4
Joined
Mar 20, 2021
Messages
24
(Triggering unit) always refers to the first "unit" mentioned in the Event. So in this case the Event says:

A unit owned by Player 14 (Navy) finishes training a unit

So (Triggering unit) is referring to the building that produced your Footman.

Instead, you need to rely on an entirely different function to get the Trained unit-type in your Conditions section:

View attachment 459245

And then refer to the (Trained unit) in the Actions section:
  • Actions
    • Unit - Change color of (Trained unit) to Orange
The final product:
  • Events
    • Unit - A unit owned by Player 14 (Navy) finishes training a unit
  • Conditions
    • (Trained unit-type) Equal to Ironforge Footman
  • Actions
    • Unit - Change color of (Trained unit) to Orange
That did it! Thank you sooo much!
 
Status
Not open for further replies.
Top