Why is it that when i subtract (-15, -15, -15) from a palette then update it, and then I add (15, 15, 15) to it and update it, that it looks funny? Maybe I'm being stupid but it doesn't look like it returns to normal!
Also, do global variables declared in a "new game" plotscript save with game save files?
You can't fix stupidity.
First Q's answer:
You shouldn't rely on palette tweaks to be reversible by putting in the opposite values (ie, (-15,-15,-15) being cancelled out by (15,15,15) here) since the palette gets flattened towards the color (0,0,0)... example:
You have the color (10,10,10) in your palette, then you call a tweak palette with color change values (-15,-15,-15)... now that color is (0,0,0) since you can't go below 0. Then you call tweak palette with (15,15,15) and now that color is (15,15,15). It doesn't go back to (10,10,10) like it was originally.
The reset palette command is the correct way to reset your palette. If you want to change the palette colors, I suggest always calling reset palette before you do any kind of palette alteration - unless you have a very good reason.
Second Q's answer:
Yes, global variables persist as part of your save file - when you load your save, those globals get set to what they were when you saved.
I... I still exist... somewhere.
Come join us on irc.esper.net in channel #slimesalad for help, chat, and general fun! We love company.
You shouldn't rely on palette tweaks to be reversible by putting in the opposite values (ie, (-15,-15,-15) being cancelled out by (15,15,15) here) since the palette gets flattened towards the color (0,0,0)... example:
You have the color (10,10,10) in your palette, then you call a tweak palette with color change values (-15,-15,-15)... now that color is (0,0,0) since you can't go below 0. Then you call tweak palette with (15,15,15) and now that color is (15,15,15). It doesn't go back to (10,10,10) like it was originally.
The reset palette command is the correct way to reset your palette. If you want to change the palette colors, I suggest always calling reset palette before you do any kind of palette alteration - unless you have a very good reason.
Second Q's answer:
Yes, global variables persist as part of your save file - when you load your save, those globals get set to what they were when you saved.
I... I still exist... somewhere.
Come join us on irc.esper.net in channel #slimesalad for help, chat, and general fun! We love company.
tweakpalette caps color components in the range 0 to 63, so subtracting then adding 15 will not give you back what you started with. Used the resetpalette command for that (note that you still need to follow that by a call to updatepalette or fadescreenin).
Yes, global variables are stored in saved games.
Yes, global variables are stored in saved games.




Hope you guys like it, and hopefully there are some awesome games! (looking forward to my T-shirt
)