• 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.

How to make a common event that reset at midnight?

178
Posts
10
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