Blue slowed effect on custom colored units

Yoww89

New Member
Reaction score
0
Does anyone knows how spells like frost nova or frost arrows change the unit vertex coloring to that blueish and then return it to the unit's default color?

Like if you have a custom red unit by changing it's tinting colors in object editor, when the slowed buff goes off the unit returns to the red color, but via animation - change unit's vertex coloring it's not possible. Can you somehow get the tinting values via function and store it in variables so you can return them to those exactly values?
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
Perfectly possible. Use a unit indexing system to save the values of your units' Red, Blue and Green tinting values.

Frost Nova and Frost Arrows apply the same buff, which changes the unit's color for a short while. There doesn't seem to be a way to edit that.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
I am sorry to tell you but there is no way to get the tinting color of units with triggers.
If you dont have too many units you might create arrays for a database to access the tinting colors, but that would be time-consuming if you have too many units and tedious.
 

Yoww89

New Member
Reaction score
0
Wow the two replies directly contradict each other!

Thanks for the suggestion accname but as you said that would be way too much work.
And what's exactly a unit indexing system? I'm not that new to world editor but that's one thing I never used.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
Basically a unit indexing system assigns an integer to every unit. You can then use arrays to store values relating to the unit. The drawback is that you have to trigger all color increases, so change your Slowed buffs to something else.
 

Yoww89

New Member
Reaction score
0
So actually the two replies didn't contradict each other :D.
After all, the only way of returning the custom tinting values of a unit via triggers is to have them previously stored in an unit indexing system or, like Accname called it, a database.
Thanks guys.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
A unit indexing system is not exactly a database.
It is a system which helps you to manage the database easier, you still need to create a database and store all values. The Indexing system is just a useful tool to assign unique ID's to certain handles, like units for example, or unit types.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top