How to get weather effects to show up during battles?

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
429
First Language
English
Primarily Uses
RMVXA
Hello again, I've been trying to incorporate weather into battle in a pokemon-ish manner (though I know its not the only game to do this - its just the last rpg I've played and frankly is kind of the inspiration to adding this in - and I feel that since its a cookie cutter jrpg right now, atmosphere is going to be important until I can spice things up).

I've tried googling a bit, but the most I can find are people asking how to use the weather as a damage formula thing - but haven't really stumbled into battlescene weather.

Damage formula wise - I've got that kind of down as:
"if v[2]=1;*damageformula*;else;*damageformula x 2*;end;"
And I'm okay with it right now, because I did run into a useful formula that lets me use the note box for damage stuff.

So mainly the issue right now is to get it to visually show up during the battle scene.

Any help would be appreciated!
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,254
Reaction score
1,254
First Language
Spanish
Primarily Uses
RMVXA
doesn't adding a weather effect as a troop event do anything?
 

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
429
First Language
English
Primarily Uses
RMVXA
I don't really see an option for that? I've tried using the battle events to trigger the rain - but nothing seems to happen.
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,185
Reaction score
1,440
First Language
English
Primarily Uses
Other
doesn't adding a weather effect as a troop event do anything?
I don't really see an option for that? I've tried using the battle events to trigger the rain - but nothing seems to happen.
Yeah, adding a Weather Effect command in a troop event does absolutely nothing, as shown here......BattleWeather.png
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,185
Reaction score
1,440
First Language
English
Primarily Uses
Other
That would be for RMMV.
The question was for VXAce.

Dekita and Theoallen have scripts for Battle weather.
My bad- Didn't know this was the VXAce part.
 

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
429
First Language
English
Primarily Uses
RMVXA
That would be for RMMV.
The question was for VXAce.

Dekita and Theoallen have scripts for Battle weather.
Okay - I'll try to look into those. Though I've been thinking about something though - still related but, I've was toying with this idea of using the battle events to draw a picture of the weather in question.

Basically, I drew two frames of rain on a transparent png. And set up a battle event that would trigger when the rain switch is on.

The event goes like this:
A draw weather variable continually goes up during the fight - and when it hits between certain numbers, it would change frames (deleting the old picture, then drawing the new picture), and reset back to 0 after a certain point.

Unfortunately for me - I forgot that time is a bit weird in a battle scene, so I'm assuming the variable hasn't been ticking and it's been stuck drawing the frame at the 0-24 range.

Though I do feel that maybe if I could get that working, it might work a bit better(?) - since I'd have more creative control over it and could stylize things a bit more. So I guess I'll try to dig up those scripts but in the mean time if anyone has any ideas to get this drawing picture weather idea working I'd love to hear it too.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
As another alternative, Moghunter's Weather script continues whatever weather you set on the map into any battles you have, so you have smooth transition from one to another.
 

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
429
First Language
English
Primarily Uses
RMVXA
Okay, I wasn't able to find TheoAllen's weather script (I checked a page full of his other scripts which I'm probably going to check out later because there was some interesting ones there) - but I did find Dekita's, which works fine but I've noticed that when testing stuff the weather didn't trigger with a battle effect and only worked when testing the game and having the weather start prior. Being able to swap weather either for dramatic reasons or abilities is definitely something I want to aim for.

As another alternative, Moghunter's Weather script continues whatever weather you set on the map into any battles you have, so you have smooth transition from one to another.
Moghunters weather looks good, and it looks like you can make up weather or just have leaves blowing about which is cool, I have been having some trouble testing it though.

I can't exactly read everything going on in there but I used an event script to trigger the weather example - but it's telling its unable to find the graphics "Rain" or "Leaf" as it is in the example on the script. I've tried changing "Rain" to every file name in the folder but nothing seems to happen.

The little game demo that comes with everything works fine though and looks really good. But copying pasting stuff from there doesn't seem to work.

edit: Ok maybe I shouldn't be doing this half asleep. It doesn't seem to work when using a parallel process - but having it trigger once on a map (per entry) seems to work fine. It just doesn't look like it can trigger mid battle though.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
For Moghunter's script you need to copy the graphics (leaf, rain etc.) from the demo into a new folder within the Graphics folder, called Weather. You can add additional graphics if you want, e.g. different leaves.

And no, as far as I am aware, it can't be triggered in battle, it just picks up whatever weather you have set for that map and continues it into battle.
 

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
429
First Language
English
Primarily Uses
RMVXA
For Moghunter's script you need to copy the graphics (leaf, rain etc.) from the demo into a new folder within the Graphics folder, called Weather. You can add additional graphics if you want, e.g. different leaves.

And no, as far as I am aware, it can't be triggered in battle, it just picks up whatever weather you have set for that map and continues it into battle.
Yeah. I had done that before - it just wasn't working for me because I was using a parallel process on the event. Which I'm guessing kept triggering the weather to constantly restart making it look like it wasn't happening.

Even if I can't get it to work for battles like I'd want - I'll probably still end up using this one, so thanks for that.
As far as battle stuff goes - the draw picture thing seems to trigger fine, but I can't get it to be more than a still image. And well I guess that would be a problem later on if the weather events bleed over to battle and you have two different weathers playing.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
On your parallel process - something you should do all parallel processes which are setting up something for a map is to put 'Erase Event' as the last command. That stops it running any more until the next time that you load up the map when it will re-execute all your commands. You should never have a parallel process running unnecessarily. But without that Erase Event command, it will keep on triggering the weather.
 

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
429
First Language
English
Primarily Uses
RMVXA
Thanks! I'll see if I can get a chance to try them out later. Though I am kind of worried that what I want might be getting a bit too complicated with this.

I guess kind of unrelated - but while I'm comparing scripts, is there a way to toggle a script on/off, not in-game, but just as a way I can test them without having to constantly delete/copy-paste them over and over?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
Put your cursor anywhere in the script you want to disable. Press Ctrl + A, that will select all. Then press Ctrl + Q and # will appear before all lines. The script is now disabled. To re-enable it do the same thing again. The # will disappear.
 

sleepy_sealion

Need to work harder!
Veteran
Joined
Jan 4, 2018
Messages
245
Reaction score
429
First Language
English
Primarily Uses
RMVXA
Ok, so I haven't really been to work on things - since I had to work on other things - but I was looking into "common events running during battles" and I found some neat scripts by Himeworks that actually got my battle event running mid-battle. And I guess here's a mock up of what it would look like:
I feel like that maybe if I add a bunch more frames, it could actually look good? (Though right now it involves constantly drawing/removing pictures and conditional loops which could end up looking like a nightmare under the hood).

But I am able to change this stuff pretty easy (having tested it by having it switch on and off between turns) and I guess as a bonus - I understand how I got "here", since a big problem I have with scripting is that the language is pretty alien to me and I have no idea where to begin touching that.

Though before I get ahead of myself, I still want to look around and try out Mog's stuff a bit more before I commit to anything.

Also thanks for the tip about CTRL-Q! It helps a lot.

Edit:
Okay guys, I've decided to stick with my "custom" weather for now - thanks for the help! I think its safe to close this thread now.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top