Fog Of War script Tweaks

Hello scripters, 
 
I would like to request a few tweaks to an existing script that i have, the script is a fog of war script that works perfectly.
The only problem is once you explore the fog of war in stays explored forever, what i want changing is:
-When you leave the map the fog of war will regenerate OR a script call created that can generate it at will !!
 
Why do I want this:
This is a vital feature of my dungeon crawler game and would ruin the experiene if when you revisit dungeons they are fully explored
 
That's all I wanted. If any scripter are willing to help me, that would be very appreciated and of course I will credit you in my game, or if thats not enough we can come to some other kind of arrangement
 
Script is below:

https://www.dropbox.com/s/0lwcmyexfeu23hd/fog%20of%20war%20script.txt?dl=0
I've moved this thread to RGSSx Script Support (because you are asking for help with a script, you are not sharing your own script). Please be sure to post your threads in the correct forum next time. Thank you.


Please post a LINK to the script. We prefer people not to include scripts in their pots for numerous reasons - the only valid reason to include the script is if it's no longer available at the original location, or if you have made mods to it, and even then it should be loaded somewhere else and just linked to.
Bump.
Bump.
I think you can go to the Fog_Of_War->update_bitmap->delete the line

reveal_tiles($game_system.revealed_tiles)
If it crashes, bring back the line, and I may look at it later.

Original thread: https://forums.rpgmakerweb.com/threads/fog-of-war-script-tweaks.44223/