• Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Day and Night

I'm a noob and was wondering if all this posting of stuff is for XP or 00? I'm confused unless someone puts what its for. How do you make it, XP, so that the screen will tint at nighttime like in Pokemon GSC?
 
Is there a way to get the game to recognise realtime?
 
theres an error with the rmxp day and night system

it says ???? 'Day and Night' ? 584 ??? SyntaxError ?????

how do i fix it
 
Oh yeah sane prob with me, we might did something wrong...
 
rubyrulez said:
Ah, now the clock code is very extensive, so I will post a general version of it.
The event is a Parallel Process event

Code:
<>Wait 1 sec
<>Var Oper: [Seconds] +1
<>Branch if Var: [Seconds] is 60 or more
    <>Var Oper: [Minutes] +1
    <>Var Oper: [Seconds] Set 0
    <>Branch if Var: [Minutes] is 60 or more
        <>Var Oper: [Hours] +1
        <>Var Oper: [Minutes] Set 0
        <>Var Oper: [Seconds] Set 0

The clock I coded also includes Days, Months and Years (30 days per month, though.), and it is also set to change seasons based on the month, but this is the basic version of my clock. BTW, the wait command won't stop the hero from moving, what it does is count off the seconds and add 1 to the Variable seconds. After the Seconds variable hits 60, it resets and 1 is added to the vairable minutes. After that hits 60, it will add 1 to the variable hours and reset both minutes and seconds. If you want to go further, once the hours variable hits 24, reset it and add 1 to the day variable, and so on...

Hope this helps...
this is my clock:
Code:
<> Wait 1 sec
<> Var [Seconds] += 1
<> Var [Seconds] % 61
<> Var [Minutes] % 61
<> Branch if Var [Seconds] == 60
  <> Var [Minutes] += 1
<> End
<>Branch if Var [Minutes] == 60
  <> Var [Hours] += 1
<>End
the % does this effect:
Var [value] % 11
result: 1,2,3,4,5,6,7,8,9,10,1,2,4,5,6,7,8,9,10, etc.
 
Back
Top