Basic Climate System

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Hmm, yah, it's built in to not weather during battles... I'll look into that.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Vlue...

Can you make the climate system takes effect on battle?
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
 

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
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.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
For Clear - "Game_Interpreter.weather_stop"

For Others - "Game_Interpreter.weather(type,power,"image")"

'should' work
 
Last edited by a moderator:

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
I got an error, do you think the quotes could be the problem?

error.png
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Quotes are supposed to be there, was hoping that would work.

Try these instead:

"$game_system.weather.clear"

"$game_system.weather = [type,power,"image"]"
 

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
No it still didn't work.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Ah, I see what you meant the first time, the inside quotes.

Replace the quotes around the image portion with ' instead of "
 

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
Still didn't seem to work. I tried it without game_system and it also work didn't.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
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 = ""
 

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
Thanks, I'll give it a shot in the morning.
 

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
I ran into an error involving the quotes.

error.png
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
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
 

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
This is how I have each one set up.



Code:
RAINCOMMAND = "$game_system.weather = [0, 10, 'Rain_01A']"
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Ah the error you posted showed double quotes and using Game_Interpreter...

That should work what you have.
 

Todd

Game Developer
Veteran
Joined
Mar 14, 2012
Messages
269
Reaction score
43
First Language
English
Primarily Uses
N/A
For some reason it's working now. :huh:

Well thanks for your help. :)
 

Necrofear04

Variemai...
Veteran
Joined
Nov 5, 2012
Messages
38
Reaction score
2
First Language
Greek
Primarily Uses
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 :)
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
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 :)
That is a planned idea, when I get around to it >.>
 

deilin

Ranger/Elementalist
Veteran
Joined
Mar 13, 2012
Messages
1,188
Reaction score
172
First Language
English
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.
 

Roxas162

Game Designer
Veteran
Joined
Sep 19, 2013
Messages
33
Reaction score
1
First Language
English
Primarily Uses
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...
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top