Jump to content

Palette (INI flag): Difference between revisions

From ModEnc²
en>Nighthawk200
Palette
 
en>EvilRenegade
m Replacing Template:TTL with Template:F.
Line 10: Line 10:
|intversion=1.07
|intversion=1.07
}}
}}
This flag lets you use any palette with animations. Simply add the {{TTL|Palette}} tag to the animation in question. The value for this tag is the filename of the palette with the .PAL extension, e.g.
This flag lets you use any palette with animations. Simply add the {{f|Palette|link}} tag to the animation in question. The value for this tag is the filename of the palette with the .PAL extension, e.g.
<pre>Palette=MYANIN.PAL</pre>
<pre>Palette=MYANIN.PAL</pre>
You are limited to 31 characters on the filename.
You are limited to 31 characters on the filename.
Line 19: Line 19:
then the game will try to load 'myanimtem.pal' on temperate maps; 'myanimsno.pal' on arctic maps; 'myanimdes.pal' on desert maps; 'myanimurb.pal' on urban maps; 'myanimlun.pal' on lunar maps; and 'myanimubn.pal' on new urban maps. The actual 'myanim.pal' file would not be used at all.
then the game will try to load 'myanimtem.pal' on temperate maps; 'myanimsno.pal' on arctic maps; 'myanimdes.pal' on desert maps; 'myanimurb.pal' on urban maps; 'myanimlun.pal' on lunar maps; and 'myanimubn.pal' on new urban maps. The actual 'myanim.pal' file would not be used at all.


<b>Note:</b> Do not use the {{TTL|AltPalette}} tag along with this one, as {{TTL|AltPalette}} will override the function of this tag.
<b>Note:</b> Do not use the {{f|AltPalette|link}} tag along with this one, as {{f|AltPalette|link}} will override the function of this tag.

Revision as of 10:24, 27 November 2009

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Palette (INI flag)
File(s): art(md).ini
Values: Strings: Normal text.
Applicable to: Animations

This flag is part of the RockPatch.



Template:RockPatchFlag This flag lets you use any palette with animations. Simply add the Palette tag to the animation in question. The value for this tag is the filename of the palette with the .PAL extension, e.g.

Palette=MYANIN.PAL

You are limited to 31 characters on the filename. If the above tag was added to an animation, it would then be drawn using 'myanim.pal' rather than the default palette.

Removing the .PAL file extension causes the theater to be appended to the filename ingame. Going with the previous example, using:

Palette=MYANIM

then the game will try to load 'myanimtem.pal' on temperate maps; 'myanimsno.pal' on arctic maps; 'myanimdes.pal' on desert maps; 'myanimurb.pal' on urban maps; 'myanimlun.pal' on lunar maps; and 'myanimubn.pal' on new urban maps. The actual 'myanim.pal' file would not be used at all.

Note: Do not use the AltPalette tag along with this one, as AltPalette will override the function of this tag.