Save-Point
Unlimited Fogs - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Unlimited Fogs (/thread-8914.html)



Unlimited Fogs - DerVVulfman - 02-27-2024

Unlimited Fogs
Version: 1.5
Based on version 1.2 by game_guy



Introduction

Ever need more than one fog for a map? Maybe more than two fogs? With this unique script, you can have unlimited fogs on one map! And with a few easy script calls, you can customize every aspect of a fog at anytime!

Do be aware, the fogs applied with this script only appear after the field map(s) have been entered. As fast as it may be, only those fogs that are attached to tileets are created simultaneously. Fortunately,this script is only a supplement, able to work in tandem with the default system.



Features
  • Unlimited Fogs on Any Map
  • Change Fog's properties at any time
  • Easy to use script calls
  • Does not replace the existing fog system
  • Fog addition system functional with parallel processes (new v 1.4)
  • Missing fog files no longer crash the game (new v 1.3)
  • Fogs restore when exiting menu or loading saves (new v 1.5)



Script

Enjoy



Instructions

Paste below Scene_Debug and above main. If used with any other script that alters the environment, place Unlimited Maps below them in order to take advantage of its custom script calls.

As there isn't anything to configure, let's get onto the script calls!



Compatibility

Designed for RPGMaker XP. Compatible with the default scripts and scripts that do not adversely alter the fog system.



Credits and Thanks

Initial version by game_guy
LiTTleDRAgo for the original idea
Heretic for the Fog-Backup system



Terms and Conditions

Free for use, even in commercial scripts. Due credit to all involved is the only requirement.


RE: Unlimited Fogs - DerVVulfman - 03-08-2024

BUMPING UP
to Version 1.5

This update fixes an issue with the assistance of code created by Heretic.  This code provided a backup of all fogs created by the system and restored the fogs when you exited the menu and/or loaded a saved game.

Until then, the fogs would merely vanish upon entering the main menu, for them not to be present anymore. But now, that issue is no longer the case.

Also, the instructions now include general information on the z-depths (or altitudes) you may set fogs, if you want them above the generated weather, above the default fog layer, or if below the tileset or even below the default panorama itself.


RE: Unlimited Fogs - KJ21 - 11-03-2024

Hey DerVVulfman, I think the script is really cool and very useful for using multiple fogs! Grinning However, I found a small bug. I’m not sure if it’s actually a bug, but when I create a slightly larger map and walk around, then open the menu and return to the map, the fog positions don’t quite line up correctly.

I can show you an example in a GIF to demonstrate the bug and see if it’s normal: https://ibb.co/Thy7CG6 (Sorry, I'm not sure if I'm allowed to post this link.)
P.S. The GIF has German text, but you don’t need to pay attention to it. :)

Take your time if you want to check it out. ^^