[XP] Complete Climate and Time System (CCTS)

Started by ForeverZer0, May 12, 2010, 06:08:20 pm

Previous topic - Next topic

The Niche

@Luke: It was a hypothetical question, I can see no real benefit to having an exclusive method. But thanks anyway.
Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Mimi Chan

October 17, 2010, 09:43:00 pm #81 Last Edit: October 17, 2010, 09:45:44 pm by Mimi Chan
I dunno why the time and weather only affects my first map o.O
I dunno where is the place I can put whether my map can be weather affected or not (outdoor and indoor)

Anyone care to point it to me o.oa

And how to change it so that the clock toggles on/off when press 'T' on the keyboard instead of the game button 'Z'?
What's a sig?

The Niche

1 & 2: Bottom of the configuration, though I suspect you have an actual bug.
3: Just did :P
4: Change the button for z to t? If you have babs, it has a script call for checking if a keyboard button is pressed and I'm pretty sure this has a script call for enabling the clock. Put the two together in a common event and watch things explode.
Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Mimi Chan

What's a sig?

Magus

LEVEL ME DOWN. THE ANTI-BLIZZ GROUP IS AMONG YOU... Do it for the chick below...She watches..<br />

ForeverZer0

I still got a fix I need to make. I already did it, just haven't uploaded yet. I'm at work right now, but I'll post either tonight or tomorrow.
@magus, glad you like.  ;)
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Mimi Chan

Yeah I really like this system *.*
I already chained it with other scripts to use it to it's full powa.

All left is making the light script here, make the lamp post turn on when it's night.

Can't wait for the fix ^^
What's a sig?

ForeverZer0

* Updates to 1.2.2 *

Okay, fixed the little bugs in the demo and script. Everything should be okay finally.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Mimi Chan

October 19, 2010, 08:47:32 pm #88 Last Edit: October 19, 2010, 09:12:40 pm by Mimi Chan
Yesh *.*

I tested it, dunno if its only me but the weather tint seems to only affect the current map you are on and doesn't transfer the the next map o.O
Works fine with hourly tint though.

And oh yeah, how to check for certain weather o.oa
I know its uhh $game_screen.weather == 7 will return true if weather is 7
Though I dunno the syntax for it to check for power ranges, and variations o.O

I mean how to check it if the weather is Blowing Leaves with power between 10-50 and variation number 2 o.O
I can probably do a branching conditional branch that checks for each 3 but I dunno their syntax ^^;
What's a sig?

ForeverZer0

Tints will only "transfer" if going to a map with the same climate. Not sure if that is the problem or not, let me know either way.
As for the power range, neither this script or the default one has a way of reading the power. I believe if you create an attr_reader for @weather_max_target or whatever it is in Game_Screen, you can then read it. The attr might already be there, can't remember, just try it and find out.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

The Niche

Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Mimi Chan

How about to check the variation? I mean how to tell if it's raining normal or raining blood o.O

I think the good/weather switch is broken o.O
If its bad weather then switch 1 will be always on right?
While for good weather switch 2 will be on.

When I tested it, when the weather turns bad, it does turn on switch 1 BUT after a minute updates, it switch it off even though it's still raining o.O
What's a sig?

ForeverZer0

I'll check out the switch issue.
For the variation,
$game_screen.weather_variation
will return the actual value, and
$game_screen.weather_variation == TYPE
will return a true/false if the defined type is being used. You can place an exclamation point before the second piece of code to see if the weather variation is NOT that type.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

The Niche

Zero, is there a script call to stop a certain weather effect?
Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Mimi Chan

October 21, 2010, 03:24:20 pm #94 Last Edit: October 21, 2010, 03:33:38 pm by Mimi Chan
I think I found the problem *.*
Good weather switch is using the same switch as the Day switch which are both 2 o.O

So switch 2 is always on regardless of bad weather O.O

I kinda don't get how the variation call works o.o
Lets pretend I am checking for blood rain
$game_screen.weather_variation 1 (for rain)
$game_screen.weather_variation == 2 (for blood)

o.oa

EDIT: Switches gets messed up every time a minute updates o.O
And events that has a switch as a condition only starts working when the minute updates.

What's a sig?

ForeverZer0

@niche
Do you mean to keep the weather from updating automatically? If so, just use the script call time.weather_frozen(true), you can then change the weather to whatever you want without it being overridden. As for changing the weather patterns for a climate in-game, I haven't thought of that, but I'm sure I can include in the next update.

@mimi
The default config for switches and what not in the demo were intended to be changed to your liking, and I admittingly did not go through and ensure none repeated.

The variation alone cannot be changed with any effect. You basically just call the weather again with a different variation.

The little lines of code from my previous post were just how to read the variation and get the value, or a true/false while checking for a specific one. If you let me know what exactly you need and how you are using it, I can be little more helpful. Not sure if I answered your question or not.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

The Niche

...Woops, I was thinking of MAWS. Well, this is embarassing...
Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

Mimi Chan

I just want an NPC that says what weather it is when you talk to him so he can differentiate from weather type and the variation.

So he can tell if its raining normally or if its raining blood.

I want a hidden npc that only pops up when its raining blood o.o
What's a sig?

The Niche

Player: Hello.
Npc: Oh hello.
Player: What are you doing outside in this weather?
Npc: I'm feeding.
Player: WTF?!
Npc: *bares fangs* LUNCHTIME!!!!

(Awesome optional boss fight :D)
Level me down, I'm trying to become the anti-blizz!
Quote from: winkio on June 15, 2011, 07:30:23 pm
Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



I'm like the bible, widely hated and beautifully quotable.

Dropbox is this way, not any other way!

ForeverZer0

Quote from: The Niche on October 21, 2010, 04:56:20 pm
...Woops, I was thinking of MAWS. Well, this is embarassing...


No problem, MAWS is simply my Weather script with some added color schemes. I'm about to realease the Weather module re-write with my WeatherCreator script that will be better than both.  :D
It lets those who know absolutely nothing about scripting create advanced weather effects and variations with ease.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.