Spritepal: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
The following is a listing of all the legal values for the spritepal primitive. Palettes can effect 3 different 'layers' of a tile. The easiest way to understand these 3 different 'layers' is by using the stripper sprite. The 3 'layers' are: Background (her skin), Foreground (her clothes), and Minor Foreground (money, accessories, etc).
The following is a listing of all the legal values for the spritepal primitive. Palettes can effect 3 different 'layers' of a tile. The easiest way to understand these 3 different 'layers' is by using the stripper sprite. The 3 'layers' are: Background (her skin), Foreground (her clothes), and Minor Foreground (money, accessories, etc).


    0 = Normal
'''A color transformation table''':
    1 = All colors become blue
  1 = all  -> blue
    2 = All colors become red
  2 = all  -> red
    3 = Normal, exactly 0. Is used to actor some effects that needs a pallete that is not 0 (like parallex, that shots doesn't dissapers on it if using a pallete)
  3 = normal(=0).
    4 = All colors become a single black (#000)
  4 = all  -> black
    5 = Red become brown.
  5 =                         red  -> brown                                                
    6 = All colors become green with inverted brightness (Night Vision green)
  6 = all  -> green with inverted brightness (Night Vision green)
    7 = All colors become yellow
  7 = all  -> yellow
    8 = All colors become green
  8 = all  -> green
    10 = All blue become dark red
  9 = normal(=0)
    11 = All blue become green (same as 22, 22 is used by Assault Trooper)
10 = blue -> dark red                                                                      
    12 = All blue become gray (same as 18)
11 = blue -> green(=22)                                                                    
    13 = All blue become dark gray
12 = blue -> gray(=18)                                                                    
    14 = All blue become dark green (used by Nuke Button)
13 = blue -> dark gray     red  -> grey                                                 
    15 = All blue become brown
14 = blue -> dark green     red  -> green                                                 
    16 = All blue become dark blue
15 = blue -> brown                                                                        
    17 = All brown become blue and all blue becomes green
16 = blue -> dark blue                                                                    
    18 = All blue become gray (same as 12)
17 = blue  -> green                          green -> blue  brown -> blue
    19 = All brown become red and all blue becomes gray
18 = blue -> gray(=12)                                                                    
    20 = All brown become blue and all blue becomes gray
19 = blue  -> gray                            green -> red    brown -> red
    21 = All Blue become red (used by Assault Captain and mini Battlelord)
20 = blue  -> gray                            green -> blue  brown -> blue
    22 = All blue become green (this is used by Assault Trooper, same as 11)
21 = blue  -> red                                                                          
    23 = All blue become yellow
22 = blue -> green(=11)                                                                    
    24 = All gray become red and all red become gray
23 = blue -> yellow                                                                        
    25 = All green become red
24 =                         red  -> gray                                    gray -> red
 
25 =                                         green -> red


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

Revision as of 05:56, 9 April 2008

spritepal <number>

Changes the current actor's palette reference number to <number>.

The following is a listing of all the legal values for the spritepal primitive. Palettes can effect 3 different 'layers' of a tile. The easiest way to understand these 3 different 'layers' is by using the stripper sprite. The 3 'layers' are: Background (her skin), Foreground (her clothes), and Minor Foreground (money, accessories, etc).

A color transformation table:

 1 = all   -> blue
 2 = all   -> red
 3 = normal(=0).
 4 = all   -> black
 5 =                         red   -> brown                                                  
 6 = all   -> green with inverted brightness (Night Vision green)
 7 = all   -> yellow
 8 = all   -> green
 9 = normal(=0)
10 = blue  -> dark red                                                                       
11 = blue  -> green(=22)                                                                     
12 = blue  -> gray(=18)                                                                      
13 = blue  -> dark gray      red   -> grey                                                   
14 = blue  -> dark green     red   -> green                                                  
15 = blue  -> brown                                                                          
16 = blue  -> dark blue                                                                      
17 = blue  -> green                           green -> blue   brown -> blue
18 = blue  -> gray(=12)                                                                      
19 = blue  -> gray                            green -> red    brown -> red
20 = blue  -> gray                            green -> blue   brown -> blue
21 = blue  -> red                                                                            
22 = blue  -> green(=11)                                                                     
23 = blue  -> yellow                                                                         
24 =                         red   -> gray                                     gray  -> red  
25 =                                          green -> red