Multiple FogVersion 1.0
by Woratana
Release Date: 13/05/2008
IntroductionThis is one of the missing feature from RPG Maker XP.
I added feature to show more than 1 fog.
This script (Multiple Fogs) is originally scripted in XP version by me,
and it's not that hard to convert it from XP to VX.
It's a little harder to use than XP version,
because there is a fog setting window to help you setup multiple fogs in XP.
However, I tried to come up with many methods to help you setup fog's properties here.
You can make new properties preset in the script, or set with event command to call script, or copy the properties from showing fog.
You can choose fog image's path. Choose to clear all fog when transfer player to other map.
And I also put 2 event commands for control fog from RMXP, 'Change Fog Color Tone' and 'Change Fog Opacity'.
Enjoy~!
FeaturesVersion 1.0- Show 1 fog or more at a time.
- You can change fog image's path, and choose to clear all fog when transfer player to other map.
- Include 2 event commands 'Change Fog Color Tone' and 'Change Fog Opacity' from RMXP.
- 3 methods to setup fog's properties. Choose the method you want~
Screenshots
ScriptPlace it above main
MultipleFogVXnew_10.txt ( 12.62K )
Number of downloads: 2181Instruction>> Setup the script. There are 3 short parts to setup:
CODE
#==================================================================
# ** MULTIPLE FOG SETUP ** SETTINGS
#--------------------------------------------------------------
For fog's image path, and choose to clear all fog when transfer player.
CODE
#==================================================================
# ** MULTIPLE FOG SETUP ** FOG DEFAULT SETTING
#--------------------------------------------------------------
For default fog properties~
and
CODE
#==================================================================
# ** MULTIPLE FOG SETUP ** FOG PRESET SETUP
#--------------------------------------------------------------
For fog properties preset.
>> The complete instruction is included the script
Here is the fog's properties you can set before show fog:CODE
# $fog.name = 'image_name' # Image file name, must be in fog image path (setup path below).
# $fog.hue = (integer) # Fog's hue. 0 - 360, 0 for no hue.
# $fog.tone = [red, green, blue, gray] # Fog's tone color.
# $fog.opacity = (integer) # Fog's opacity. 0 - 255, you will not see fog in 0.
# $fog.blend = (0, 1, or 2) # Fog's blend type. 0 for Normal, 1 for Add, 2 for Subtract.
# $fog.zoom = (integer) # Fog's size (in %). 100 for normal size.
# $fog.sx = (+ or - integer) # Fog's horizontal move speed.
# $fog.sy = (+ or - integer) # Fog's vertical move speed.
If you have use RPG Maker XP before, this image may help you understand each properties better.

Show fog by call script:CODE
$fog.show(fog_id)
fog_id is ID number you want to put this fog in. If there is fog in this ID already, it will replace old fog.
>> Example of call script to show fog:
CODE
$fog.name = '001-Fog01'
$fog.hue = 0
$fog.tone = [0,0,0,0]
$fog.opacity = 64
$fog.blend = 1
$fog.zoom = 100
$fog.sx = 2
$fog.sy = 1
$fog.show(1)
or load fog from preset by:
CODE
$fog.load_preset(2)
$fog.show(1)
You can change its properties after load preset or load properties from showing fog.
CODE
$fog.load_preset(2)
$fog.opacity = 40
$fog.zoom = 200
$fog.show(1)
Author's NotesFree for use in your project if credit is included.