aliens

Author Topic: Recoloring Script  (Read 16732 times)

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Recoloring Script
« Reply #15 on: July 15, 2014, 01:29:25 am »
Example of working coloring based on rank without altering or adding new graphic. Only side effect of not altering graphic was I was forced to recolor whole arm.




code for this:
Code: [Select]
      test blit_part blit_rightarm;
      skip_neq final;
     
      test unit_rank 0; #Rookie
      skip_eq final;
     
      test unit_rank 1; #Squaddie
      set r0 color_red;
      skip_eq setcolor;
     
      test unit_rank 2; #Sergeant
      set r0 color_green0;
      skip_eq setcolor;
     
      test unit_rank 3; #Captain
      set r0 color_purple1;
      skip_eq setcolor;
     
      #fast battle have only 4 ranks :D
     
      skip final;
      setcolor:
      set_color in r0;
      final:
      add_shade in shade;
      ret in;

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Recoloring Script
« Reply #16 on: July 15, 2014, 01:39:17 am »
so
can i somehow manually use the recoloring
i want to give some guys different colors
i see a soldier is mindcotrolled often i give him a white color
the strong soldier gets a yellow color
the psi-attacker soldier gets a blue color
after some time surviving a rookie gets its first "color" (green) if there are no better distinguishing factors

i think its possible to make some rulset
fatally wounded=red
str>XX=>yellow
psi<XX=>white
psi>XX=>blue
missions>XX=>green
...
but is there a manual way to do this?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Recoloring Script
« Reply #17 on: July 15, 2014, 01:45:01 am »
@Yankes:
Not bad. Not as an end product of course, but it shows potential.

I'm not sure how to exactly implement this, but I think a broad, vertical stripe should be best for the Power/Flying Suit - something like the middle one, sans the pentagram:



@Falko:
Sounds complicated to sell. But I'm intrigued. :)