The script should be re-written to display a message like "No weather effects on this map." if the key is pressed on a map without those effects. Otherwise it looks ugly popping up with the "unknown script" message.Phobus wrote:Its only used in two maps (or maybe just one actually - definitely the snowy map), where it is confirmed to work.
If the script is part of the BEHAVIOR lump in that specific map, then it should be made into a library that all maps can access, so the script can determine the proper map(s) it should be used on.
A script that looks something like this should work:
Code: Select all
Script 999 (void)
{
if(GetLevelInfo(LEVELINFO_LEVELNUM) == ??? ) // Replace ??? with the map's level number...
{
// Do the weather toggling stuff here
}
else
{
Print(s:"No weather effects on this map.");
}
}