• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

PokemonXP

Platinum Battler
  • 77
    Posts
    18
    Years
    • Seen Sep 18, 2010
    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?
     

    MasaXGPMat

    Super Transcedent Milenio
  • 205
    Posts
    18
    Years
    • Age 33
    • Seen Feb 9, 2012
    theres an error with the rmxp day and night system

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

    how do i fix it
     

    Ati

    Staff User
  • 517
    Posts
    18
    Years
    • Age 30
    • Seen Apr 1, 2009
    Oh yeah sane prob with me, we might did something wrong...
     

    Blizzy

    me = Scripter.new("Noob")
  • 492
    Posts
    19
    Years
    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