Last Update: 2011.01.02
Script Download


This script allows to add varied fog effects to the maps. Fogs are picutres placed above the player layer and loops. Differently from pictures the fog follows the map movement instead of the screen (this behavior can be changed). You can add various fogs to the map.


Multiple fogs in action


Requires the Victor Engine – Basic Module


Maps and Comment calls note tags:
Tags to be used on the Maps note box in the database or in events comment box, works like a script call

<fog effect>
settings
</fog effect>

Use this comment call to create a fog, a fog effect on the map, add the following values to the settings. The ID and name must be added, other values are optional.
id: x : fog ID
name: “x” : fog graphic filename (“filename”)
opacity: x : fog opacity (0-255)
move: x : fog screen movement (32 = fog follows the map)
zoom: x : fog zoom (100 = default size)
hue: x : fog hue (0-360)
blend: x : fog blend type (0: normal, 1: add, 2: subtract)
depth: x : fog Z axis (300 = default value)

<fog opacity id: o, d>

This tag allows to change the fog opacity gradually
id : fog ID
o : new opacity (0-255)
d : wait until complete change (60 frames = 1 second)

<fog move id: x, y>

This tag allows to adds fog continuous movement
id : fog ID
x : horizontal movement, can be positive or negative
y : vertical movement, can be positive or negative

<fog  tone id: r, g, b, y, d>

This tag allows to change the fog opacity gradually
id : fog ID
r : red tone (0-255, can be negative)
g : green tone (0-255, can be negative)
b : blue tone (0-255, can be negative)
y : gray tone (0-255, can be negative)
d : wait until complete change (60 frames = 1 second)