i have a progress bar of my hot on someone and i'm looking to make the progress bar's colour their class colour. searching through posts my options look like:
1 - animation stuff
will disappoint asakawa and my pc, avoid if possible
2 - custom init action to grab the data using something like WA_ClassColorName(unit) and then.....not sure what comes next.
can i modify the bar colour from the init custom code itself or do i store/send the variable to a custom condition that sets bar colour based on the data gained from the init action?
3 - a trigger referencing a unit's characteristics to load unit data with it then matching the units class against a list of class names and colours in a custom condition, which modifies the colour
4 - trigger referencing the unit so i can access their unit info and then a condition for each class changing the bar colour picker to the colour.
this seems to be the option least likely to disappoint asakawa, but most likely to make me cry
looking to learn more about WA so also interested in why/why not to go about different option and best practice etc, feel free to point me to relevant resources