No offense to LiTTleDRAgo or his script, but after I over viewed his Multiple Fogs script, I thought to myself it could have been done a lot better. And why limit it to just 3 extra fogs? I also noticed how he let users have little control over fogs. You couldn't set the z index, the hue, or anything of the sort. I had bit of extra time on my hands, so I made this.

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!Features

#===============================================================================# Unlimited Fogs# Version 1.2# Author game_guy#-------------------------------------------------------------------------------# Intro:# 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!## Features:# Unlimited Fogs on Any Map# Change Fog's properties at any time# Easy to use script calls## Instructions:# There is nothing to configure so lets get onto the script calls!#-------------------------------------------------------------------------------# add_fog(index, file, [z, scroll_x, scroll_y, opacity, zoom, blend, hue])# index - This is to keep track of the fogs on screen (more on this later)# file - Filename for the fog# z - The z index of the fog. This is used for layering. (Default: 3000)# scroll_x - Horizontal scrolling speed for the fog. (Default: 0)# scroll_y - Vertical scrolling speed for the fog. (Default: 0)# opacity - Opacity level for the fog. (Default: 64)# zoom - Zoom level for the fog. (Default: 1.0)# blend - Blend type for the fog. (Default: 0)# hue - Hue for the fog. (Default: 0)## Note: When using this script call, the parameters with default values don't# need to be set when calling it. # e.g. add_fox(1, "001-Fog01") - Works because all parameters after# has a default value.# This script call simply adds a fog with the set parameters. #-------------------------------------------------------------------------------# remove_fog(index)# index - Remember the index we set in "add_fog"? Put the same number in here# to remove it.## This script call simply removes a fog.#-------------------------------------------------------------------------------# fogs(index)# index - The index we used to create our original fog. ## This handy script call returns the actual fog so you can edit individual# properties. For example:# fog = fogs(1)# fog.scroll_x = 2# fog.scroll_y = 2# This grabs the fog at index "1" and sets the scroll speed for x and y.# (See below for all the properties/methods you can use)#-------------------------------------------------------------------------------# Fog Properties:# These are the following properties/methods you can use when editing# individual fogs.# visible = Whether fog is visible or not (true/false)# opacity = Opacity of the fog. (0 to 255)# z = Z index of the fog.# scroll_x = Horizontal scroll speed.# scroll_y = Vertical scroll speed.# zoom_x = Horizontal zoom factor.# zoom_y = Vertical zoom factor.# blend_type = Blend mode for fog. (0, 1, or 2)# filename(new_file, [hue])# -new_file = New fog file.# -hue = Hue for new fog. (Default: 0)#-------------------------------------------------------------------------------# Thats about it. Due take warning that the more fogs you add, the more# probable lag you'll run into. Adding an extra two or three shouldn't hurt too# much though. ;)## Compatibility:# Not tested with SDK.# Should be compatible with everything.## Credits:# game_guy ~ For making the script.# LiTTleDRAgo ~ For the original idea.#===============================================================================class Spriteset_Map

Edit: found something when rereading over script: add_fox(1, "001-Fog01") "Add_fox" That's correct right? Or did you mean add_fogNot too big --any user with common sense could correct this on there own xD,. *continues to review.* I have to apply this to my World boss stage :3.

« Last Edit: April 10, 2012, 12:05:15 AM by Magus »

Logged

LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

Fixed. ._. I made that same typo so many times while making this script. I guess I have some sort of fox fetish I dunno about.

xD It works and it looks pretty cool. I mixed Sandstorm, a greenish hue, and fog01 to make an eerie-looking fog. Now FOLS1R will have an entire haunted world. I'm still trying to get the scrolling to work, unfortunately. I probably made a mistake in the script call. Here's what it looks like:

Quote

add_fog(1, "006-Sandstorm02", 3000,24, 3, 123, 1.0, 0, 300)

and

Quote

add_fog(2, "001-Fog01", 3000,24, 3, 123, 1.0, 0, 400)

Logged

LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

add_fog(3, "clouds")fog = fogs(3)fogs(3).z = 4000fog.scroll_x = 20fog.scroll_y = 0fog.opacity = 48fog.zoom_x = 1.0fog.zoom_y = 1.0fog.blend_type = 0The fog will show up trigged by the event. However, the event is a parallel process and I get this error unless the event is trigged by a switch, then no error. Aside from that, the fog scroll x is not moving the fog.

On the topic of Fog Scripts in general, I also wrote something that I think could have been done a lot better.

I tried to simulate Clouds that were up over the Players heads instead of at Ground Level. Its kind of an early version, but functional. The problem I got stuck on was writing an algorythm to adjust for the Players speed. It doesnt seem to matter the speed that the clouds scroll at, when the player steps, it seems to max out at whatever speed he goes at. I was kind of thinking that you might consider incorporating the ability to make a Fog behave more like High Altitude Clouds into your script.

#===============================================================================# Unlimited Fogs# Version 1.1# Author game_guy#-------------------------------------------------------------------------------# Intro:# 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!## Features:# Unlimited Fogs on Any Map# Change Fog's properties at any time# Easy to use script calls## Instructions:# There is nothing to configure so lets get onto the script calls!#-------------------------------------------------------------------------------# add_fog(index, file, [z, scroll_x, scroll_y, opacity, zoom, blend, hue])# index - This is to keep track of the fogs on screen (more on this later)# file - Filename for the fog# z - The z index of the fog. This is used for layering. (Default: 3000)# scroll_x - Horizontal scrolling speed for the fog. (Default: 0)# scroll_y - Vertical scrolling speed for the fog. (Default: 0)# opacity - Opacity level for the fog. (Default: 64)# zoom - Zoom level for the fog. (Default: 1.0)# blend - Blend type for the fog. (Default: 0)# hue - Hue for the fog. (Default: 0)## Note: When using this script call, the parameters with default values don't# need to be set when calling it.# e.g. add_fog(1, "001-Fog01") - Works because all parameters after# has a default value.# This script call simply adds a fog with the set parameters.#-------------------------------------------------------------------------------# remove_fog(index)# index - Remember the index we set in "add_fog"? Put the same number in here# to remove it.## This script call simply removes a fog.#-------------------------------------------------------------------------------# fogs(index)# index - The index we used to create our original fog.## This handy script call returns the actual fog so you can edit individual# properties. For example:# fog = fogs(1)# fog.scroll_x = 2# fog.scroll_y = 2# This grabs the fog at index "1" and sets the scroll speed for x and y.# (See below for all the properties/methods you can use)#-------------------------------------------------------------------------------# Fog Properties:# These are the following properties/methods you can use when editing# individual fogs.# visible = Whether fog is visible or not (true/false)# opacity = Opacity of the fog. (0 to 255)# z = Z index of the fog.# scroll_x = Horizontal scroll speed.# scroll_y = Vertical scroll speed.# zoom_x = Horizontal zoom factor.# zoom_y = Vertical zoom factor.# blend_type = Blend mode for fog. (0, 1, or 2)# filename(new_file, [hue])# -new_file = New fog file.# -hue = Hue for new fog. (Default: 0)#-------------------------------------------------------------------------------# Thats about it. Due take warning that the more fogs you add, the more# probable lag you'll run into. Adding an extra two or three shouldn't hurt too# much though. ;)## Compatibility:# Not tested with SDK.# Should be compatible with everything.## Credits:# game_guy ~ For making the script.# LiTTleDRAgo ~ For the original idea.#===============================================================================class Spriteset_Map

Well, after a slightly more thorough testing, I have found two serious problems on the script.

The first one; fogs will disappear if you change your scene, for example if you go to the menu and back, or if you save the game and open it again.I can't think of a quick fix to this other than a botched:If you set in a parallel process in the map that when there's no fog just create it, it will not matter that you leave the scene or even the game.

#===============================================================================# Unlimited Fogs# Version 1.1# Author game_guy#-------------------------------------------------------------------------------# Intro:# 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!## Features:# Unlimited Fogs on Any Map# Change Fog's properties at any time# Easy to use script calls## Instructions:# There is nothing to configure so lets get onto the script calls!#-------------------------------------------------------------------------------# add_fog(index, file, [z, scroll_x, scroll_y, opacity, zoom, blend, hue])# index - This is to keep track of the fogs on screen (more on this later)# file - Filename for the fog# z - The z index of the fog. This is used for layering. (Default: 3000)# scroll_x - Horizontal scrolling speed for the fog. (Default: 0)# scroll_y - Vertical scrolling speed for the fog. (Default: 0)# opacity - Opacity level for the fog. (Default: 64)# zoom - Zoom level for the fog. (Default: 1.0)# blend - Blend type for the fog. (Default: 0)# hue - Hue for the fog. (Default: 0)## Note: When using this script call, the parameters with default values don't# need to be set when calling it.# e.g. add_fog(1, "001-Fog01") - Works because all parameters after# has a default value.# This script call simply adds a fog with the set parameters.#-------------------------------------------------------------------------------# remove_fog(index)# index - Remember the index we set in "add_fog"? Put the same number in here# to remove it.## This script call simply removes a fog.#-------------------------------------------------------------------------------# fogs(index)# index - The index we used to create our original fog.## This handy script call returns the actual fog so you can edit individual# properties. For example:# fog = fogs(1)# fog.scroll_x = 2# fog.scroll_y = 2# This grabs the fog at index "1" and sets the scroll speed for x and y.# (See below for all the properties/methods you can use)#-------------------------------------------------------------------------------# Fog Properties:# These are the following properties/methods you can use when editing# individual fogs.# visible = Whether fog is visible or not (true/false)# opacity = Opacity of the fog. (0 to 255)# z = Z index of the fog.# scroll_x = Horizontal scroll speed.# scroll_y = Vertical scroll speed.# zoom_x = Horizontal zoom factor.# zoom_y = Vertical zoom factor.# blend_type = Blend mode for fog. (0, 1, or 2)# filename(new_file, [hue])# -new_file = New fog file.# -hue = Hue for new fog. (Default: 0)#-------------------------------------------------------------------------------# Thats about it. Due take warning that the more fogs you add, the more# probable lag you'll run into. Adding an extra two or three shouldn't hurt too# much though. ;)## Compatibility:# Not tested with SDK.# Should be compatible with everything.## Credits:# game_guy ~ For making the script.# LiTTleDRAgo ~ For the original idea.#===============================================================================class Spriteset_Map

if $scene.is_a?(Scene_Map) and$scene.spriteset.fog_data == [] add_fog(1, "002-Clouds01", 3000, 24, 3, 100, 1.5, 0, 0)endThe second problem; normal fogs are displayed before the screen transition, but not this new fogs, and you will always see it cut at start. I don't know the way to fix that, and it can be disturbing.Sorry for posting so much here after this long time.

Lol, I actually never noticed these issues and I've been using this for a while. I always thought something was odd whenever I went to the menu, but didn't connect the dots. Thanks for the fix!About the cutting; I use ATES and the day/night tint cuts as well, plus normal fades don't seem to work so it's all terribly obvious. I fixed this by simply putting a screen flash before every teleport command. Creates a nice smooth transition (although I'm not sure why since flash is usually instant?) and masks the cutting from the fogs and ATES.

#===============================================================================# Unlimited Fogs# Version 1.1# Author game_guy#-------------------------------------------------------------------------------# Intro:# 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!## Features:# Unlimited Fogs on Any Map# Change Fog's properties at any time# Easy to use script calls## Instructions:# There is nothing to configure so lets get onto the script calls!#-------------------------------------------------------------------------------# add_fog(index, file, [z, scroll_x, scroll_y, opacity, zoom, blend, hue])# index - This is to keep track of the fogs on screen (more on this later)# file - Filename for the fog# z - The z index of the fog. This is used for layering. (Default: 3000)# scroll_x - Horizontal scrolling speed for the fog. (Default: 0)# scroll_y - Vertical scrolling speed for the fog. (Default: 0)# opacity - Opacity level for the fog. (Default: 64)# zoom - Zoom level for the fog. (Default: 1.0)# blend - Blend type for the fog. (Default: 0)# hue - Hue for the fog. (Default: 0)## Note: When using this script call, the parameters with default values don't# need to be set when calling it.# e.g. add_fog(1, "001-Fog01") - Works because all parameters after# has a default value.# This script call simply adds a fog with the set parameters.#-------------------------------------------------------------------------------# remove_fog(index)# index - Remember the index we set in "add_fog"? Put the same number in here# to remove it.## This script call simply removes a fog.#-------------------------------------------------------------------------------# fogs(index)# index - The index we used to create our original fog.## This handy script call returns the actual fog so you can edit individual# properties. For example:# fog = fogs(1)# fog.scroll_x = 2# fog.scroll_y = 2# This grabs the fog at index "1" and sets the scroll speed for x and y.# (See below for all the properties/methods you can use)#-------------------------------------------------------------------------------# Fog Properties:# These are the following properties/methods you can use when editing# individual fogs.# visible = Whether fog is visible or not (true/false)# opacity = Opacity of the fog. (0 to 255)# z = Z index of the fog.# scroll_x = Horizontal scroll speed.# scroll_y = Vertical scroll speed.# zoom_x = Horizontal zoom factor.# zoom_y = Vertical zoom factor.# blend_type = Blend mode for fog. (0, 1, or 2)# filename(new_file, [hue])# -new_file = New fog file.# -hue = Hue for new fog. (Default: 0)#-------------------------------------------------------------------------------# Thats about it. Due take warning that the more fogs you add, the more# probable lag you'll run into. Adding an extra two or three shouldn't hurt too# much though. ;)## Compatibility:# Not tested with SDK.# Should be compatible with everything.## Credits:# game_guy ~ For making the script.# LiTTleDRAgo ~ For the original idea.#===============================================================================class Spriteset_Map