Jump to content
Victor Sant

VE - Fog and Overlay

Recommended Posts

Victor Engine - Fog and Overlay

 

Fogs2.PNG

 

This script allows to add varied of effects to the maps. Fos 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.

 

Download:

Victor Engine - Fog and Overlay

 

Credits:

Author: Victor Sant

 

Terms of Use

Edited by Victor Sant

Share this post


Link to post
Share on other sites

When I transfer my character from one map to another, the fog effect creates in that map as well, even thought I didn't put anything in that map's notebox. So my question is: How do I make my fog appear only in certain maps, and not in every one I transfer to? Thanks :)

Share this post


Link to post
Share on other sites

Guys, help plz. Where I can find the fog id?? I am noob in this! I have a picture with fog from rpg maker xp called 002-Clouds01.png

 

So i did an event on map who call script and in this event I putt this

 

id: x : fog ID

name: “002-Clouds01.png†: 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)

 

sorry for my english and stupid question! help plz!

Share this post


Link to post
Share on other sites

Go here and read the instructions: http://victorscripts...ts/fog-effects/

Ok

I just paste that on map propries note

<fog effect>

settings

</fog effect>

 

and in script I added info about ID and fog file name (now I know the ID is the id of the map =)))

 

 

id = info =~ /ID: (\d+)/i ? $1.to_i : 010

name = info =~ /NAME: \"(.*)\"/i ? $1.dup : "fog01.png"

op = info =~ /OPACITY: (\d+)/i ? $1.to_i : 70

move = info =~ /MOVE: (\d+)/i ? $1.to_i : 17

zoom = info =~ /ZOOM: (\d+)/i ? $1.to_f : 100.0

hue = info =~ /HUE: (\d+)/i ? $1.to_i : 0

blend = info =~ /BLEND: (\d+)/i ? $1.to_i : 0

depth = info =~ /DEPTH: (\-?\d+)/i ? $1.to_i : 300

 

So it work now! But can I do the fog move automaticly?Not only then the player move?

Edited by ma5amune

Share this post


Link to post
Share on other sites

the "x" aren't to be added, they must to be replaced, and any other not used value must be removed.

 

so this is wrong:

<fog effect>

id: x : fog ID

name: “002-Clouds01.png†: 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 effect>

 

this is right:

<fog effect>

id: 1

name: “002-Clouds01â€

opacity: 160

</fog effect>

add only the vaules that you want really to change, the values that will stay the same must be omitted, as stated on the instructions, you must add a filename and id. (and in your example you didn't)

Also there's no need to add the file extension.

 

(now I know the ID is the id of the map =)))

Wrong to, the ID has nothing to do with the map ID, the id is an arbitrary value used as indentifier, so you can manage the fogs if you use more than one fog at same time.

 

And i highly suggest to not mess with the script itself, since it's looks that you don't really know what you're doing.

Edited by Victor Sant

Share this post


Link to post
Share on other sites

And i highly suggest to not mess with the script itself, since it's looks that you don't really know what you're doing.

 

Well. So u mean I must just load the script and put this

<fog effect>

id: 1

name: "Fog01"

opacity: 77

</fog effect>

(in my case) in Map Properties > Notes?

it should work? without any changes in the script?

I did it with your default script and don't work!!!

Share this post


Link to post
Share on other sites

Well. So u mean I must just load the script and put this

<fog effect>

id: 1

name: "Fog01"

opacity: 77

</fog effect>

(in my case) in Map Properties > Notes?

it should work? without any changes in the script?

I did it with your default script and don't work!!!

You didn't do this exactly as you posted, because if you did, it would work, unless you don't have a "Fog01" on the fogs folder.

I just copy/pasted this code you posted and it worked fine.

 

to add fog movement add the code after the fog effect

<fog move id: x, y>

 

BTW.: there was a bug with movement, that was only moving horizontally, so you should update the script.

Edited by Victor Sant

Share this post


Link to post
Share on other sites

Well. So u mean I must just load the script and put this

<fog effect>

id: 1

name: "Fog01"

opacity: 77

</fog effect>

(in my case) in Map Properties > Notes?

it should work? without any changes in the script?

I did it with your default script and don't work!!!

You didn't do this exactly as you posted, because if you did, it would work, unless you don't have a "Fog01" on the fogs folder.

I just copy/pasted this code you posted and it worked fine.

 

to add fog movement add the code after the fog effect

<fog move id: x, y>

 

BTW.: there was a bug with movement, that was only moving horizontally, so you should update the script.

 

Victor its WORK! And movement too!! Thank you for your patience

Share this post


Link to post
Share on other sites

I get this error on line 242

 

wrong number of arguments (1 for 8)

 

my note looks like this

 

 

<fog effect>

id: 1

name: "001-Fog01"

</fog effect>

Edited by Zoke

Share this post


Link to post
Share on other sites

I get this error on line 242

 

wrong number of arguments (1 for 8)

 

my note looks like this

 

 

<fog effect>

id: 1

name: "001-Fog01"

</fog effect>

Line 242 is "def scroll_down(distance)

So it's surely a compatibility issue, not a problem with the script.

Share this post


Link to post
Share on other sites

to put multi fog like it should? Because I have like this in the picture but I get only 1 and the other does not come out, just "mist" reads the script but forestshade not appear in the map?

sinttulo2xi.png

Share this post


Link to post
Share on other sites

to put multi fog like it should? Because I have like this in the picture but I get only 1 and the other does not come out, just "mist" reads the script but forestshade not appear in the map?

sinttulo2xi.png

 

You are using the same id for both fogs...make one of them 1 and the other 2.

Share this post


Link to post
Share on other sites

to put multi fog like it should? Because I have like this in the picture but I get only 1 and the other does not come out, just "mist" reads the script but forestshade not appear in the map?

sinttulo2xi.png

 

You are using the same id for both fogs...make one of them 1 and the other 2.

thnks for help me!! ^^

Share this post


Link to post
Share on other sites

Hey Victor! I didnt notice this earlier but is this a bug on the fog overlay and map battle...

 

well, when i set the fog to move, it moves but when entering the map battle, the fog stops moving but resumes after battle. Did I forget to set something? I read through the tuts and script but doesnt say anything to remedy the situation, please help! =)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×