• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

How to make a common event that reset at midnight?

  • 176
    Posts
    11
    Years
    Topic.

    This seems to be a simple question, but the wiki only talks about regular events while I want to do that in a common event.

    The "cooledDown" method is only found in the PField_Field here

    Code:
    #===============================================================================
    # Events
    #===============================================================================
    class Game_Event
      def cooledDown?(seconds)
        if !(expired?(seconds) && tsOff?("A"))
          self.need_refresh=true
          return false
        else
          return true
        end
      end
    
      def cooledDownDays?(days)
        if !(expiredDays?(days) && tsOff?("A"))
          self.need_refresh=true
          return false
        else
          return true
        end
      end
    end´

    I'm not a scripter (yet), but I hope that someone at least point me the directions about how to make the same for common events.

    EDIT:
    Also, I want to use the "Unreal Time System" to be more clear.
     
    Last edited:
    Back
    Top