Spritepal: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
One (talk | contribs)
No edit summary
Line 1: Line 1:
spritepal <number>
'''spritepal''' <number>


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

Revision as of 12:33, 4 May 2009

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

Note that palette 9 is used for player default color. The palette used for Assault Trooper is palette 22.