• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking 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.

Different Tileset for each season (Season Script)

Actually if i add the clean code the script would'nt work and also i have not modified it just added the filenames

Actually if i add the clean code the script wont work and also i did'nt modified the script i just added the filenames
 
Last edited:
Actually if i add the clean code the script would'nt work and also i have not modified it just added the filenames

Actually if i add the clean code the script wont work and also i did'nt modified the script i just added the filenames

You misunderstood the instructions, you are not supposed to add your file names into the code.

Code:
def pbGetTileset(name,hue=0)     
if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4       
if File.exists?("Graphics/Tilesets/Spring_"+name)         
return AnimatedBitmap.new("Graphics/Tilesets/Spring_"+name,hue).deanimate       
else         
return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
end

When you call that function, the name you give to the function is automatically placed behind spring_.

For example,call the function with name 'hello.png' and you'd get Graphics/Tilesets/Spring_hello.png

You're not supposed to manually go in and add your file names where it says name, that happens automatically when the function is called.
 
I dont know what is wrong since i'm not much of a scripter im learning c++ though, so heres the code

Code:
#==============================================================================
# ● Pokemon Season Script by Help-14. Remember to give Credit.
#
#   - If your tileset picture's name is Johto.png, you can make season tileset
#       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
#       and Winter_Johto.png.
#
#   - If you don't make those season tileset file, the script will use your
#       default tileset: Johto.png.
#==============================================================================
  #----------------------------------------------------------------------------
  #   Tileset
  #----------------------------------------------------------------------------
  
def pbGetTileset('PkmnBlackWhiteSet.png',hue=0)
    if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
      if File.exists?("Graphics/Tilesets/Spring_"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Spring_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
      end
    elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
      if File.exists?("Graphics/Tilesets/Summer_"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Summer_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
      end
    elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
      if File.exists?("Graphics/Tilesets/Autumn_"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Autumn_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
      end
    elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
      if File.exists?("Graphics/Tilesets/Winter_"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Winter_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
      end
    else
      return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
    end
end
  #----------------------------------------------------------------------------
  #   Autotiles
  #----------------------------------------------------------------------------
def pbGetAutotile(name,hue=0)
    if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
      if File.exists?("Graphics/Autotiles/Spring_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Spring_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
      if File.exists?("Graphics/Autotiles/Summer_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Summer_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
      if File.exists?("Graphics/Autotiles/Autumn_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Autumn_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
      if File.exists?("Graphics/Autotiles/Winter_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Winter_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    else
      return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
    end 
end
 
But when i add it. it stops working my tiles dont change what do i do

Your tiles don't change because the correct graphics don't exist. For instance, if you're mapping with the tileset PkmnBlackWhiteSet.png you need another .png within the /Tilesets/ folder called Winter_PkmnBlackWhiteSet.png. Then your tilesets will change if the season is Winter.
 
Ive made the files but the changes dont appear i even have put them in the right folder Graphics/Tilesets

There is nothing that I can see wrong with the code. The Tileset you're using to map should not have any prefixes in it, otherwise your seasonal Tilesets will have double prefixes. Check if you've made a mistake when naming/using your Tilesets.
 
Heres the image of my folder
[PokeCommunity.com] Different Tileset for each season (Season Script)

see if anything is wrong
 
[PokeCommunity.com] Different Tileset for each season (Season Script)

Just make sure the Tileset you're using to map with is PkmnBlackWhiteSet.png. Other than that. I see nothing wrong with either the code or your setup :/
 
hello!

Is this script still actual for Pokemon Essentials 11 on RMXP?

Because this script doesn't change the Tilesets....

I named my Tilesets: Outdoor.png Spring_Outdoor.png etc.

[PokeCommunity.com] Different Tileset for each season (Season Script)


I have "modified" the script (I just modified the months, like bw, that every month is a new season).
so Spring is 1 5 9, Summer 2 6 10, Autumn 3 7 11 and Winter 4 8 12 :D
 
Last edited:
hello!

Is this script still actual for Pokemon Essentials 11 on RMXP?

Because this script doesn't change the Tilesets....

I named my Tilesets: Outdoor.png Spring_Outdoor.png etc.

[PokeCommunity.com] Different Tileset for each season (Season Script)


I have "modified" the script (I just modified the months, like bw, that every month is a new season).
so Spring is 1 5 9, Summer 2 6 10, Autumn 3 7 11 and Winter 4 8 12 :D

sry for double post, but no one had write....



No one can help me.....
 
Last edited:
This original script was last updated in 2010. If you are looking for more help you should read the thread in it's entirety to see if the problem has been previously addressed and if and when you do post, give as much detail as possible, such as the version of PE you are on, and last but not least, don't string multiple posts together.
 
This original script was last updated in 2010. If you are looking for more help you should read the thread in it's entirety to see if the problem has been previously addressed and if and when you do post, give as much detail as possible, such as the version of PE you are on, and last but not least, don't string multiple posts together.
I've wrote Essentials 11, I've read the post, but it still doesn't work fpr me, look over a few post, there is a pic, how i named my tilesets...

And this multiple posts are not in a few days

can someone help me?
 
1. Double posting is against the rules (except for certain circumstances which don't apply here). Triple posting, more so. It doesn't matter how long you've left between them.
2. Are your tilesets actually different?
3. Have you been testing it by changing your computer's date?
4. Have you put the script in a new script section just above Main?
5. Maybe you broke something when you tampered with the script. Check it again.
 
1. Double posting is against the rules (except for certain circumstances which don't apply here). Triple posting, more so. It doesn't matter how long you've left between them.
2. Are your tilesets actually different?
3. Have you been testing it by changing your computer's date?
4. Have you put the script in a new script section just above Main?
5. Maybe you broke something when you tampered with the script. Check it again.
1. sorry :$
2. yes
3. no, i do it tomorrow.. i write it than ;)
4. yes
5. no, i checked it a lot of times, on unused Essentials 11
 
I wrote my own little add in for this system. I will find it from my old copy of AquaHarmony, but as I recall it is about 5-ish lines of code and it also features seasonal music.
 
Back
Top