Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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
   Text Scroll Script - Enhanced DerVVulfman 23 29,793 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 13,148 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #2: Advanced Cry Correction DerVVulfman 1 3,965 08-09-2019, 03:42 PM
Last Post: aeliath
   ACBS FIX SCRIPT #1: Victory Cries Patch DerVVulfman 1 3,934 08-08-2019, 02:53 PM
Last Post: aeliath
   Archived Script Listings DerVVulfman 9 33,818 01-08-2019, 04:27 AM
Last Post: DerVVulfman
   Spritesheet Generator Conversion Script DerVVulfman 0 3,618 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 111,594 09-29-2017, 03:48 AM
Last Post: DerVVulfman
   Longer Script Calls LiTTleDRAgo 0 4,382 05-17-2017, 12:36 AM
Last Post: LiTTleDRAgo
   SLOLS: Snake Look-alike on Load Script Zeriab 3 10,197 05-14-2017, 06:25 PM
Last Post: LiTTleDRAgo
   Character Select Script Selwyn 3 9,534 03-07-2017, 04:14 AM
Last Post: JayRay



Users browsing this thread: