Hmm, yah, it's built in to not weather during battles... I'll look into that.
Basic Climate System
RGSS3 Scripts (RMVX Ace)This will make it rain in battle: (Not perfect, split mili-second delay before weather starts that I can't seem to shake, tho might not be noticeable, maybe I'm ornery)
Code:
class Scene_Battle
alias weather_start create_spriteset
alias weather_update update_basic
alias weather_dispose terminate
def create_spriteset
weather_start
@weather = Spriteset_Weather.new(@spriteset.viewport3)
end
def update_basic
weather_update
update_weather
end
def update_weather
@weather.type = $game_map.screen.weather_type
@weather.power = $game_map.screen.weather_power
@weather.ox = $game_map.display_x * 32
@weather.oy = $game_map.display_y * 32
@weather.update
end
def terminate
weather_dispose
@weather.dispose unless @weather.nil
end
end
class Spriteset_Battle
attr_accessor :viewport3
end
Could you help me set up an atelier weather call? I tried putting in the command several ways but I get an error every time.
For Clear - "Game_Interpreter.weather_stop"
For Others - "Game_Interpreter.weather(type,power,"image")"
'should' work
For Others - "Game_Interpreter.weather(type,power,"image")"
'should' work
Quotes are supposed to be there, was hoping that would work.
Try these instead:
"$game_system.weather.clear"
"$game_system.weather = [type,power,"image"]"
Try these instead:
"$game_system.weather.clear"
"$game_system.weather = [type,power,"image"]"
No it still didn't work.
Ah, I see what you meant the first time, the inside quotes.
Replace the quotes around the image portion with ' instead of "
Replace the quotes around the image portion with ' instead of "
Still didn't seem to work. I tried it without game_system and it also work didn't.
Using this with Atelier's works for me:
Code:
CLEARCOMMAND = "$game_system.weather.clear"
SUNCOMMAND = "$game_system.weather.clear"
RAINCOMMAND = "$game_system.weather = [0, 10, 'Rain_01A']"
SNOWCOMMAND = ""
STORMCOMMAND = "$game_system.weather = [0, 10, 'Rain_02']"
BLIZZCOMMAND = ""
CUSTOM1COMMAND = ""
CUSTOM2COMMAND = ""
Thanks, I'll give it a shot in the morning.
You have double quotes " in there again. You have to use single quotes ' for the Image portion
"Game_Interpreter.weather(0,1,'Rain_01A')"
Reason being that single quotes won't disrupt the string like double quotes do
"Game_Interpreter.weather(0,1,'Rain_01A')"
Reason being that single quotes won't disrupt the string like double quotes do
This is how I have each one set up.
Code:
RAINCOMMAND = "$game_system.weather = [0, 10, 'Rain_01A']"
Ah the error you posted showed double quotes and using Game_Interpreter...
That should work what you have.
That should work what you have.
For some reason it's working now. :huh:
Well thanks for your help. 🙂
Well thanks for your help. 🙂
Awesome script you have written. You think you could combine it with Advanced GameTime of yours, well to make weather... not so random?
You know, to make it a higher chance to rain during the fall months rather than the summer, and snow only in winter?
It would be a great combination 🙂
You know, to make it a higher chance to rain during the fall months rather than the summer, and snow only in winter?
It would be a great combination 🙂
That is a planned idea, when I get around to it >.>
I made an event for it, but a "lightning" option would be cool.
My scripting could do it, but it would be crude and ugly.
My scripting could do it, but it would be crude and ugly.
Im trying to make it so it snows in a ice map and its says: #Array of special maps, format of [#,#,#].
So how do i tell what number each map is? I made custom names so im not sure which map number each of them are...
So how do i tell what number each map is? I made custom names so im not sure which map number each of them are...
Original thread: https://forums.rpgmakerweb.com/threads/basic-climate-system.1193/

