VX Weather Script
#1
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.
Reply }
#2
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?
Reply }
#3
This briliant script draws all the images with code ;)
Plug-n-play
Reply }
#4
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)"
Reply }
#5
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.
Reply }
#6
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.
Reply }
#7
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.
Reply }
#8
I said before, I'm using VX. LOL
Reply }
#9
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.
Reply }
#10
@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
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Longer Script Calls LiTTleDRAgo 0 131 05-14-2017, 06:40 PM
Last Post: LiTTleDRAgo
   ELSA (Event Layering Script Advance) JayRay 0 132 02-25-2015, 08:34 PM
Last Post: JayRay
   Veiw Range Script VX/Ace DerVVulfman 1 205 05-25-2012, 03:16 AM
Last Post: DerVVulfman
   MAWS - Modified Advanced Weather Script Agckuu_Coceg 0 149 04-13-2010, 06:08 AM
Last Post: Agckuu_Coceg
   MAWS VX - Modified Advanced Weather Script (an Edit) Ramiro 6 14,074 03-11-2010, 09:01 AM
Last Post: Agckuu_Coceg
   VX Script Fixes (1 Fix) Yeyinde 0 4,847 12-07-2008, 04:06 PM
Last Post: Yeyinde



Users browsing this thread: 3 Guest(s)