Save-Point
VX Weather Script - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: VX Weather Script (/thread-1777.html)

Pages: 1 2


VX Weather Script - ccoa - 10-27-2009

Script
VX Weather Script


Weather Types:

#    1 - rain
#    2 - storm
#    3 - snow
#    4 - hail
#    5 - rain with thunder and lightning
#    6 - falling leaves (autumn)
#    7 - blowing leaves (autumn)
#    8 - swirling leaves (autumn)
#    9 - falling leaves (green)
#  10 - cherry blossom (sakura) petals
#  11 - rose petals
#  12 - feathers
#  13 - blood rain
#  14 - sparkles
#  15 - user defined
#  16 - blowing snow
#  17 - meteor shower
#  18 - falling ash
#  19 - bubbles
#  20 - bubbles 2
#  21 - sparkles up

Instructions:

You can start and stop weather using the original event commands, however, you can start stronger and more varied weather using:

Code:
$game_screen.weather(type, strength, duration)
Where type is the type of weather (see above), strength is how strong it should be (a number between 1 and 50), and duration is how many frames it should take to transition in.

User-defined weather user images imported to the pictures folder.  The controls are:

$WEATHER_UPDATE = false  - change this one any time you're about to use user-defined weather

$WEATHER_IMAGES = [name, name, ...]  - a list of the names of the images, separated by commas.

$WEATHER_X = 0  - the number of pixels the image should move horizontally (positive = right, negative = left)

$WEATHER_Y = 0  - the number of pizels the image should move vertically (positive = down, negative = up)

$WEATHER_FADE = 0    - how much the image should fade each update (0 = no fade, 255 = fade instantly)

$WEATHER_ANIMATED = true (or false) - whether or not each sprite in the weather should cycle between all the available images.

Editing speed if too fast

Commercial License:
To use this in a commercial game, I only charge $10 for a single game license for this script. Just enough to make it legal, really. Whenever you're ready, contact me and I'll send you a copy of the license agreement for you to peruse.

Subject to change.


VX Weather Script - This_iz_illiegal_ya_know - 06-05-2010

W-w-wait a minute.
How does it work?
Do I just put it into the Script (starting a new script, just above Main) and it works? Or do I need something else, like download images?


VX Weather Script - deValdr - 06-05-2010

This briliant script draws all the images with code ;)
Plug-n-play


VX Weather Script - This_iz_illiegal_ya_know - 06-05-2010

Valdred Wrote:This briliant script draws all the images with code ;)
Plug-n-play

Ahhh, awesome! Cheery
Now I gona put this into the game.... and see that if it works.

Wait a minute. Do I have to create a new script above Main and paste it in.
Or modify an existing one?

It doesen't work. I got the error

"NoMethodError occured while running script.

undefined method 'weather' for nil:NilClass"

How to fix it?
I ran the event. It was a script: "$game_screen.weather(13, 20, 10)"


VX Weather Script - deValdr - 06-05-2010

first of all. This is for vx, if you are using xp then it is a version for xp somewhere that I will find for you if you want.

You gotta insert a new script above main and paste this in.


VX Weather Script - This_iz_illiegal_ya_know - 06-05-2010

Valdred Wrote:first of all. This is for vx, if you are using xp then it is a version for xp somewhere that I will find for you if you want.

You gotta insert a new script above main and paste this in.

I'm using VX.


VX Weather Script - sakhawat21 - 06-05-2010

Here is the XP Version:

Quote:http://rmvxp.com/thread-686.html

Note that the demo is down, so you'll have to insert it manually into the script editor.

Do what Valdred said. Winking

EDIT: Hmm.. For some reason using VX I have run into that problem too.


VX Weather Script - This_iz_illiegal_ya_know - 06-05-2010

I said before, I'm using VX. LOL


VX Weather Script - deValdr - 06-05-2010

You inserted a new script and pasted right? at the very bottom of the scripts? If the Game_Screen script is bellow then it will overwrite this script and make the game explode.


VX Weather Script - sakhawat21 - 06-05-2010

@this is illegal ya know,

I know you are using VX. But look at the times of the post. You posted that you're using VX when I was posting the link. lol