First off, I know nothing about leto scripting.
I have 30ish placeables that are using a custom PaletteID number (ID #24). I want to change that PaletteIS number so that they all appear under Custom_5 (ID #4) in the Toolset . Is this something Moneo can do?
I’m thinking @Proleric would know if anyone does.
Moneo can do this. I can help in an evening sometime, but I’ll PM you my moneo script repo in case you want to poke around for ideas.
-Dave
1 Like
Solved it with a moneo script and BAT file
ChangePaletteID.LS
%mod = 'C:\Documents\Neverwinter Nights\modules\MyModule.mod';
print "\nChanging PaletteID\n\n\n";
print "Processing module info...\n\n";
for (%mod['mwp*.utp']) {
/PaletteID = "4";
}
%mod = '>';
close(%mod);
ChangePaletteID.BAT
@ECHO OFF
:choice
set /P c=Do you want to backup your module [Y/N]?
if /I "%c%" EQU "Y" goto :somewhere
if /I "%c%" EQU "N" goto :somewhere_else
goto :choice
:somewhere
copy "C:\Documents\Neverwinter Nights\modules\MyModule.mod" "C:\Documents\Neverwinter Nights\modules_bak\MyModule_bak.mod"
:somewhere_else
moneo ChangePaletteID.ls
PAUSE
Replace “MyModule” with the name of YOUR module.