• 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?".
  • Forum moderator applications are now open! Click here for details.
  • 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)

276
Posts
16
Years
It is a easy script so i make it public. Remember to give credit :D

How to use ?
- 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.
- Do the same things with the autotiles.


Script
For Pokemon Starter Kit version near 7th May :D
Spoiler:

For Pokemon Starter Kit older version :D
Spoiler:

If you have an error, try the other script :D

Screenshot example:
Spoiler:


Update: Autotile supported


.
 
Last edited:
38
Posts
14
Years
  • Seen Dec 8, 2010
Thanks, especially to put it also for older versions, I think that all scripters should do so, now a doubt, this script only affect the color of the tiles or you could change things (to snow blocking a road, etc.. ) I do not know very well that things could do with it.
 
276
Posts
16
Years
Thanks, especially to put it also for older versions, I think that all scripters should do so, now a doubt, this script only affect the color of the tiles or you could change things (to snow blocking a road, etc.. ) I do not know very well that things could do with it.

I have wrote how to use XD You can do what ever you want with Summer, Winter, Autumn and Spring file.
 

koby1

The M4's Best Freind
79
Posts
13
Years
God bless you help 14... This will really help some of us that had no clue on how to do this .. *cough*me*cough*
 

Luka S.J.

Jealous Croatian
1,270
Posts
15
Years
Now that you got the tileset to change, you need to do the same with autotiles, plus you're overcomplicating the script :P it took me only about 4 lines of code placed within Spriteset_Map...so yeah, autotiles need to change too.
 
276
Posts
16
Years
Now that you got the tileset to change, you need to do the same with autotiles, plus you're overcomplicating the script :P it took me only about 4 lines of code placed within Spriteset_Map...so yeah, autotiles need to change too.

Oh forgot :P I want it to be easy to install so it is long :P Thank :D
Updated :D
 
Last edited:

tImE

It's still me, 44tim44 ;)
673
Posts
17
Years
Hey, help-14, I'm trying to implent your obviously awsome script,
but when I try my game, the tileset won't change.

My tileset and "tileset.png" are both named Cyan, and the season tileset
Summer_Cyan, Winter_Cyan, etc.

But the tileset simply won't change.
I've tried both versions, I am sure I am using a version of Pokemon Essentials from
this years April or May.

Thanks in advance~
 
89
Posts
15
Years
  • Seen Apr 5, 2016
good script if i get the time i may end up making the different tilesets and posting them at some point
 
276
Posts
16
Years
Hey, help-14, I'm trying to implent your obviously awsome script,
but when I try my game, the tileset won't change.

My tileset and "tileset.png" are both named Cyan, and the season tileset
Summer_Cyan, Winter_Cyan, etc.

But the tileset simply won't change.
I've tried both versions, I am sure I am using a version of Pokemon Essentials from
this years April or May.

Thanks in advance~

No no, you need to make Summer_tileset.png and Winter_tileset.png
 

tImE

It's still me, 44tim44 ;)
673
Posts
17
Years
Have you try the other script, if it still not work, send it to me.

Yes, I've tried both.

I've even tried to use both at the same time.

I'm not getting any errors or anything. It's just not working.

EDIT: Thanks to me not being script-wise incompetent, I managed to change so that the script works for one tileset, by using
it's real names "Winter_Cyan.png" instead of the script-name "Winter_"+name, and then it worked.

Still, thanks for an awesome script! :D
 
Last edited:

ppooookkkkkkk

Banned
229
Posts
11
Years
Help with help-14's season script

If you hve used this without any error then you can defianatly help me. When i activate this script all maps tiles change to the one set for the script and now Everything went black even the tiles set for the script. 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(name,hue=0)
    if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
      if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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_PkmnBlackWhiteSet"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
      end
    else
      return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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
 

Dying Light

Pegasus Knight
344
Posts
12
Years
If you hve used this without any error then you can defianatly help me. When i activate this script all maps tiles change to the one set for the script and now Everything went black even the tiles set for the script. 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(name,hue=0)
    if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
      if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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_PkmnBlackWhiteSet"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
      end
    else
      return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+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
Perhaps you didn't even read the instructions inside the code itself. I swear people, read the directions!

Did you rename ALL your autotiles to "Spring_[insert name here]", "Summer_[insert name here]", "Winter_[insert name here]", or "Autumn_[insert name here]"?

Or for normal tilesets, you have to go through the code and change things like:
if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
to whatever your tilesets' names are.

For example, if your tileset's name is Spring_Johto.png, then you need to change it to:
if File.exists?("Graphics/Tilesets/Spring_Johto.png"+name)

And you do this for every line of code referencing the default sets.

Try everything I told you. If it doesn't work, try my experimental script I worked on a few months ago. I've never used it myself, so you'll have to tell me if it works or not. Remember that you still have to rename all of your autotiles and tilesets to "Spring_[insert name here]", "Summer_[insert name here]", "Winter_[insert name here]", or "Autumn_[insert name here]".

Code:
#==============================================================================
# ● Pokemon Season Script by Help-14. Experimental editing by Musketeer.
# ● Give credit to Help-14 and Musketeer if you use this script.
#
#   - 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(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
    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
 
Last edited:
1,748
Posts
14
Years
Alright, here's what went wrong:

"AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate"

You are pre-defining your tileset, don't do that... And to topple some more errors on it, you added the +name, this will end up like this: "Spring_PkmnBlackWhiteSet.pngPkmnBlackWhiteSet.png" this is why it doesn't work.

you should have left the script completely clean and just added the images, this would have worked.

@Musketeer:

Your script won't work:

"return AnimatedBitmap.new("Graphics/Tilesets/Summer_.png"+name,hue).deanimate"

you are adding the .png where it is not needed...

Anyways, to fix the problem do this:

1. Insert a CLEAN UNMODIFIED VERSION OF THE SEASONS SCRIPT

2. Don't modify it

3. Make sure you have proper image tilesets for your seasons (Summer_blah, ...)

4. Test and report bugs. (if any)
 

Dying Light

Pegasus Knight
344
Posts
12
Years
Alright, here's what went wrong:

"AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate"

You are pre-defining your tileset, don't do that... And to topple some more errors on it, you added the +name, this will end up like this: "Spring_PkmnBlackWhiteSet.pngPkmnBlackWhiteSet.png" this is why it doesn't work.

you should have left the script completely clean and just added the images, this would have worked.

@Musketeer:

Your script won't work:

"return AnimatedBitmap.new("Graphics/Tilesets/Summer_.png"+name,hue).deanimate"

you are adding the .png where it is not needed...

Anyways, to fix the problem do this:

1. Insert a CLEAN UNMODIFIED VERSION OF THE SEASONS SCRIPT

2. Don't modify it

3. Make sure you have proper image tilesets for your seasons (Summer_blah, ...)

4. Test and report bugs. (if any)
I'd have to agree with you on installing a clean, unmodified script. That should help.

However, my script doesn't include an unnecessary .png in it. That's not to say it doesn't work, but I'm just letting you know that my script has absolutely no unnecessary .png file extension references.

But if it doesn't work, it doesn't work. I didn't intend for it to be a solve-all problem fixer. It's just an old script I had on hand that I modified some time ago.
 
Back
Top