[XP] Complete Climate and Time System (CCTS)

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

Previous topic - Next topic

CountVlad


ForeverZer0

Fixed the link for the script.
Both demo and script are up to data now, without the annoying syntax error that would occur.

Thanks DeXus for reminding me.  ;)
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.

CountVlad

I've come across another problem with the script. It seems that when you change between two climates (by moving from one map to another) it resets the weather timer. Is there a way to make it so that the timer carries over between climates and continues even if the weather effects are turned off (e.g. indoors)?

megaman30796

January 25, 2011, 08:04:33 am #123 Last Edit: January 25, 2011, 08:09:48 am by megaman30796
how do u set how long a minute is?

and how can u deactivate certain switches whenever the clock hits 12 am?
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

LiTTleDRAgo

Quote from: megaman30796 on January 25, 2011, 08:04:33 am
how do u set how long a minute is?



# * time.change_speed(SPEED)
#     - Will set the time speed to SPEED. Use time.speed_freeze if you would
#       would like to keep it there indefinitely


Quote from: megaman30796 on January 25, 2011, 08:04:33 am
and how can u deactivate certain switches whenever the clock hits 12 am?


eventing


  # IDs of variables that will be equal to their named value. They can be used
  # for eventing, etc. Set any to nil that you do not want to use.
  MINUTE_VARIABLE = 1
  HOUR_VARIABLE = 2
  DAY_VARIABLE = 3
  MONTH_VARIABLE = 4
  YEAR_VARIABLE = 5


just create parallel process at common event like this


Conditional Branch : Variable [0002 : Hour] == 12
    Control Switches : [0001 : Switch 1]  = On
Branch End


 

megaman30796

January 26, 2011, 04:00:08 am #125 Last Edit: January 26, 2011, 04:50:51 am by megaman30796
oh thanks! ;)

shouldn't the hour be 24 instead of 12?

what line is the one with the SPEED thingy. i cant find it.

i think i have 2 use the SPEED Thingy with a command script.

nope. when i use command script, a syntax error will occur.
"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

megaman30796

"You know the world is going crazy," Chris Rock declared in 2003, "when the best rapper [Eminem] is a white guy, the best golfer [Tiger Woods] is a black guy, the tallest guy in the NBA [Yao Ming] is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named 'Bush,' 'Dick,' and 'Colon.' Need I say more?"

ForeverZer0

I'm not sure what your problem is. The method to change the speed is explained pretty clearly in the directions. If you are getting a syntax error, it is highly likely that you typing the command wrong. Maybe an example would help let me know exactly how to help you.
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.

sellyx

Hello, I am new subscribed in this forum but I have almost all the script from here.
I use Zero cms for 1 of my games and it said in it it need CCTS or ATES.
I just want to know to switch off the clock, because I have an HUD and I can't see it because of the clock
But I still using the CCTS because it is a wonderful script


P.S. Sorry if my english is poor but my first language is french so ...

ForeverZer0

You can simply run a script call at the start of the game like this:
time.clock = false

Or you can find the Game_System section in the script and change the initial value of @clock to false there and avoid the script call.

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.


Killingmachine

sorry for the trouble, how can i edit the script? I'm worst at scripts, so...

ForeverZer0

Quote from: Killingmachine on February 01, 2011, 09:59:59 am
sorry for the trouble, how can i edit the script? I'm worst at scripts, so...


It would help to know what you want to edit.
If you just mean in general, learn RGSS.
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.

Killingmachine

sorry, but how to change the timespeed? well, in the demo time speed is 120, right? I want to change it into 3600 for real time....

LiTTleDRAgo

Quote from: Killingmachine on February 04, 2011, 04:17:49 am
sorry, but how to change the timespeed? well, in the demo time speed is 120, right? I want to change it into 3600 for real time....


look at my post above  :

Quote from: LiTTleDRAgo on January 25, 2011, 09:32:42 am

# * time.change_speed(SPEED)
#     - Will set the time speed to SPEED. Use time.speed_freeze if you would
#       would like to keep it there indefinitely

ForeverZer0

I updated the post.

1. Added screenshots (woo hoo! I love the new host!)
2. Added a configuration program to make setting CCTS up easier (similar to the BABS config program)

The program is my first full application using a programming language other than Ruby, so if you come across any bugs in it please be sure to let me know so I can fix them.
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.

AliveDrive

Quote from: Blizzard on September 09, 2011, 02:26:33 am
The permanent solution for your problem would be to stop hanging out with stupid people.

ForeverZer0

@AliveDrive:
Thank you glad you like.  ;)

I just noticed one minor problem. The minimum/maximum weather wait is not setup by default, and is limited to 100 seconds each.
I will update in a few little bit. I got a massive compression going, a video converting and virus scan running at the moment on my PC, so I think I might wait to start up VS 2010. Things are slow enough as it is. :wacko:

(I can't wait till I get my new computer)
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.

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

ForeverZer0

Alright, I fixed the little bug with the Weather Wait in the Configuration program. It's how it was meant to be where the user cannot accidentally set the minimum higher than the maximum or vice-versa, and it has a default value set.
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.