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

Color of attachmenting units

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2013
Messages
1,105
Hi I am trying to add an effect to a hero in my map. It is based off an item ability with the info

Art- Target Wisp
Art- Target Attachment Point 1 overhead

The problem is the Wisp is always Red, I either would like it to be black, or the color of the controlling player, and I cannot seem to figure out how.

Thanks!
 
Last edited:
Level 13
Joined
Mar 24, 2013
Messages
1,105
  • Unit - Change color of (Triggering unit) to (Color of (Triggering player))
Thanks again

Another question--
When this hero uses a spell the attachment is removed and then replaced a few seconds later, initially it gets the "tint" the hero has but after it never regains it I tried this but it doesn't work

  • Color Fixer
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Chief
    • Actions
      • Set ColorReset = (Casting unit)
      • Unit - Change color of (Triggering unit) to (Color of (Triggering player))
      • Wait 5.00 seconds
      • Animation - Change ColorReset vertex coloring to (35.00%, 10.00%, 40.00%) with 0.00% transparency
 
Last edited:
Level 13
Joined
Mar 24, 2013
Messages
1,105
This doesn't seem to change the color of the attachments.

  • Color Fixer
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Chief)) and do (Actions)
        • Loop - Actions
          • Unit - Change color of (Picked unit) to (Color of (Owner of (Picked unit)))
          • Animation - Change (Picked unit)'s vertex coloring to (35.00%, 10.00%, 40.00%) with 0.00% transparency
          • Game - Display to (All players) the text: lll
 
Level 14
Joined
Dec 29, 2009
Messages
931
If you're trying to recolor attatchments base it off of an ability that supports it.
The best one to use is probably the Life Regeneration Aura (Neutral) ability.
Just remember to remove the stats and remove all targets allowed.

If you need it to be attatched while another ability is activated, use a trigger to give the unit this ability.
You can then remove it once the effect of the ability is over with.
 
Status
Not open for further replies.
Top