• 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.
  • 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • 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.

Night Time Events

lilbluedemon

Crunching the numbers!
  • 208
    Posts
    10
    Years
    • Seen May 4, 2019
    Is there a way to make events ignore the day and night tones to the map?
    I want to make windows light up, like in GSC, but I don't want to use the usually suggested Tileset swap idea like GSC does.
    I just want to make it so, when night time rolls around, events turn on which aren't effected by the night time tone.
    Like this: (Mockup done in paint.)
    [PokeCommunity.com] Night Time Events


    I know there's the streetlight effect, but it's not what I want.
    To me, it looks terrible, and isn't what I want.
     
    Ok!
    If you want this
    [PokeCommunity.com] Night Time Events


    You need this script:
    Code:
    def pbGetTileset(name,hue=0)
      if Time.now.hour >= 20 || Time.now.hour < 5
        if File.exists?("Graphics/Tilesets/Night/Night_"+name+".png")
          return AnimatedBitmap.new("Graphics/Tilesets/Night/Night_"+name,hue).deanimate
        else
          return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
        end
      else
        return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
      end
    end
    If you used this, credit Help-14. The original is his script.
    Add the folder Name "Night" in folder Graphics\Tilesets and Name of image need add Night_(name) (example: Night_Outside.png) you can change the color in this image.
     
    Last edited:
    Ok!
    If you want this
    [PokeCommunity.com] Night Time Events


    You need this script:
    Code:
    def pbGetTileset(name,hue=0)
      if Time.now.hour >= 20 || Time.now.hour < 5
        if File.exists?("Graphics/Tilesets/Night/Night_"+name+".png")
          return AnimatedBitmap.new("Graphics/Tilesets/Night/Night_"+name,hue).deanimate
        else
          return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
        end
      else
        return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
      end
    end
    If you used this, credit Help-14. The original is his script.
    Add the folder Name "Night" in folder Graphics\Tilesets and Name of image need add Night_(name) (example: Night_Outside.png) you can change the color in this image.

    [PokeCommunity.com] Night Time Events

    Thanks, it's working really well now!
     
    Back
    Top