Hello,
First, great job here and there, I am always surprised everytime I am back here

So, after converting to V8.1, I spent several hours the past two days to download mods, download scripts, read topics, and try on my own in order to test the
recolor function and see if it could be of any use for me
Let's say, mainly, I could recolor alien leaders and commanders
So I made several tests, globally it works, but I still have an issue and need help

Let's see how it is by default (no script): Cf. Img000
Then with modding (script below) but doing nothing (i.e., recolor but with same color): Cf. Img001
I guessed it may be due to shade, but the result is the same with or without the 3 lines about shade (#Try shade)
Does any one understand why, aliens are lighter in Img001 compared to Img000? Globally, in Img001, mutons are more or less the same color as the one in the bottom left corner (center of access lift) on Img000
(Then next step will be to work with reinforcement and timers

)
Thanks
- type: MUTON_ARMOR0
scripts:
recolorUnitSprite: |
var int CurrentColor;
var int CurrentShade; #Try shade
get_shade CurrentShade new_pixel; #Try shade
get_color CurrentColor new_pixel;
if eq CurrentColor COLOR_X1_GREEN0;
set_color new_pixel COLOR_X1_GREEN0;
end;
set_shade new_pixel CurrentShade; #Try shade
return new_pixel;