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

Night Time Events

lilbluedemon

Crunching the numbers!
208
Posts
9
Years
    • Age 29
    • 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.)
    lightexam_by_lilbluedemon-dcfyiov.png


    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.
     
    295
    Posts
    5
    Years
    • Age 28
    • Seen Aug 15, 2022
    Ok!
    If you want this
    O9k9vlP.png


    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:

    lilbluedemon

    Crunching the numbers!
    208
    Posts
    9
    Years
    • Age 29
    • Seen May 4, 2019
    Ok!
    If you want this
    O9k9vlP.png


    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.

    weh2_by_lilbluedemon-dcg8ok8.png

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