Last Update: 2012.01.13
Script Download
Light Effect Images Download
Demo Download (Obs.: the demo script is OUTDATED)


This scripts allow to add varied light effects to the maps. But it works different from other scripts with this function.
Normally, light effect scripts add images above the events, and then the screen is tone is changed, with the images staying bellow the darker layer. This script add an new darkened layer, and apply the light effect images on this layer.


Requires the Victor Engine – Basic Module


Comment calls note tags:
Tags to be used in events comment box, works like a script call.

 

<create shade>
setting
</create shade>

Create a shade effect on the map, add the following values to the setting.
opacity: x : opacity (0-255)
red: x : red tone (0-255, can be negative)
green: x : green tone (0-255, can be negative)
blue: x : blue tone (0-255, can be negative)
blend: x : fog blend type (0: normal, 1: add, 2: subtract)

 

<actor light>      <event light>      <vehicle light>
setting            setting            setting
</actor light>     </event light>     </vehicle ligth>

Create a light effect on actor, event or vehicle, add the following values to the info. The ID, index and name must be added, other values are optional.
id: x : ligh effect ID
name: “x” : ligh effect graphic filename (“filename”)
index: x : actor index, event id or (0: boat, 1: ship, 2: airship)
opacity: x : light opacity (0-255)
pos_x: x : coordinate X adjust
pos_y: x : coordinate Y adjust
var: x : light opacity variation
speed: x : light variation speed
zoom: x : ligh effect zoom (100 = default size)

 

<map light>
setting
</map light>

Create a light effect on a specific map postion, add the following values to the info. The ID, map_x, map_y and name must be added, other values are optional.
id: x : ligh effect ID
name: “x” : ligh effect graphic filename (“filename”)
map_x: x : map X coordinate
map_y: x : map Y coordinate
opacity: x : light opacity (0-255)
pos_x: x : coordinate X adjust
pos_y: x : coordinate Y adjust
var: x : light opacity variation
speed: x : light variation speed
zoom: x : ligh effect zoom (100 = default size)

 

<actor lantern i: o>
<event lantern i: o>
<vehicle lantern i: o>

Call a lantern on the target character, lanterns are effets that lights the front of the character
i : actor index, event id or (0: boat, 1: ship, 2: airship)
o : light opacity (0-255)

 

<shade opacity: o, d>

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

 

<shade tone: r, g, b, d>

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

 

<remove_light: id>

This tag allows remove a light effect
id: ligh effect ID

 



Maps note tags:
Tags to be used on the Maps note box in the database

<create shade>
setting
</create shade>

Create a shade effect on the map, add the following values to the setting.
opacity: x : opacity (0-255)
red: x : red tone (0-255, can be negative)
green: x : green tone (0-255, can be negative)
blue: x : blue tone (0-255, can be negative)
blend: x : fog blend type (0: normal, 1: add, 2: subtract)

 

<actor light>      <event light>      <vehicle light>
setting            setting            setting
</actor light>     </event light>     </vehicle ligth>

Create a light effect on actor, event or vehicle, add the following values to the info. The ID, index and name must be added, other values are optional.
id: x : ligh effect ID
name: “x” : ligh effect graphic filename (“filename”)
index: x : actor index, event id or (0: boat, 1: ship, 2: airship)
opacity: x : light opacity (0-255)
pos_x: x : coordinate X adjust
pos_y: x : coordinate Y adjust
var: x : light opacity variation
speed: x : light variation speed
zoom: x : ligh effect zoom (100 = default size)
 

<map light>
setting
</map light>

Create a light effect on a specific map postion, add the following values to the info. The ID, map_x, map_y and name must be added, other values are optional.
id: x : ligh effect ID
name: “x” : ligh effect graphic filename (“filename”)
map_x: x : map X coordinate
map_y: x : map Y coordinate
opacity: x : light opacity (0-255)
pos_x: x : coordinate X adjust
pos_y: x : coordinate Y adjust
var: x : light opacity variation
speed: x : light variation speed
zoom: x : ligh effect zoom (100 = default size)

 

<actor lantern i: o>
<event lantern i: o>
<vehicle lantern i: o>

Call a lantern on the target character, lanterns are effets that lights the front of the character
i : actor index, event id or (0: boat, 1: ship, 2: airship)
o : light opacity (0-255)

 



Comment boxes note tags:
Tags to be used on events Comment boxes. They’re different from the comment call, they’re called aways the even refresh.

 

<custom light>
settings
</custom light>

Create a custom light effect on actor, event or vehicle, add the following values to the settings. The name must be added, other values are optional.
name: “x” : ligh effect graphic filename (“filename”)
opacity: x : light opacity (0-255)
pos_x: x : coordinate X adjust
pos_y: x : coordinate Y adjust
var: x : light opacity variation
speed: x : light variation speed
zoom: x : ligh effect zoom (100 = default size)

 

<simple light: o>
<simple lamp: o>
<simple torch: o>
<simple window 1: o>
<simple window 2: o>

Simple light shortcuts
o : new opacity (0-255)

 

<flash light: o>
<flash lamp: o>
<flash torch: o>
<flash window 1: o>
<flash window 2: o>

Flashing light shortcuts
o : new opacity (0-255)

 

<lantern: o>

Lanterns shortcut
o : new opacity (0-255)