Moghunter Scripting Help

I use this script a lot, and I never use choices, switches or text, just the straightforward script call.  This script ONLY uses script calls, so anything else is a waste of time.  If your script call is not working, then doing these other things will make no difference.  The script has no way of knowing that the call is next to a particular piece of text.  Those are 2 completely separate phenomena as far as your computer is concerned.

EDIT

Here is a screenshot of one of my events with that script call in it.  As you will see, it is not embedded in anything else.

Weather%20script%20call_zpsmxx2xpnr.png
Well if you removed the text, of course no text will be displayed .. haha 

If what you want was a weather to start at your starting map, then change into another when you enter another, then it is pretty simple

This is the simplest way I can think of (there are better ways but I am keeping it simple for now)

At the starting map, create this event. For this example, I am making it rain fire.

1_zpsn4oahbyo.jpg


Then create another event to transfer player to the 2nd map ( i used the castle as an example... player is entering a town)

2_zpspltcw2dc.jpg


This is what you will get:

3_zpslzbqfcgm.jpg


You have to play around with the strength of the weather to get better effect.. I am using strength 5 for both weather effect, so the flower rain weather looks a little odd.
Yes I have tried this, but when I do this and just have the script call, nothing happens at all  ;_;

Okay I just tried it again and something happens...but it is EXTREMELY faint. You can't even see it. You can see reaaalllly faint and transparent particles flying, but that's it. Like...it's not noticeable at all unless you are really looking for it. I can't even send a screenshot because you literally can't see it in any screen shot. You can only point it out when it's moving
Then maybe you have a problem with the graphics, not with the script.  Try the leaves and wind script call and see if the leaves are visible.  If they, too, are almost transparent, then you can be sure it's the graphics.

Do you still have the demo?  Try copying the graphics across into your project again.  If you haven't got the demo, then you could try to download it again.

As for the weather continuing on a new map - that is what it does by default.  It will just continue until you either make a script call for a different type of weather, as Sinweaver has shown you, or you turn the weather off with the script call weather_stop

You do not need to do anything else.
Did you erase the event after you use the script call?

Edit:

I dont know how to strongly emphasize this beside using huge texts.

If you dont erase the event after using the weather(...) script call, you will see the image blitz across the screen at light speed and you cant even see the image properly
That won't affect how the script call works either way.  All it does is make sure that there's no lag, so imo the presence or absence of 'erase event' is irrelevant.
Try it yourself

1_zpswu0qmm0p.jpg
Okay. Not having erase event was the problem -___-"

I really appreciate the help guys. Seriously haha. But it only goes downward. I can't figure out how to manipulate the direction. Ugh. The struggle is real with this script for me
To my great surprise, you're right.    Yet that doesn't make sense.  Erase event does not change how events run in other instances, so why does it do that here?  We are for ever telling people to add it to their events to stop lag, not to make script calls work.

EDIT

@Wrath-of-the-chicken

What direction?  As rain doesn't have a direction, are you referring to wind? something else?
The problem is that without the erase, the parallel process loops - which means that the weather is RESTARTED every frame.

It's the same with a move route - the weather has no time to be displayed before it is reset, and the first frame of the weather sequence appears to be empty if nothing gets displayed...
Oh I see.  Thanks for the explanation.
Okay. Not having erase event was the problem -___-"

I really appreciate the help guys. Seriously haha. But it only goes downward. I can't figure out how to manipulate the direction. Ugh. The struggle is real with this script for me
Not a problem. I learn from helping people, so you are actually doing me a favor.

This may seem really dumb, but you have to edit the script if you want the fog effect fall downward instead of sideways...

I copied the method for rain (since the rain effect makes the water droplet image fall downward)  and paste it under the fog definition (def fog).

Then i comment out the original method definition for fog using the # symbol.

The result is i get the fog clouds falling downwards like the rain drops

Code:
 #-------------------------------------------------------------------------- # ● Fog #--------------------------------------------------------------------------                             def fog     @wp.x = rand(@cw2[0])            if @start == nil        @wp.y = rand(@ch2[0])         @start = true     else        @wp.y = @ch2[1]             end        @wp.opacity = 1     @wp.zoom_y = (rand(50) + 100) / 100.0     @wp.zoom_x = (rand(25) + 100) / 100.0     @y_speed = [[rand(10) + 10, 10].max, 20].min     @opacity_speed = 10     #     rand_angle = rand(2)#     @wp.angle = rand_angle == 1 ? 180 : 0#     @wp.x = rand(@cw2[0])#     @wp.y = rand(@ch2[0])#     @wp.opacity = 1#     @wp.zoom_x = (rand(100) + 50) / 100.0#     @wp.zoom_y = @wp.zoom_x#     @x_speed = [[rand(10), 1].max, 10].min#     @opacity_speed = 10 end
Wind direction. The direction the particles fall on the screen. I'm using the flower script call right now and I can only manipulate the amount that falls and the speed. I can't seem to find a way to change the direction of which it flows on the screen. It only goes downward. I would like to manipulate the various angles it can flow from.

@Sinweaver will this work for the others as well?
Seeing as they share the same variables:

wp.anglewp.xwp.ywp.opacitywp.zoom_xwp.zoom_yx_speedy_speedopacity_speed there should be no problem.

However you will have to be careful because some method definition does not use some variable, so I dont know what kind of problem you will run into if you are not paying attention.

Edit:
There are others such as "wp.blend_type" as well, which are only used in the Light and Spark definition

If only I can provide better explanation, but I can't. I have no experience in scripting for any of the RPGmaker products lol. I started here not too long ago myself. And I am late for my class XD
So would I have to change all this in the script itself? Or is there a script call available to change the wind direction? :c I apologize too for all the questions and the hassle. And oh dear. I hope I wasn't the reason for you being late. I am so sorry haha
Actually I take that back. I missed a very simple math concept.. x and y

x direction -> horizontal direction

y direction -> vertical direction

#-------------------------------------------------------------------------- # ● Fog #-------------------------------------------------------------------------- def fog rand_angle = rand(2) @wp.angle = rand_angle == 1 ? 180 : 0 @wp.x = rand(@cw2[0]) @wp.y = rand(@ch2[0]) @wp.opacity = 1 @wp.zoom_x = (rand(100) + 50) / 100.0 @wp.zoom_y = @wp.zoom_x @x_speed = [[rand(10), 1].max, 10].min << change this to @y_speed = [[rand(10), 1].max, 10].min to make fog fall downwards instead of going sideways @opacity_speed = 10 endI'm afraid theres no script call to change the direction. You will have to work with the script directly. 

Edit:

Nah, I am late cuz I chose to be lazy.
This is such a struggle haha. I will try this. I just don't understand though...cause when I launch the master demo and create a new event doing the same thing I do for my game, the direction is how I want it to be. But in my game, it just falls downward?? Ugh. I'll try this. Thank you haha. And I know the feels on that one lol
Actually it can be a pretty interesting process.

I guess it is all about understanding how to make things work

 

While playing around, I can even get the Fog effect to go diagonally.

Code:
 #-------------------------------------------------------------------------- # ● Fog #--------------------------------------------------------------------------                             def fog          rand_angle = rand(2)     @wp.angle = rand_angle == 1 ? 180 : 0     @wp.x = rand(@cw2[0])     @wp.y = rand(@ch2[0])     @wp.opacity = 1     @wp.zoom_x = (rand(100) + 50) / 100.0     @wp.zoom_y = @wp.zoom_x     @y_speed = [[rand(10), 1].max, 10].min    << added this line, so the fog definition has                                                  both x and y direction.     @x_speed = [[rand(10), 1].max, 10].min       @opacity_speed = 10 end
Ok I figured it out after playing with it more. I have to indeed do switches and codes hidden in a message box in order to get it to work. I wish just the script call worked. It would be so much easier. This is such a hassle, but worth it in the end.

Thank you so much for the help guys! 😀

Original thread: https://forums.rpgmakerweb.com/threads/moghunter-scripting-help.45936/