4.02 changes:

The utility 'LOADPAL.EXE' will load a NEOPAINT
palette (file.PAL) into a DCGAMES palette 
(file.DAT).  The default palette is DCPALET.DAT
and is loaded at game startup.

Inside the scripts, you can use the LOADPAL() 
function to load an alternate palette. This 
function can be used to implement day/night
as follows in the 'time' routine in CONTROL.SCR

   if <sunrise> then
     loadpal( "DCPALET.DAT" );
   else
     loadpal( "NIGHTPAL.DAT" );
   endif;

You can also change the palette when you enter
a new world depending on the world type, for
example:

   if world.type = CAVE then
     loadpal( "CAVEPAL.DAT" );
   elsif time > sunrise and time < sunset then
     loadpal( "DCPALET.DAT" );
   else
     loadpal( "NIGHTPAL.DAT" );
   endif;

I also fixed WORLD.INDEX to return a simple
number (like it did in 3.x). I broke it trying
to implement a variable that returns the STRING
name of the world file.

If you want to get the name of the world file
(w/out extension), use WORLD.SINDEX, which will
return "WORLDnnn" where nnn = 000 to 999.

Have fun.

Dave
