PDA

View Full Version : Time (Day/Night) Event for Rm2k3 Tut


Yuna-chan
May 15th, 2005, 09:48 PM
I made this just messing around with Rm2k3, trying to get used to the way it works.

This makes a common event that does Day/night, you could also add afternoon/morning to it if you so desired.

Time code is here, don't change this unless you want time to flow diffrently. This is set for a basic 60 sec = 1 hour. 24 hours = 1 Day. So 24 minute days. 0-11 is night, and 12-24 is day
make a common event, name it Day/night or time. Set it to parallel process, and no trigger switch unless you don't want the time to start flowing until a certian point. Set 2 variables, one for seconds and one for hours.

<>Wait: 1.0 Sec
<>Variable Oper [0001:Seconds] + , 1
<>Branch if Var [0001:Seconds] is 60
<>Variable Oper: [0001:Seconds] Set , 0
<>Variable Oper: [0002:Hours] + , 1
<>
: End
<>Branch if Var [0002:Hours] is 0
<>Tint Screen: {R050,G050,B050,S050}, 1.0 Sec
<>
: End
<>Branch if Var [0002:Hours] is 12
<>Tint Screen: {R100,G100,B100,S100}, 1.0 Sec
<>
: End
<>Branch if Var [0002:Hours] is 24
<>Variable Oper: [0002:Hours] Set, 0
<>
: End
<>

To add a new time of day (Ex, Morning) just add a new if like this...

<>Branch if Var [0002:Hours] is ?? //What time you want it to start//
<>Tint Screen: {R???,G???,B???,S???}, 1.0 Sec //Put in your tint numbers//
<>
: End

put this before the last if that I put.

This is a very simple system, I hope is helps some new people like myself out there. Im sure someone else has already figured this out, but still im new and I just figured it out for myself, just thought I should share.

~Yuna~

MudkipGirl
May 18th, 2005, 03:44 PM
Oh really great;) thanks;) been looking for this;)

Dream Illusionist
May 18th, 2005, 03:54 PM
Thanks a lot! I wanted this one too! You're really good at this!

CoN~
May 30th, 2005, 10:41 AM
It's alot shorter than most of the Day/Night Codes... Good Work...

BlackCharizard
May 31st, 2005, 05:58 AM
I tried to do this in RPGMXP and it should work the same because alloptions are the same for this, but I cant seem to get ti to work right. Can some1 maybe make this same thing for RMXP? thanks

Yuna-chan
June 2nd, 2005, 04:43 PM
I'll try and write this for RMXP for you when I get home.

BlackCharizard
June 2nd, 2005, 07:11 PM
Thanks a lot! Itb will help when u post it.

BTW, PS3 will own the 360!!!

Blizzy
June 3rd, 2005, 04:40 PM
I'll try and write this for RMXP for you when I get home.

for rmxp, you only need to change the wait to 8-10 frames

BlackCharizard
June 3rd, 2005, 04:41 PM
Ok, i'll tryb that, virtual. thanks

Yuna-chan
June 3rd, 2005, 10:15 PM
for rmxp, you only need to change the wait to 8-10 frames

That saves me some time. lol